mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 22:03:50 +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) {
|
addPendingMessage(msg) {
|
||||||
if (store.state.pendingMessages.has(msg.path)) {
|
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 {
|
} else {
|
||||||
store.state.pendingMessages.set(msg.path, [msg.envelope]);
|
store.state.pendingMessages.set(msg.path, [msg.envelope]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user