Scope the sync to messages we have sent users...

This commit is contained in:
Kgothatso Ngako committed 2026-06-04 13:03:44 +02:00
1 parent 072c75e98d
commit d39b567748
2 files changed
+7 -1

No files matched your search

@@ -456,11 +456,14 @@ abstract class NostrDao(
}
if (chatMessageRelayListEvent != null) {
// Sync messages from this relay...
// Sync messages from this relay that were sent by us
val synchronizationFilter = SynchronizationFilter(
kinds = arrayOf(
GiftWrapEvent.KIND,
),
authors = arrayOf(
userPublicKey
),
tags = mapOf(
Pair("p", listOf(participant.participantPublicKey))
),
@@ -108,6 +108,9 @@ class ChatRoomDetailMessageListViewModel(
kinds = arrayOf(
GiftWrapEvent.KIND,
),
authors = arrayOf(
localChatRoom.chatRoom.userPublicKey
),
tags = mapOf(
Pair("p", listOf(recipients.participant.participantPublicKey))
),