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

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

View File

@@ -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))
),

View File

@@ -108,6 +108,9 @@ class ChatRoomDetailMessageListViewModel(
kinds = arrayOf(
GiftWrapEvent.KIND,
),
authors = arrayOf(
localChatRoom.chatRoom.userPublicKey
),
tags = mapOf(
Pair("p", listOf(recipients.participant.participantPublicKey))
),