Code quality

This commit is contained in:
Benoit Marty 2019-07-17 15:05:29 +02:00
parent fc9ef579ca
commit 844f6d16a4
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,7 @@ Improvements:
- Improve long tap menu: reply on top, more compact (#368)
- Quick reply in timeline with swipe gesture (#167)
- Improve edit of replies
- Improve performance on Room Members and Users management (#381)
Other changes:
- migrate from rxbinding 2 to rxbinding 3

View File

@ -90,7 +90,9 @@ internal class RoomDisplayNameResolver @Inject constructor(private val context:
val inviteMeEvent = roomMembers.queryRoomMemberEvent(credentials.userId).findFirst()
val inviterId = inviteMeEvent?.sender
name = if (inviterId != null) {
val inviterMemberEvent = loadedMembers.where().equalTo(EventEntityFields.STATE_KEY, inviterId).findFirst()
val inviterMemberEvent = loadedMembers.where()
.equalTo(EventEntityFields.STATE_KEY, inviterId)
.findFirst()
inviterMemberEvent?.toRoomMember()?.displayName
} else {
context.getString(R.string.room_displayname_room_invite)