mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-23 00:57:46 +02:00
Fixing missing messages on chat
This commit is contained in:
@@ -189,6 +189,7 @@ class User(val pubkeyHex: String) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Synchronized
|
||||||
fun addMessage(user: User, msg: Note) {
|
fun addMessage(user: User, msg: Note) {
|
||||||
val privateChatroom = getOrCreatePrivateChatroom(user)
|
val privateChatroom = getOrCreatePrivateChatroom(user)
|
||||||
if (msg !in privateChatroom.roomMessages) {
|
if (msg !in privateChatroom.roomMessages) {
|
||||||
@@ -197,6 +198,7 @@ class User(val pubkeyHex: String) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Synchronized
|
||||||
fun removeMessage(user: User, msg: Note) {
|
fun removeMessage(user: User, msg: Note) {
|
||||||
val privateChatroom = getOrCreatePrivateChatroom(user)
|
val privateChatroom = getOrCreatePrivateChatroom(user)
|
||||||
if (msg in privateChatroom.roomMessages) {
|
if (msg in privateChatroom.roomMessages) {
|
||||||
|
Reference in New Issue
Block a user