Repository navigation
Commit 8611209
committed
fix(mothership): anchor a late re-queue on the messages ahead of it, not an index
A restored message went back at an index captured at dispatch, offset by
how many messages a chat's queue held when the new-chat queue moved into it.
Removing any of those while the POST was out shifted it behind a newer
message. It now goes right after the last message still queued that was
ahead of it (at dispatch, or in the chat's queue before the move), else at
the head.1 parent 75ae554 commit 8611209
4 files changed
Lines changed: 60 additions & 23 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/home/hooks
- stores/mothership-queue
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4365 | 4365 | | |
4366 | 4366 | | |
4367 | 4367 | | |
4368 | | - | |
| 4368 | + | |
4369 | 4369 | | |
4370 | 4370 | | |
4371 | 4371 | | |
| |||
4906 | 4906 | | |
4907 | 4907 | | |
4908 | 4908 | | |
4909 | | - | |
4910 | | - | |
| 4909 | + | |
| 4910 | + | |
| 4911 | + | |
| 4912 | + | |
4911 | 4913 | | |
4912 | 4914 | | |
4913 | 4915 | | |
| |||
4936 | 4938 | | |
4937 | 4939 | | |
4938 | 4940 | | |
4939 | | - | |
| 4941 | + | |
4940 | 4942 | | |
4941 | 4943 | | |
4942 | 4944 | | |
| |||
5009 | 5011 | | |
5010 | 5012 | | |
5011 | 5013 | | |
5012 | | - | |
| 5014 | + | |
5013 | 5015 | | |
5014 | 5016 | | |
5015 | 5017 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
215 | 232 | | |
216 | 233 | | |
217 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
118 | 131 | | |
119 | 132 | | |
120 | 133 | | |
121 | | - | |
| 134 | + | |
122 | 135 | | |
123 | | - | |
124 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
125 | 139 | | |
126 | | - | |
| 140 | + | |
127 | 141 | | |
128 | | - | |
| 142 | + | |
| 143 | + | |
129 | 144 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
136 | 151 | | |
137 | 152 | | |
138 | 153 | | |
| |||
222 | 237 | | |
223 | 238 | | |
224 | 239 | | |
225 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
226 | 244 | | |
227 | 245 | | |
228 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments