mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 18:05:36 +03:00
Code quality
This commit is contained in:
parent
fc9ef579ca
commit
844f6d16a4
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue