feat: adding more serialization changes for community base info and user groups LGC

This commit is contained in:
0x330a
2023-03-01 12:04:15 +11:00
parent 858893a0e9
commit 1e43ef7318
12 changed files with 72 additions and 69 deletions

View File

@@ -366,7 +366,7 @@ class Storage(context: Context, helper: SQLCipherOpenHelper, private val configF
is Conversation.LegacyGroup -> conversation.groupId.let {
getOrCreateThreadIdFor("", it,null)
}
is Conversation.Community -> conversation.baseUrl.let {
is Conversation.Community -> conversation.baseCommunityInfo.baseUrl.let {
getOrCreateThreadIdFor("",null, it)
}
}

View File

@@ -141,7 +141,8 @@ object ConfigurationMessageUtilities {
blocked = settings.isBlocked,
approved = settings.isApproved,
approvedMe = settings.hasApprovedMe(),
profilePicture = userPic ?: UserPic.DEFAULT
profilePicture = userPic ?: UserPic.DEFAULT,
priority = 0 // TODO: read this in from a pinned priority
)
contactConfig.set(contactInfo)
}