teconomix
33678bb973
fix(mattermost): set lastSentText after network success; wait for in-flight tick in flush
...
Race condition: lastSentText was set synchronously before the async send/patch
completed, so a failed request was treated as delivered and subsequent ticks
skipped retrying. flushPendingPatch also didn't wait for in-flight interval ticks,
causing it to exit early (text === lastSentText guard) when a tick had just fired
but hadn't resolved yet, leaving streamMessageId null and forcing final delivery
to send a new post instead of patching the streamed one.
Fixes:
- schedulePatch interval: set lastSentText only after successful send/patch
- flushPendingPatch: wait up to 2s for in-flight patchSending before proceeding
- flushPendingPatch: set lastSentText after network success, not before
2026-03-18 13:31:10 +00:00
..
2026-03-18 00:30:01 -07:00
2026-03-18 00:30:01 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 13:44:23 +01:00
2026-03-18 00:30:01 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 02:04:10 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 13:44:23 +01:00
2026-03-18 00:30:01 -07:00
2026-03-18 13:44:23 +01:00
2026-03-17 00:14:12 -07:00
2026-03-17 21:35:13 -07:00
2026-03-18 13:44:23 +01:00
2026-03-18 00:27:02 -05:00
2026-03-18 02:04:10 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 00:20:15 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 01:02:16 -07:00
2026-03-17 00:14:12 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 13:44:23 +01:00
2026-03-18 13:44:23 +01:00
2026-03-18 13:31:10 +00:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:30:01 -07:00
2026-03-17 00:14:12 -07:00
2026-03-17 00:14:12 -07:00
2026-03-17 00:14:12 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:27:02 -05:00
2026-03-18 13:44:23 +01:00
2026-03-18 13:44:23 +01:00
2026-03-18 13:44:23 +01:00
2026-03-17 00:14:12 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 02:04:10 -07:00
2026-03-17 00:14:12 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 02:29:25 -07:00
2026-03-16 12:06:32 +00:00
2026-03-18 00:27:02 -05:00
2026-03-18 00:30:01 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:30:01 -07:00
2026-03-17 00:14:12 -07:00
2026-03-16 22:51:46 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 00:30:01 -07:00
2026-03-17 23:23:58 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 15:37:24 +05:30
2026-03-18 00:30:01 -07:00
2026-03-18 02:43:43 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 02:29:25 -07:00
2026-03-17 00:14:12 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 13:44:23 +01:00
2026-03-17 00:14:12 -07:00
2026-03-18 00:30:01 -07:00
2026-03-18 02:29:25 -07:00
2026-03-17 00:14:12 -07:00
2026-03-18 02:29:25 -07:00
2026-03-18 13:44:23 +01:00
2026-03-18 13:44:23 +01:00
2026-03-12 23:03:19 +00:00