add documentation to comparator

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-04-14 18:53:05 +02:00 committed by Marcel Hibbe
parent f118cc7dd3
commit 914bb44514
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -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) {