mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +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)
|
- Improve long tap menu: reply on top, more compact (#368)
|
||||||
- Quick reply in timeline with swipe gesture (#167)
|
- Quick reply in timeline with swipe gesture (#167)
|
||||||
- Improve edit of replies
|
- Improve edit of replies
|
||||||
|
- Improve performance on Room Members and Users management (#381)
|
||||||
|
|
||||||
Other changes:
|
Other changes:
|
||||||
- migrate from rxbinding 2 to rxbinding 3
|
- 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 inviteMeEvent = roomMembers.queryRoomMemberEvent(credentials.userId).findFirst()
|
||||||
val inviterId = inviteMeEvent?.sender
|
val inviterId = inviteMeEvent?.sender
|
||||||
name = if (inviterId != null) {
|
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
|
inviterMemberEvent?.toRoomMember()?.displayName
|
||||||
} else {
|
} else {
|
||||||
context.getString(R.string.room_displayname_room_invite)
|
context.getString(R.string.room_displayname_room_invite)
|
||||||
|
|
Loading…
Reference in a new issue