mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +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) {
|
for (group in lgc) {
|
||||||
if (group !is GroupInfo.LegacyGroupInfo) continue
|
if (group !is GroupInfo.LegacyGroupInfo) continue
|
||||||
val existingGroup = existingClosedGroups.firstOrNull { GroupUtil.doubleDecodeGroupId(it.encodedId) == group.sessionId }
|
val existingGroup = existingClosedGroups.firstOrNull { GroupUtil.doubleDecodeGroupId(it.encodedId) == group.sessionId }
|
||||||
|
val existingThread = existingGroup?.let { getThreadId(existingGroup.encodedId) }
|
||||||
if (existingGroup != null) {
|
if (existingGroup != null) {
|
||||||
Log.d("Loki-DBG", "Existing closed group, don't add")
|
Log.d("Loki-DBG", "Existing closed group, don't add")
|
||||||
if (group.hidden) {
|
if (group.hidden && existingThread != null) {
|
||||||
threadDb.setThreadArchived(existingGroup.)
|
threadDb.setThreadArchived(existingThread)
|
||||||
|
} else if (existingThread == null) {
|
||||||
|
Log.w("Loki-DBG", "Existing group had no thread to hide")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
val members = group.members.keys.map { Address.fromSerialized(it) }
|
val members = group.members.keys.map { Address.fromSerialized(it) }
|
||||||
|
Loading…
Reference in New Issue
Block a user