mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #9026 from overleaf/msm-removed-chat-angular-event
[web] Remove legacy `Chat.MessageReceived` event GitOrigin-RevId: 60a11a57529cd366bab2b630b8cfe31f6a41a1c3
This commit is contained in:
parent
c331e7c73b
commit
74d14ba295
1 changed files with 0 additions and 5 deletions
|
@ -223,11 +223,6 @@ export function ChatProvider({ children }) {
|
|||
if (message.clientId === clientId) return
|
||||
|
||||
dispatch({ type: 'RECEIVE_MESSAGE', message })
|
||||
|
||||
// Temporary workaround to pass state to unread message balloon in Angular
|
||||
window.dispatchEvent(
|
||||
new CustomEvent('Chat.MessageReceived', { detail: { message } })
|
||||
)
|
||||
}
|
||||
|
||||
socket.on('new-chat-message', receivedMessage)
|
||||
|
|
Loading…
Reference in a new issue