1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00
Commit Graph

54 Commits

Author SHA1 Message Date
Travis Ralston
c6af997542 Add a catastrophic throw to thread constructor (#2375)
This is an attempt to narrow down https://github.com/vector-im/element-web/issues/22141
2022-05-17 00:20:41 -06:00
Michael Telatynski
ba1f6ffc84 Tweak thread creation & event adding to fix bugs around relations (#2369)
* Remove legacy code which caused threads to begin life with too many events

* Update tests & behaviour
2022-05-16 09:01:39 +01:00
Michael Telatynski
ac5fee0a69 Fix race conditions around threads (#2331) 2022-05-03 14:25:17 +01:00
Michael Telatynski
e133005b44 Don't decrement the length count of a thread when root redacted (#2314) 2022-04-21 16:02:42 +00:00
Michael Telatynski
b58d09aa9a Prevent duplicated re-emitter setups in event-mapper (#2293) 2022-04-12 09:42:55 +01:00
Michael Telatynski
286500e335 Fix issues around echo & redaction handling in threads (#2286) 2022-04-11 08:58:13 +01:00
Michael Telatynski
dde4285cdf Fix handling of threaded messages around edits & echoes (#2267) 2022-04-07 13:46:50 +01:00
Michael Telatynski
85b8d4f83a Fix issues with /search and /context API handling for threads (#2261) 2022-03-29 09:24:45 +01:00
Michael Telatynski
c541b3f1ce Fix issues with duplicated MatrixEvent objects around threads (#2256) 2022-03-24 12:24:19 +00:00
Germain
75674d961a Create threads event timeline set in the room model (#2244) 2022-03-18 11:58:59 +00:00
Germain
42b3b73551 Fix threads reply count sometimes off by one (#2240) 2022-03-15 18:59:12 -06:00
Germain
9058dbf289 Switch to using stable values for Threads (#2228) 2022-03-11 09:04:17 +00:00
Michael Telatynski
40d1674a5c Fix incorrect usage of unstable variant of is_falling_back (#2227) 2022-03-10 15:31:57 +00:00
Germain
fc5f0e8047 Fix message ordering in threads (#2215) 2022-03-03 15:21:17 +00:00
Germain
4e4afdb795 Update thread info after MSC3440 updates (#2209) 2022-03-02 10:52:08 +00:00
Michael Telatynski
12e525b664 Improve typing around event emitter handlers (#2180) 2022-02-22 12:18:07 +00:00
Germain
6b822ccd61 Improve thread partitioning for 2nd degree relations (#2165) 2022-02-10 15:09:46 +00:00
Germain
9120b1dfd9 Expose room state helper (#2162) 2022-02-08 12:08:43 +00:00
Germain
7faff66006 Out of sync thread summary in main timeline (#2153) 2022-02-04 11:57:42 +00:00
Germain
6bf8142ff6 Fix initial sync fail when event fetching unsuccessful (#2150) 2022-02-02 17:56:43 +00:00
Germain
51f3fac87b Add thread relation to sticker message (#2147) 2022-02-01 10:36:04 +00:00
Germain
66b98844a2 Refactor thread model to be created from the root event (#2142) 2022-02-01 08:58:39 +00:00
Germain
02ba233644 Improved threads reliability with/without server side support (#2132) 2022-01-26 13:54:00 +00:00
Germain
8434f29c54 Make threads reply chain filter out local event ID (#2129) 2022-01-25 10:51:12 +00:00
Germain
48dbed8001 Make threads events indexed by the index manager (#2089) 2021-12-23 09:58:11 +00:00
Germain
2206b80e65 Threads notifications after app startup (#2043) 2021-12-07 10:58:34 +00:00
Germain
4f4811e1d9 Emit thread update after event decryption (#2040) 2021-11-30 14:40:59 +00:00
Germain
ddd6a05198 Make local echo work for threads (#2026) 2021-11-24 08:19:17 +00:00
Germain
0ccde7807f Comprehensive events emitter typing (#2034) 2021-11-23 15:16:35 +00:00
Germain
67b8da719f Add a flag to track user participation in a thread (#2030) 2021-11-23 08:20:27 +00:00
Dariusz Niemczyk
c3a266b3e7 Implement TypedEventEmitter for better TS support (#2018)
We're using stringly typed events everywhere, this is the first step for
better typescript support with our event emitters before we replace it
with something much better for React support.
2021-11-15 14:47:21 +00:00
Germain
b07d44a6c0 Getter for last thread reply (#2015) 2021-11-09 14:46:48 +00:00
Germain
0c47e27f9f Add explicit options to disable pending events (#1993) 2021-10-22 09:23:12 +01:00
Germain
d5ab4ba2ef Update thread replies count to only include m.thread (#1991) 2021-10-20 16:49:54 +01:00
Germain Souquet
8c19cf45e2 Dispatch a Thread.New event 2021-10-15 11:09:14 +01:00
Germain Souquet
7b89862ed0 Make threads use 'm.thread' relation 2021-10-14 16:56:48 +01:00
Germain Souquet
a14cf1a339 Remove unused DuplicateStrategy 2021-10-01 12:07:16 +01:00
Germain Souquet
30758600f0 Prepend events to thread when fetching the reply chain 2021-10-01 10:49:46 +01:00
Germain
5951958c05 Merge pull request #1945 from matrix-org/gsouquet/thread-serialise-18720 2021-09-24 11:17:39 +01:00
Germain Souquet
c748aebfc5 Add context to explain why we fetch roomstate in threads 2021-09-22 17:36:12 +01:00
Germain Souquet
5d4f347eaa Add thread serialisation helper 2021-09-22 11:35:19 +01:00
Germain Souquet
1359c0574e Share room state events with thread's timelines 2021-09-22 11:19:08 +01:00
Dariusz Niemczyk
5ba836a31b Fix PR comments 2021-09-16 17:12:57 +02:00
Dariusz Niemczyk
8ab0246ca2 Fix PR comments 2021-09-16 16:03:47 +02:00
Dariusz Niemczyk
ed68bd4108 Typescriptify thread events a bit 2021-09-16 15:59:41 +02:00
Germain Souquet
f40d0d24c7 Move relations and redactions to thread timeline 2021-09-10 09:21:25 +01:00
Germain Souquet
33c9471112 Make timelineSet public readonly 2021-09-09 17:23:45 +01:00
Germain Souquet
e97d18a03b Improve thread deduplication thread process
Some threads were still holding a reference to the original thread models they were assigned to, leading to some unexpected timeline rendering
2021-09-07 15:05:45 +01:00
Germain Souquet
b7a5f81f95 Add experimental indicators for all threading related features 2021-08-19 11:10:20 +01:00
Germain Souquet
b884accc99 Dispatch thread events 2021-08-17 17:43:00 +01:00