Sync MLS group messages
This commit is contained in:
1 parent
2210a0e28b
commit
0a5a2194c4
7 files changed
+90
-50
No files matched your search
@@ -20,6 +20,7 @@ import at.torch.compose.exceptions.GiftWrapImpersonationException
|
||||
import at.torch.compose.exceptions.GiftWrapSealDecryptionException
|
||||
import at.torch.compose.exceptions.GiftWrapUnsealException
|
||||
import at.torch.compose.exceptions.MarmotMissingKeyPackageBundleException
|
||||
import at.torch.compose.exceptions.MarmotMissingNostrGroupDataExtension
|
||||
import at.torch.compose.exceptions.MarmotWelcomeEventMissingKeyPackageEventIdException
|
||||
import at.torch.compose.extensions.toHex
|
||||
import at.torch.compose.network.serialization.encodeToJsonString
|
||||
@@ -615,7 +616,7 @@ abstract class NostrDao(
|
||||
)
|
||||
logger.d("Group: $group")
|
||||
|
||||
val nostrGroupId = group.groupId.toHex()
|
||||
val nostrGroupId = group.currentMarmotData()?.nostrGroupId ?: throw MarmotMissingNostrGroupDataExtension("Didn't find group data for $group")
|
||||
|
||||
logger.d("nostrGroupId: $nostrGroupId")
|
||||
|
||||
|
||||
@@ -78,8 +78,8 @@ data class ChatRoom(
|
||||
): at.torch.compose.database.model.traits.TimestampedEntity,
|
||||
at.torch.compose.database.model.traits.LocalStoreEntity,
|
||||
at.torch.compose.database.model.traits.UserViewableEntity,
|
||||
at.torch.compose.database.model.traits.SoftDeletableEntity {
|
||||
|
||||
at.torch.compose.database.model.traits.SoftDeletableEntity
|
||||
{
|
||||
companion object {
|
||||
const val TAG = "ChatRoom"
|
||||
|
||||
|
||||
Reference in new issue
Block a user