chat-js: fix chat ordering and pending messages

This commit is contained in:
Logan Allen 2020-04-15 16:48:33 -04:00
parent 65cad93b1b
commit e98605c1bb
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ export class ChatScreen extends Component {
}
let pendingMessages = props.pendingMessages.has(props.station)
? props.pendingMessages.get(props.station).reverse()
? props.pendingMessages.get(props.station)
: [];
pendingMessages.map(function(value) {

View File

@ -39,7 +39,7 @@ export class Root extends Component {
if (envelopes.length === 0) {
messagePreviews[stat] = false;
} else {
messagePreviews[stat] = envelopes[envelopes.length - 1];
messagePreviews[stat] = envelopes[0];
}
unreads[stat] =