|  |  | @ -34,6 +34,7 @@ use OCA\Talk\Model\Poll; | 
			
		
	
		
			
				
					|  |  |  | use OCA\Talk\Participant; | 
			
		
	
		
			
				
					|  |  |  | use OCA\Talk\Room; | 
			
		
	
		
			
				
					|  |  |  | use OCA\Talk\Service\AttachmentService; | 
			
		
	
		
			
				
					|  |  |  | use OCA\Talk\Service\AvatarService; | 
			
		
	
		
			
				
					|  |  |  | use OCA\Talk\Service\ParticipantService; | 
			
		
	
		
			
				
					|  |  |  | use OCA\Talk\Service\PollService; | 
			
		
	
		
			
				
					|  |  |  | use OCA\Talk\Service\RoomService; | 
			
		
	
	
		
			
				
					|  |  | @ -94,6 +95,7 @@ class ChatManager { | 
			
		
	
		
			
				
					|  |  |  | 	private RoomService $roomService; | 
			
		
	
		
			
				
					|  |  |  | 	private PollService $pollService; | 
			
		
	
		
			
				
					|  |  |  | 	private Notifier $notifier; | 
			
		
	
		
			
				
					|  |  |  | 	private AvatarService $avatarService; | 
			
		
	
		
			
				
					|  |  |  | 	protected ITimeFactory $timeFactory; | 
			
		
	
		
			
				
					|  |  |  | 	protected ICache $cache; | 
			
		
	
		
			
				
					|  |  |  | 	protected ICache $unreadCountCache; | 
			
		
	
	
		
			
				
					|  |  | @ -110,6 +112,7 @@ class ChatManager { | 
			
		
	
		
			
				
					|  |  |  | 								RoomService $roomService, | 
			
		
	
		
			
				
					|  |  |  | 								PollService $pollService, | 
			
		
	
		
			
				
					|  |  |  | 								Notifier $notifier, | 
			
		
	
		
			
				
					|  |  |  | 								AvatarService $avatarService, | 
			
		
	
		
			
				
					|  |  |  | 								ICacheFactory $cacheFactory, | 
			
		
	
		
			
				
					|  |  |  | 								ITimeFactory $timeFactory, | 
			
		
	
		
			
				
					|  |  |  | 								AttachmentService $attachmentService, | 
			
		
	
	
		
			
				
					|  |  | @ -124,6 +127,7 @@ class ChatManager { | 
			
		
	
		
			
				
					|  |  |  | 		$this->roomService = $roomService; | 
			
		
	
		
			
				
					|  |  |  | 		$this->pollService = $pollService; | 
			
		
	
		
			
				
					|  |  |  | 		$this->notifier = $notifier; | 
			
		
	
		
			
				
					|  |  |  | 		$this->avatarService = $avatarService; | 
			
		
	
		
			
				
					|  |  |  | 		$this->cache = $cacheFactory->createDistributed('talk/lastmsgid'); | 
			
		
	
		
			
				
					|  |  |  | 		$this->unreadCountCache = $cacheFactory->createDistributed('talk/unreadcount'); | 
			
		
	
		
			
				
					|  |  |  | 		$this->timeFactory = $timeFactory; | 
			
		
	
	
		
			
				
					|  |  | @ -757,7 +761,8 @@ class ChatManager { | 
			
		
	
		
			
				
					|  |  |  | 			array_unshift($results, [ | 
			
		
	
		
			
				
					|  |  |  | 				'id' => 'all', | 
			
		
	
		
			
				
					|  |  |  | 				'label' => $roomDisplayName, | 
			
		
	
		
			
				
					|  |  |  | 				'source' => 'calls' | 
			
		
	
		
			
				
					|  |  |  | 				'source' => 'calls', | 
			
		
	
		
			
				
					|  |  |  | 				'avatar' => $this->avatarService->getAvatarUrl($room), | 
			
		
	
		
			
				
					|  |  |  | 			]); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		return $results; | 
			
		
	
	
		
			
				
					|  |  | 
 |