From ef6c1cfc638eb408d6498b799da89f5b5a610fc7 Mon Sep 17 00:00:00 2001 From: ganfra Date: Tue, 30 Jul 2019 17:37:16 +0200 Subject: [PATCH] RoomSummaryUpdater: remove unused params --- .../android/internal/session/room/RoomSummaryUpdater.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/RoomSummaryUpdater.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/RoomSummaryUpdater.kt index a65c466a..dda8b932 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/RoomSummaryUpdater.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/room/RoomSummaryUpdater.kt @@ -62,9 +62,7 @@ internal class RoomSummaryUpdater @Inject constructor(private val credentials: C roomId: String, membership: Membership? = null, roomSummary: RoomSyncSummary? = null, - unreadNotifications: RoomSyncUnreadNotifications? = null, - isDirect: Boolean? = null, - directUserId: String? = null) { + unreadNotifications: RoomSyncUnreadNotifications? = null) { val roomSummaryEntity = RoomSummaryEntity.where(realm, roomId).findFirst() ?: realm.createObject(roomId) @@ -97,10 +95,6 @@ internal class RoomSummaryUpdater @Inject constructor(private val credentials: C .asSequence() .map { it.stateKey } - if (isDirect != null) { - roomSummaryEntity.isDirect = isDirect - roomSummaryEntity.directUserId = directUserId - } roomSummaryEntity.displayName = roomDisplayNameResolver.resolve(roomId).toString() roomSummaryEntity.avatarUrl = roomAvatarResolver.resolve(roomId) roomSummaryEntity.topic = lastTopicEvent?.content.toModel()?.topic