Commit graph

307 commits

Author SHA1 Message Date
Nicolas Werner
465a67bfaf
Properly close cursors before commit and db deletion 2023-10-25 17:41:40 +02:00
mips64-el
caba669e88 Fix double free on commit database migration 2023-10-25 01:30:50 +02:00
Nicolas Werner
d45dc6c77b
Migrate olm sessions to be stored in one database instead of thousands 2023-10-23 01:40:10 +02:00
Nicolas Werner
3ae5838230
Add a way to compact the database
Can also be used to fix some corruption.
2023-10-21 19:48:32 +02:00
Nicolas Werner
45ecb71444
Qt6.6 compatibility 2023-10-13 23:29:32 +02:00
Nicolas Werner
21889f00e7
Fix a few more bugs where a limited timeline could cause a hanging pagination 2023-07-09 17:32:44 +02:00
Nicolas Werner
7fc7aa2da3
Fix pagination in rooms with a full batch of redactions 2023-07-09 15:42:38 +02:00
Nicolas Werner
1abb52700a
Add an early out cache for event expiration 2023-07-06 20:51:04 +02:00
Nicolas Werner
e89e65dc17
Fix build against fmt10
fixes #1499
2023-06-28 13:16:10 +02:00
Nicolas Werner
0dbc9444c3
Add inviter to the invite reason
fixes #622
2023-06-10 00:54:08 +02:00
Nicolas Werner
5fed4d21b1
Fix a few more clazy warnings 2023-06-08 22:32:11 +02:00
Nicolas Werner
46f02bb0c3
Fix qtkeychain include 2023-06-08 22:32:10 +02:00
Nicolas Werner
19787d664c
Fix QChar range 2023-06-08 22:32:09 +02:00
Nicolas Werner
b518f6902e
Make Nheko compile on Qt6 2023-06-08 22:32:07 +02:00
Nicolas Werner
0a55c8ee17
Delete unused msg db function 2023-05-06 21:16:54 +02:00
Nicolas Werner
7dd3339477
Sort rooms in completer by 'activity' and make tombstoned rooms italic 2023-05-06 19:30:29 +02:00
Nicolas Werner
10b65b78fa
Adapt to the new inherited variant 2023-04-11 01:38:46 +02:00
Nicolas Werner
c543b2d4fa
Improve state event redaction 2023-03-26 23:37:28 +02:00
Nicolas Werner
7d5c0b7822
All around me are empty spaces 2023-03-20 21:26:49 +01:00
Nicolas Werner
eb1a900ed2
Reduce db writes a bit 2023-03-19 20:29:10 +01:00
Nicolas Werner
fafb9cc4a6
Don't try to load emotes from space parents we are not in 2023-03-19 14:04:13 +01:00
Nicolas Werner
9891b6bffe
Speed up writes of events with statekeys to state db 2023-03-14 18:16:08 +01:00
Nicolas Werner
aae3300860
Show rooms you share with someone 2023-02-24 02:40:14 +01:00
Nicolas Werner
d46a67f64b
Reenable the nosync options for the database
fixes #1355

So far we haven't seen any reduction in issues about database
corruption, so presumably this is unrelated and the lag is annoying.
2023-02-23 21:34:55 +01:00
Nicolas Werner
96f791daf1
Get rid of year in license headers
See also:
https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/
https://hynek.me/til/copyright-years/
2023-02-21 23:48:49 +01:00
Nicolas Werner
ac4c9e024e
More template bloat reduction 2023-02-20 01:04:49 +01:00
Nicolas Werner
a1c4889339
Remove a few more unused symbols 2023-02-19 23:17:21 +01:00
Nicolas Werner
ee5b33978a
Optimize user model construction by 2.5x 2023-01-31 21:05:23 +01:00
Nicolas Werner
fd949f0b83
Speedup quick switcher 2023-01-07 17:39:32 +01:00
Nicolas Werner
f3b7919a53
Fix crash in migrations during secrets deletion
We need to block the migrations returning until the migrations are done.

