Починка реакций
This commit is contained in:
@@ -153,10 +153,12 @@ export default function ChatPage() {
|
||||
});
|
||||
|
||||
socket.on('reaction_added', (data: { messageId: string; chatId: string; userId: string; username: string; emoji: string }) => {
|
||||
console.log('[Socket] reaction_added received:', data);
|
||||
addReaction(data.messageId, data.chatId, data.userId, data.username, data.emoji);
|
||||
});
|
||||
|
||||
socket.on('reaction_removed', (data: { messageId: string; chatId: string; userId: string; emoji: string }) => {
|
||||
console.log('[Socket] reaction_removed received:', data);
|
||||
removeReaction(data.messageId, data.chatId, data.userId, data.emoji);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user