Show indicator in Room List for unsent events

This commit is contained in:
Travis Ralston 2021-04-21 16:36:06 -06:00
parent cc095c85bf
commit 9227618b42
2 changed files with 43 additions and 15 deletions

View file

@ -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;