overleaf/services/web/frontend/js/features/chat/controllers/chat-controller.js
Miguel Serrano 3b1c4e19a4 Merge pull request #3300 from overleaf/msm-chat-react-store
React chat store

GitOrigin-RevId: 204009eb5798b02a41e621b33b05ef0cb9d10b15
2020-11-25 03:04:29 +00:00

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))