mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-20 15:48:39 +00:00
fix: compile errors from updating library to use latest branch, now requires cmake 3.22.1
This commit is contained in:
@@ -137,8 +137,8 @@ class Storage(context: Context, helper: SQLCipherOpenHelper, private val configF
|
||||
// recipient is open group
|
||||
recipient.isOpenGroupRecipient -> {
|
||||
val openGroupJoinUrl = getOpenGroup(threadId)?.joinURL ?: return
|
||||
Conversation.OpenGroup.parseFullUrl(openGroupJoinUrl)?.let { (base, room, pubKey) ->
|
||||
config.getOrConstructOpenGroup(base, room, pubKey)
|
||||
Conversation.Community.parseFullUrl(openGroupJoinUrl)?.let { (base, room, pubKey) ->
|
||||
config.getOrConstructCommunity(base, room, pubKey)
|
||||
} ?: return
|
||||
}
|
||||
// otherwise recipient is one to one
|
||||
@@ -356,10 +356,10 @@ class Storage(context: Context, helper: SQLCipherOpenHelper, private val configF
|
||||
is Conversation.OneToOne -> conversation.sessionId.let {
|
||||
getOrCreateThreadIdFor(fromSerialized(it))
|
||||
}
|
||||
is Conversation.LegacyClosedGroup -> conversation.groupId.let {
|
||||
is Conversation.LegacyGroup -> conversation.groupId.let {
|
||||
getOrCreateThreadIdFor("", it,null)
|
||||
}
|
||||
is Conversation.OpenGroup -> conversation.baseUrl.let {
|
||||
is Conversation.Community -> conversation.baseUrl.let {
|
||||
getOrCreateThreadIdFor("",null, it)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user