Invite: fix inviterId being overrided
This commit is contained in:
parent
483256093a
commit
19b9617a09
@ -134,7 +134,12 @@ internal class RoomSummaryUpdater @Inject constructor(
|
|||||||
roomSummaryEntity.isEncrypted = encryptionEvent != null
|
roomSummaryEntity.isEncrypted = encryptionEvent != null
|
||||||
roomSummaryEntity.typingUserIds.clear()
|
roomSummaryEntity.typingUserIds.clear()
|
||||||
roomSummaryEntity.typingUserIds.addAll(ephemeralResult?.typingUserIds.orEmpty())
|
roomSummaryEntity.typingUserIds.addAll(ephemeralResult?.typingUserIds.orEmpty())
|
||||||
roomSummaryEntity.inviterId = inviterId
|
|
||||||
|
if (roomSummaryEntity.membership == Membership.INVITE && inviterId != null) {
|
||||||
|
roomSummaryEntity.inviterId = inviterId
|
||||||
|
} else if (roomSummaryEntity.membership != Membership.INVITE) {
|
||||||
|
roomSummaryEntity.inviterId = null
|
||||||
|
}
|
||||||
|
|
||||||
if (updateMembers) {
|
if (updateMembers) {
|
||||||
val otherRoomMembers = RoomMemberHelper(realm, roomId)
|
val otherRoomMembers = RoomMemberHelper(realm, roomId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user