mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
3b1c4e19a4
React chat store GitOrigin-RevId: 204009eb5798b02a41e621b33b05ef0cb9d10b15
11 lines
331 B
JavaScript
11 lines
331 B
JavaScript
import App from '../../../base'
|
|
import { react2angular } from 'react2angular'
|
|
|
|
import ChatPane from '../components/chat-pane'
|
|
|
|
App.controller('ReactChatController', function($scope, ide) {
|
|
$scope.resetUnreadMessages = () =>
|
|
ide.$scope.$broadcast('chat:resetUnreadMessages')
|
|
})
|
|
|
|
App.component('chat', react2angular(ChatPane))
|