mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
Merge pull request #404 from Hexastack/392-issue-multiple-access-dont-returning-message-sent-from-other-users
fix: synchronized sended messages for the same accounts
This commit is contained in:
commit
10a4d6a22c
@ -253,6 +253,11 @@ export class ChatService {
|
||||
// Already existing user profile
|
||||
// Exec lastvisit hook
|
||||
this.eventEmitter.emit('hook:user:lastvisit', subscriber);
|
||||
this.websocketGateway.broadcast(
|
||||
subscriber,
|
||||
event.getEventType(),
|
||||
event._adapter.raw,
|
||||
);
|
||||
}
|
||||
|
||||
this.websocketGateway.broadcastSubscriberUpdate(subscriber);
|
||||
|
@ -250,7 +250,7 @@ const ChatProvider: React.FC<{
|
||||
}
|
||||
|
||||
setMessages((prevMessages) => [
|
||||
...prevMessages,
|
||||
...prevMessages.filter((message) => message.mid !== newIOMessage.mid),
|
||||
newIOMessage as TMessage,
|
||||
]);
|
||||
setScroll(0);
|
||||
|
Loading…
Reference in New Issue
Block a user