Show indicator in Room List for unsent events
This commit is contained in:
parent
cc095c85bf
commit
9227618b42
2 changed files with 43 additions and 15 deletions
|
@ -34,7 +34,7 @@ const STATUS_BAR_HIDDEN = 0;
|
|||
const STATUS_BAR_EXPANDED = 1;
|
||||
const STATUS_BAR_EXPANDED_LARGE = 2;
|
||||
|
||||
function getUnsentMessages(room) {
|
||||
export function getUnsentMessages(room) {
|
||||
if (!room) { return []; }
|
||||
return room.getPendingEvents().filter(function(ev) {
|
||||
return ev.status === EventStatus.NOT_SENT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue