1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-28 17:02:01 +03:00

Mark events which fail to send.

This commit is contained in:
Kegan Dougal
2015-06-18 09:32:04 +01:00
parent d74a71cc2d
commit d151ac49f2
6 changed files with 18 additions and 8 deletions

View File

@ -153,9 +153,12 @@ function printLine(event) {
if (event.getSender() === myUserId) {
name = "Me";
separator = ">>>";
if (event.status === "sending") {
if (event.status === sdk.EventStatus.SENDING) {
separator = "...";
}
else if (event.status === sdk.EventStatus.NOT_SENT) {
separator = " x ";
}
}
var body = "";