mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-08 20:08:06 +02:00
Fixes room names when clients send the same user twice in the ptags.
This commit is contained in:
parent
fee2a0e4f8
commit
ce27be2053
@ -31,9 +31,9 @@ class ChatMessageEvent(
|
||||
val listedPubKeys = recipientsPubKey()
|
||||
|
||||
val result = if (pubKey == oneSideHex) {
|
||||
listedPubKeys.minus(oneSideHex).toSet()
|
||||
listedPubKeys.toSet().minus(oneSideHex)
|
||||
} else {
|
||||
listedPubKeys.plus(pubKey).minus(oneSideHex).toSet()
|
||||
listedPubKeys.plus(pubKey).toSet().minus(oneSideHex)
|
||||
}
|
||||
|
||||
if (result.isEmpty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user