mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
add documentation to comparator
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
f118cc7dd3
commit
914bb44514
@ -685,6 +685,9 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA
|
||||
private const val ID_DELETE_CONVERSATION_DIALOG = 0
|
||||
}
|
||||
|
||||
/**
|
||||
* Comparator for participants, sorts by online-status, moderator-status and display name.
|
||||
*/
|
||||
class UserItemComparator : Comparator<UserItem> {
|
||||
override fun compare(left: UserItem, right: UserItem): Int {
|
||||
if (left.isOnline && !right.isOnline) {
|
||||
|
Loading…
Reference in New Issue
Block a user