Browse Source
Remove unused methods
Signed-off-by: Vitor Mattos <vitor@php.rio>
pull/8333/head
Vitor Mattos
3 years ago
committed by
Joas Schilling
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
2 changed files with
2 additions and
10 deletions
-
lib/Collaboration/Reference/TalkReferenceProvider.php
-
lib/Dashboard/TalkWidget.php
|
|
|
@ -227,7 +227,7 @@ class TalkReferenceProvider implements IReferenceProvider { |
|
|
|
$reference->setTitle($title); |
|
|
|
$reference->setDescription($description); |
|
|
|
$reference->setUrl($this->urlGenerator->linkToRouteAbsolute('spreed.Page.showCall', ['token' => $room->getToken()])); |
|
|
|
$reference->setImageUrl($this->getRoomIconUrl($room)); |
|
|
|
$reference->setImageUrl($this->avatarService->getAvatarUrl($room)); |
|
|
|
|
|
|
|
$reference->setRichObject('call', [ |
|
|
|
'id' => $room->getToken(), |
|
|
|
@ -261,10 +261,6 @@ class TalkReferenceProvider implements IReferenceProvider { |
|
|
|
return ($this->userId ?? '') . '#' . ($referenceMatch['message'] ?? 0); |
|
|
|
} |
|
|
|
|
|
|
|
protected function getRoomIconUrl(Room $room): string { |
|
|
|
return $this->avatarService->getAvatarUrl($room); |
|
|
|
} |
|
|
|
|
|
|
|
protected function getRoomType(Room $room): string { |
|
|
|
switch ($room->getType()) { |
|
|
|
case Room::TYPE_ONE_TO_ONE: |
|
|
|
|
|
|
|
@ -209,14 +209,10 @@ class TalkWidget implements IAPIWidget, IIconWidget, IButtonWidget, IOptionWidge |
|
|
|
$room->getDisplayName($userId), |
|
|
|
$subtitle, |
|
|
|
$this->url->linkToRouteAbsolute('spreed.Page.showCall', ['token' => $room->getToken()]), |
|
|
|
$this->getRoomIconUrl($room) |
|
|
|
$this->avatarService->getAvatarUrl($room) |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
protected function getRoomIconUrl(Room $room): string { |
|
|
|
return $this->avatarService->getAvatarUrl($room); |
|
|
|
} |
|
|
|
|
|
|
|
protected function sortRooms(Room $roomA, Room $roomB): int { |
|
|
|
if ($roomA->getCallFlag() !== $roomB->getCallFlag()) { |
|
|
|
return $roomA->getCallFlag() !== Participant::FLAG_DISCONNECTED ? -1 : 1; |
|
|
|
|