attach sender ID to messages

This commit is contained in:
marlon-erler
2026-09-27 01:57:11 +02:00
parent bdebc4a89d
commit 6bde9e0627
3 changed files with 23 additions and 22 deletions
+3 -3
View File
@@ -160,12 +160,12 @@ export default class ChatMessageViewModel {
// reactions
handleReaction = (reaction: ChatMessageReaction): void => {
if (reaction.isDeleting) {
this.allReactions.remove(reaction.sender);
this.allReactions.remove(reaction.senderId);
} else {
this.allReactions.set(reaction.sender, reaction);
this.allReactions.set(reaction.senderId, reaction);
}
if (reaction.sender != this.coreViewModel.settingsModel.username)
if (reaction.senderId != this.coreViewModel.settingsModel.username)
return;
this.userReaction.value = reaction.isDeleting
? undefined