Skip to content

Commit 0e5ac00

Browse files
committed
chore(fc): update sorting of members in a room to favor verified social profiles
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 5d6d936 commit 0e5ac00

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flipchatApp/src/main/kotlin/xyz/flipchat/app/features/chat/info/ChatInfoViewModel.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,10 @@ class ChatInfoViewModel @Inject constructor(
488488
}
489489
.mapValues { (_, members) ->
490490
members.sortedWith(
491-
compareByDescending<MinimalMember> { it.isHost }.thenByDescending { it.isSelf }
491+
compareByDescending<MinimalMember> { it.isHost }
492+
.thenByDescending { it.isSelf }
493+
.thenByDescending { it.socialProfiles.any { it.isVerifiedOnPlatform } }
494+
.thenByDescending { it.socialProfiles.isNotEmpty() }
492495
)
493496
}
494497
}

0 commit comments

Comments
 (0)