mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +00:00
chore: extra missed existing group
This commit is contained in:
parent
338de329ed
commit
3642aaa511
@ -410,10 +410,13 @@ class Storage(context: Context, helper: SQLCipherOpenHelper, private val configF
|
||||
for (group in lgc) {
|
||||
if (group !is GroupInfo.LegacyGroupInfo) continue
|
||||
val existingGroup = existingClosedGroups.firstOrNull { GroupUtil.doubleDecodeGroupId(it.encodedId) == group.sessionId }
|
||||
val existingThread = existingGroup?.let { getThreadId(existingGroup.encodedId) }
|
||||
if (existingGroup != null) {
|
||||
Log.d("Loki-DBG", "Existing closed group, don't add")
|
||||
if (group.hidden) {
|
||||
threadDb.setThreadArchived(existingGroup.)
|
||||
if (group.hidden && existingThread != null) {
|
||||
threadDb.setThreadArchived(existingThread)
|
||||
} else if (existingThread == null) {
|
||||
Log.w("Loki-DBG", "Existing group had no thread to hide")
|
||||
}
|
||||
} else {
|
||||
val members = group.members.keys.map { Address.fromSerialized(it) }
|
||||
|
Loading…
Reference in New Issue
Block a user