From 759528f19a543b6899caf8de65415e1e42f5cad1 Mon Sep 17 00:00:00 2001 From: Dominic Fischer Date: Sun, 11 Apr 2021 10:54:17 +0100 Subject: [PATCH] Missed another spot Signed-off-by: Dominic Fischer --- .../java/im/vector/app/features/home/HomeDetailViewModel.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/HomeDetailViewModel.kt b/vector/src/main/java/im/vector/app/features/home/HomeDetailViewModel.kt index c87b19f0e6..908270cb79 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeDetailViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeDetailViewModel.kt @@ -109,9 +109,7 @@ class HomeDetailViewModel @AssistedInject constructor(@Assisted initialState: Ho ) .map { it.roomId } try { - awaitCallback { - session.markAllAsRead(roomIds, it) - } + session.markAllAsRead(roomIds) } catch (failure: Throwable) { Timber.d(failure, "Failed to mark all as read") }