mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 18:05:36 +03:00
Fix room list display on my account
following Ganfra's advices
This commit is contained in:
parent
30bfada5d2
commit
7a5ff282b6
1 changed files with 3 additions and 3 deletions
|
@ -41,10 +41,10 @@ class RoomSummaryComparator
|
|||
rightTimestamp = rightRoomSummary.lastMessage?.originServerTs ?: 0
|
||||
}
|
||||
|
||||
if (leftRoomSummary?.lastMessage == null) {
|
||||
retValue = 1
|
||||
} else if (rightRoomSummary?.lastMessage == null) {
|
||||
if (rightRoomSummary?.lastMessage == null) {
|
||||
retValue = -1
|
||||
} else if (leftRoomSummary?.lastMessage == null) {
|
||||
retValue = 1
|
||||
} else if (rightHighlightCount > 0 && leftHighlightCount == 0) {
|
||||
retValue = 1
|
||||
} else if (rightHighlightCount == 0 && leftHighlightCount > 0) {
|
||||
|
|
Loading…
Reference in a new issue