From b6deff8a0bd3b937fd2ff975e13235e46e219b28 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 31 Aug 2022 11:11:27 +0200 Subject: [PATCH] Remove useless code. Returned value is not used. `observeRoomSummary()` is called a few lines above. --- .../im/vector/app/features/home/room/detail/TimelineViewModel.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineViewModel.kt index cea845a490..5fa23c8f40 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineViewModel.kt @@ -195,7 +195,6 @@ class TimelineViewModel @AssistedInject constructor( observeActiveRoomWidgets() observePowerLevel() setupPreviewUrlObservers() - room.getRoomSummaryLive() viewModelScope.launch(Dispatchers.IO) { tryOrNull { room.readService().markAsRead(ReadService.MarkAsReadParams.READ_RECEIPT) } }