add you suffix to the room name

This commit is contained in:
2026-06-04 08:58:01 +07:00
parent bc6778c801
commit a4b4e2540b
3 changed files with 22 additions and 15 deletions

View File

@@ -699,7 +699,7 @@ class Nostr {
}
suspend fun sendMessage(
to: List<PublicKey>,
to: Set<PublicKey>,
content: String,
subject: String? = null,
replies: List<EventId> = emptyList(),
@@ -728,7 +728,7 @@ class Nostr {
tags.add(Tag.publicKey(pubkey))
}
for (receiver in listOf(currentUser) + to) {
for (receiver in setOf(currentUser) + to) {
// Construct the rumor event
// NEVER SIGN this event with the current user signer
val rumor = EventBuilder

View File

@@ -548,7 +548,7 @@ class NostrViewModel(
try {
val room = getChatRoom(roomId)
nostr.sendMessage(
to = room.members.toList(),
to = room.members,
content = message,
subject = room.subject,
replies = replies,