File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -190,9 +190,10 @@ Template.room.helpers
190
190
canRecordAudio : ->
191
191
return RocketChat .settings .get (' Message_AudioRecorderEnabled' ) and (navigator .getUserMedia ? or navigator .webkitGetUserMedia ? )
192
192
193
- roomManager : ->
193
+ unreadSince : ->
194
194
room = ChatRoom .findOne (this ._id , { reactive : false })
195
- return RoomManager .openedRooms [room .t + room .name ]
195
+ if room?
196
+ return RoomManager .openedRooms [room .t + room .name ]? .unreadSince ? .get ()
196
197
197
198
unreadCount : ->
198
199
return RoomHistoryManager .getRoom (@_id ).unreadNotLoaded .get () + Template .instance ().unreadCount .get ()
Original file line number Diff line number Diff line change 39
39
{{/each}}
40
40
</ div >
41
41
{{#if unreadCount}}
42
- {{#if roomManager. unreadSince.get }}
42
+ {{#if unreadSince}}
43
43
< div class ="unread-bar ">
44
44
{{_ "S_new_messages_since_s" unreadCount formatUnreadSince}}
45
45
< a >
You can’t perform that action at this time.
0 commit comments