summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-05-02 09:52:18 -0300
committerVitor Mattos <vitor@php.rio>2023-05-03 05:00:09 -0300
commitd102271134026c75eaa0f10f22ef1587e0fd7b51 (patch)
treea87683794cbd357c4130d1f18bec079c1f54873d /lib
parent92fe810ca26105b1b4dbfb89fdb4ccf4cf086794 (diff)
Simplify code after refactor
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/AvatarService.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/Service/AvatarService.php b/lib/Service/AvatarService.php
index aada07c22..b10b4ceb7 100644
--- a/lib/Service/AvatarService.php
+++ b/lib/Service/AvatarService.php
@@ -180,24 +180,6 @@ class AvatarService {
}
}
}
- if ($room->getType() === Room::TYPE_CHANGELOG) {
- return new InMemoryFile($token, $this->getAvatarPath($room, $darkTheme));
- }
- if ($room->getObjectType() === 'file') {
- return new InMemoryFile($token, $this->getAvatarPath($room, $darkTheme));
- }
- if ($room->getObjectType() === 'share:password') {
- return new InMemoryFile($token, $this->getAvatarPath($room, $darkTheme));
- }
- if ($room->getObjectType() === 'emails') {
- return new InMemoryFile($token, $this->getAvatarPath($room, $darkTheme));
- }
- if ($room->getType() === Room::TYPE_PUBLIC) {
- return new InMemoryFile($token, $this->getAvatarPath($room, $darkTheme));
- }
- if ($room->getType() === Room::TYPE_ONE_TO_ONE_FORMER) {
- return new InMemoryFile($token, $this->getAvatarPath($room, $darkTheme));
- }
return new InMemoryFile($token, $this->getAvatarPath($room, $darkTheme));
}