Fixes #1258
2023-01-07 01:09:36 +01:00
Nicolas Werner
3a6a905429
A whole new year full of excitement and possibilities! 2023-01-02 04:25:33 +01:00
Nicolas Werner
01915360b4
Fix state reset command 2022-12-27 16:15:49 +01:00
Nicolas Werner
f98b289ba2
Show invite reason in the UI (hidden by default) 2022-12-27 01:40:25 +01:00
Nicolas Werner
1a9f7860d4
Fix sending confetti 2022-12-16 17:24:52 +01:00
Nicolas Werner
725b5e0383
Try to fix clang-tidy 2022-11-06 04:02:14 +01:00
Nicolas Werner
537fa437e2
Store secrets (apart from the pickle key) in the database 2022-11-06 03:36:56 +01:00
Nicolas Werner
1f77e1c810
Prompt before deleting the database 2022-11-06 01:06:41 +01:00
Nicolas Werner
76347f1c6f
Continue fetching past messages when searching 2022-11-03 23:26:59 +01:00
Nicolas Werner
231bebba44
The hybris of committing a line without linting 2022-11-01 21:26:31 +01:00
Nicolas Werner
54931cb21b
Optimize fetching olm session from the db 2022-11-01 21:19:58 +01:00
Nicolas Werner
676a6506cb
Speedup sending encrypted messages after metasync was reenabled
Calling fsync everytime we save to the db is slow, which is actually
fairly noticeable in some larger E2EE rooms. Speed that up slightly by
batching the olm session persisting.
2022-11-01 20:58:01 +01:00
Nicolas Werner
d8669ccf3d
Turn metasync and sync back on for the database to account for bad filesystems 2022-10-28 01:43:06 +02:00
Nicolas Werner
b28fa86e6a
Enable -Wconversion 2022-10-26 01:10:35 +02:00
Rohit Sutradhar
ac48c33286
VoIP v1 implementation (#1161)
* Initial commit for VoIP v1 implementation

* Added draft of event handlers for voip methods

* Added event handlers for VoIP events, added rejectCall, added version tracking for call version for V0 and V1 compatibility

* Added call events to the general message pipeline. Modified Call Reject mechanism

* Added message delegates for new events. Modified hidden events. Updated handle events.

* Updated implementation to keep track of calls on other devices

* Fixed linting

* Fixed code warnings

* Fixed minor bugs

* fixed ci

* Added acceptNegotiation method definition when missing gstreamer

* Fixed warnings

* Fixed linting
2022-10-14 13:49:05 +00:00
Nicolas Werner
37009906bb
Evaluate push rules locally 2022-10-13 17:55:07 +02:00
Nicolas Werner
42a23e1859
Reduce windows ci warnings 2022-10-01 19:05:44 +02:00
Nicolas Werner
88cbac1695
Basic threading support 2022-09-30 03:27:05 +02:00
Hiers
8071b192b8
Line to indicate first unread message (#1147)
* First draft of unread line feature.

* Minor visual fix.

* Removed unnecessary ternary operator.

* Extended unread line functionality to work on minimised window or focusing another window.

* Fix for unread line not showing when last read message is hidden.

* Minor performance improvement. Fix for misbehaving event2order DB at application start.

* Fix for possible performance issues when user has joined a large number of rooms.

* Fix for breaking macos and clazy builds.

* Changed on windows focus function to refresh unread line if room is unread.

* Unread line is removed when user sends a message.

* Linting.

* Fixed unread line to work in standalone room windows.

* Switch isRoomUnread for index 0.

* Merged try/catch blocks.

* Fix for crash on opening a room invite.

* Call fullyReadEventId function when used instead of storing it and passing it through.

* Function that was meant to sync the unread line was relying on an async function, oops.

* Linting again.

* More linting...

* Minor changes.
2022-09-11 23:05:20 +00:00
Nicolas Werner
a014b2f8d6
Fix crash on empty private read receipts being received
fixes #1180
2022-09-06 20:25:52 +02:00
Nicolas Werner
e144c5741f
Implement space stickers & emoji 2022-09-01 13:25:11 +02:00