@@ -44,7 +44,7 @@ func newRouter(matrix *signaling.MatrixClient, config conf.Config) chan<- Router
4444 matrix : matrix ,
4545 conferenceSinks : make (map [string ]* common.Sender [conf.MatrixMessage ]),
4646 config : config ,
47- channel : make (chan RouterMessage ),
47+ channel : make (chan RouterMessage , 128 ),
4848 }
4949
5050 // Start the main loop of the Router.
@@ -59,9 +59,9 @@ func newRouter(matrix *signaling.MatrixClient, config conf.Config) chan<- Router
5959 // Remove the conference that ended from the list.
6060 delete (router .conferenceSinks , msg .conferenceID )
6161 // Process the message that was not read by the conference.
62- if msg .unread != nil {
63- // TODO : We must handle this message to avoid glare on session end.
64- // router.handleMatrixEvent(* msg.unread)
62+ if len ( msg .unread ) > 0 {
63+ // FIXME : We must handle these messages!
64+ logrus . Warnf ( "Unread messages: %v" , len ( msg .unread ) )
6565 }
6666 }
6767 }
@@ -162,7 +162,7 @@ type ConferenceEndedMessage struct {
162162 // The ID of the conference that has ended.
163163 conferenceID string
164164 // A message (or messages in future) that has not been processed (if any).
165- unread * conf.MatrixMessage
165+ unread [] conf.MatrixMessage
166166}
167167
168168// A simple wrapper around channel that contains the ID of the conference that sent the message.
@@ -180,7 +180,7 @@ func createConferenceEndNotifier(conferenceID string, channel chan<- RouterMessa
180180}
181181
182182// A function that a conference calls when it is ended.
183- func (c * ConferenceEndNotifier ) Notify (unread * conf.MatrixMessage ) {
183+ func (c * ConferenceEndNotifier ) Notify (unread [] conf.MatrixMessage ) {
184184 c .channel <- ConferenceEndedMessage {
185185 conferenceID : c .conferenceID ,
186186 unread : unread ,
0 commit comments