feat(#1990): surface pending recv() message count in get_loose_ends
This commit is contained in:
parent
678f50f3fb
commit
49db9d6e1c
5 changed files with 44 additions and 0 deletions
|
|
@ -891,6 +891,12 @@ window.marked = marked;
|
|||
el('span', { class: 'inbox-ts' }, 'scheduled ' + fmtAge(t.age_seconds || 0) + ' ago'),
|
||||
el('div', { class: 'inbox-body' }, t.message || ''),
|
||||
);
|
||||
} else if (t.kind === 'pending_messages') {
|
||||
li.append(
|
||||
el('span', { class: 'inbox-from' }, '✉ inbox'), ' ',
|
||||
el('span', { class: 'inbox-sep' }, (t.count || 0) + ' pending message(s)'), ' ',
|
||||
el('span', { class: 'inbox-ts' }, 'drain with recv'),
|
||||
);
|
||||
} else {
|
||||
li.append(el('span', { class: 'inbox-body' }, JSON.stringify(t)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue