Michael Telatynski
1744f0e97b
Revert "Ensure we don't overinflate the total notification count ( #3634 )" ( #3639 )
2023-07-31 11:57:11 +01:00
Michael Telatynski
fd0c4a7f56
Ensure we don't overinflate the total notification count ( #3634 )
...
* Ensure we don't overinflate the total notification count
By correctly comparing push rules before & after decryption
* DRY the code
* Testsssss
* Update tests
2023-07-28 15:05:11 +00:00
Will Hunt
195d1730bd
Fix notification counts for encrypted rooms with ignored event rules ( #3130 )
...
* Validate vars early
* Split out unread counts for total and highlight to different logic blocks
* Add tests for ignoring non notifying events
* Fix possibly incorrect tests?
* lint fix
* Refactor currentTotalCount
* Track Total locally too
* Lots of total count assumptions and comments
* Adjust for threading too
* Fixup tests
* a word
* lint fix
2023-02-15 11:25:13 +00:00
Eric Eastwood
c67325ba07
Add matrix-org/jest linting ( #2973 )
2023-02-10 12:05:40 +01:00
Germain
b6d40078d9
Clear notifications when we can infer read status from receipts ( #3139 )
2023-02-09 10:18:18 +00:00
Germain
c142232f4d
Stop labelling threads as experimental ( #3064 )
2023-01-30 11:25:27 +00:00
Germain
8e29f8ead0
Improve hasUserReadEvent and getUserReadUpTo realibility with threads ( #3031 )
...
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com >
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2023-01-11 09:53:27 +00:00
Germain
5b6bebc1d7
Do not calculate highlight notifs for threads unknown to the room ( #2957 )
2022-12-09 12:41:51 +00:00
Michael Weimann
349c2c2587
Apply prettier formatting
2022-12-09 09:38:20 +01:00
Michael Telatynski
8d018f9c2d
Enable noImplicitAny ( #2895 )
...
* Stash noImplicitAny work
* Enable noImplicitAny
* Update olm
* Fun
* Fix msgid stuff
* Fix tests
* Attempt to fix Browserify
2022-12-06 18:21:44 +00:00
Germain
53a45a34df
Fix highlight notifications increasing when total notification is zero ( #2937 )
2022-12-02 15:41:15 +00:00
Germain
3577aa98b5
Fix synthesizeReceipt ( #2916 )
2022-11-30 07:58:29 +00:00
Germain
c81d759334
Emit events when setting unread notifications ( #2748 )
...
Co-authored-by: Travis Ralston <travisr@matrix.org >
2022-10-13 14:09:33 +01:00
Germain
21a6f61b7b
Add support for unread thread notifications ( #2726 )
2022-10-05 10:37:45 +01:00