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