Bug fix on state when new commit comes in.
This commit is contained in:
1 parent
498c7edce3
commit
adfe49f725
2 files changed
+7
-1
No files matched your search
@@ -263,7 +263,7 @@ abstract class MarmotOutboundDao(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun deliveryWelcome(
|
suspend fun deliveryWelcome(
|
||||||
nostrGroupId: HexKey,
|
nostrGroupId: HexKey,
|
||||||
userPublicKey: HexKey,
|
userPublicKey: HexKey,
|
||||||
welcomeBytes: ByteArray,
|
welcomeBytes: ByteArray,
|
||||||
|
|||||||
@@ -398,6 +398,12 @@ abstract class NostrDao(
|
|||||||
groupEvent = groupEvent
|
groupEvent = groupEvent
|
||||||
)?.let { groupEventResult ->
|
)?.let { groupEventResult ->
|
||||||
logger.d("groupEventResult: $groupEventResult")
|
logger.d("groupEventResult: $groupEventResult")
|
||||||
|
// Save the mls chatRoom state...
|
||||||
|
database.chatRoomDao().upsert(
|
||||||
|
localChatRoom.chatRoom.copy(
|
||||||
|
mlsGroupState = mlsGroup.saveState().encodeTls().toHex()
|
||||||
|
)
|
||||||
|
)
|
||||||
ChatMessage.fromGroupEventResult(
|
ChatMessage.fromGroupEventResult(
|
||||||
database = database,
|
database = database,
|
||||||
activeKeyPair = activeKeyPair,
|
activeKeyPair = activeKeyPair,
|
||||||
|
|||||||
Reference in new issue
Block a user