mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-12 15:01:38 +03:00
Merge branch 'mp/chat/pending-reordering' (#2824)
* origin/mp/chat/pending-reordering: chat: prepend new pending messages, not append Signed-off-by: Matilde Park <matilde@tlon.io>
This commit is contained in:
commit
e7d05988d3
@ -72,7 +72,7 @@ class UrbitApi {
|
||||
|
||||
addPendingMessage(msg) {
|
||||
if (store.state.pendingMessages.has(msg.path)) {
|
||||
store.state.pendingMessages.get(msg.path).push(msg.envelope);
|
||||
store.state.pendingMessages.get(msg.path).unshift(msg.envelope);
|
||||
} else {
|
||||
store.state.pendingMessages.set(msg.path, [msg.envelope]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user