android, desktop: removed group connections

not needed, missunderstanding in requirements
This commit is contained in:
Diogo Cunha
2024-07-16 21:20:42 +01:00
parent 69ad380245
commit f43a2d070b
@@ -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
}
}