mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 22:33:06 +03:00
chat-js: fix chat ordering and pending messages
This commit is contained in:
parent
65cad93b1b
commit
e98605c1bb
@ -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) {
|
||||
|
@ -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] =
|
||||
|
Loading…
Reference in New Issue
Block a user