mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
android, desktop: removed group connections
not needed, missunderstanding in requirements
This commit is contained in:
+1
-7
@@ -75,7 +75,7 @@ import java.util.HashSet
|
||||
|
||||
|
||||
enum class ContactType {
|
||||
CARD, REQUEST, RECENT, CONNECTED_VIA_GROUP, REMOVED, UNKNOWN
|
||||
CARD, REQUEST, RECENT, REMOVED, UNKNOWN
|
||||
}
|
||||
|
||||
private fun contactChats(c: List<Chat>, contactTypes: List<ContactType>): List<Chat> {
|
||||
@@ -94,12 +94,6 @@ private fun getContactType(chat: Chat): ContactType {
|
||||
else -> ContactType.RECENT
|
||||
}
|
||||
}
|
||||
is ChatInfo.Group -> {
|
||||
when {
|
||||
cInfo.groupInfo.sendMsgEnabled -> ContactType.CONNECTED_VIA_GROUP
|
||||
else -> ContactType.UNKNOWN
|
||||
}
|
||||
}
|
||||
else -> ContactType.UNKNOWN
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user