Add todo to save the bundle

This commit is contained in:
Kgothatso Ngako committed 2026-06-18 23:29:28 +03:00
1 parent 91699ea0b9
commit 24cb4db9a9
2 files changed
+19 -12

No files matched your search

@@ -83,23 +83,28 @@ class ChatRoomCreationViewModel(
chatRoomId = group.groupId.toHex(),
activeUserPublicKey = keyPair.pubKey.toHexKey(),
relayHint = null,
defaultSubject = null,
defaultSubject = name.toString(),
mlsGroupState = group.saveState().encodeTls().toHex()
)
if (localChatRoom == null) {
onNavigateToChatRoom.invoke(
ImplementationPendingRoute("Something went wrong")
)
} else {
onNavigateToChatRoom.invoke(
ChatRoomDetailRoute(
activeUserPublicKey = keyPair.pubKey.toHexKey(),
chatRoomId = localChatRoom.chatRoom.id,
relayHint = null
viewModelScope.launch(Dispatchers.Main) {
if (localChatRoom != null) {
// TODO: Broadcast the thing...
// TODO: Navigate to invitation screen...
onNavigateToChatRoom.invoke(
ChatRoomDetailRoute(
activeUserPublicKey = keyPair.pubKey.toHexKey(),
chatRoomId = localChatRoom.chatRoom.id,
relayHint = null
)
)
)
} else {
onNavigateToChatRoom.invoke(
ImplementationPendingRoute("Something went wrong")
)
}
}
}
}
}