mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-09-14 23:02:25 +03:00
Added Notification.js for noti mapping (#82)
This commit is contained in:
parent
6b53b78ee3
commit
a888427777
3 changed files with 152 additions and 0 deletions
|
@ -4,6 +4,7 @@ import * as sdk from 'matrix-js-sdk';
|
|||
import { secret } from './state/auth';
|
||||
import RoomList from './state/RoomList';
|
||||
import RoomsInput from './state/RoomsInput';
|
||||
import Notifications from './state/Notifications';
|
||||
|
||||
global.Olm = require('@matrix-org/olm');
|
||||
|
||||
|
@ -56,6 +57,7 @@ class InitMatrix extends EventEmitter {
|
|||
if (prevState === null) {
|
||||
this.roomList = new RoomList(this.matrixClient);
|
||||
this.roomsInput = new RoomsInput(this.matrixClient);
|
||||
this.notifications = new Notifications(this.roomList);
|
||||
this.emit('init_loading_finished');
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue