Commit Graph

274 Commits

Author SHA1 Message Date
Nicolas Werner 61404641d9
Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
Nicolas Werner 9a9dbda571
Update presence dynamically and reduce allocations 2021-12-30 04:54:03 +01:00
Nicolas Werner 19dc6cadea
Reserve size of some containers we are filling 2021-12-29 06:01:38 +01:00
Nicolas Werner d8ead9573b
Reduce allocations using QStringLiteral 2021-12-29 04:52:52 +01:00
Nicolas Werner bb290f9fec
Fix more warnings and remove dead code 2021-12-28 22:30:12 +01:00
Nicolas Werner 5ca98829f7
Some qt6 prep 2021-12-28 20:09:08 +01:00
Nicolas Werner 2866826356
Misc clang-tidy fixes 2021-12-28 19:12:15 +01:00
Nicolas Werner 09aded2bc8
Fix crash when receiving matrix uri
It seems like handling the message in a blocking manner is a no-go. I
have no idea how to fix that, so just use a queued connection for now...
(ASAN does not cooperate and just hides the crash D:)

fixes #842
2021-12-17 05:58:09 +01:00
Nicolas Werner 6d69248109
Strip space chars from recovery passphrase 2021-12-15 18:26:14 +01:00
Nicolas Werner 9b9d4bec70
Fix turnserver check not being started when restoring from cache 2021-12-13 18:32:54 +01:00
Nicolas Werner 6266c917c0
Cleanup error logging a bit 2021-11-29 06:20:43 +01:00
Nicolas Werner 6779f0e509
Delete rooms even if we fail to leave 2021-11-29 06:06:51 +01:00
Nicolas Werner 3d92e8ae60
Mark rooms as direct chats
Either by accepting an invite or manually using /converttodm and revert
with /converttoroom.
2021-11-21 06:13:45 +01:00
Nicolas Werner 4dc5b647c6
Pretty error printing 2021-11-21 06:10:24 +01:00
Nicolas Werner 5ef3250994
Add a filter for direct chats
fixes #317
2021-11-20 22:48:04 +01:00
Nicolas Werner ff560a09f5
Improve fetching of device keys after login 2021-11-08 17:01:22 +01:00
Nicolas Werner 809be93e20
Fix self verification status never updating 2021-11-07 21:27:58 +01:00
Nicolas Werner 5ca1fb18bb
Move away from using an event loop to access secrets
Fixes messages in room flickering and being stuck

fixes #760
relates to #770
relates to #789
2021-11-07 03:52:57 +01:00
Nicolas Werner 5688b2647e
Add self verification after login 2021-10-30 00:23:07 +02:00
Nicolas Werner 550c80525a
Move voip and encryption stuff into their own directories 2021-10-17 17:18:14 +02:00
Nicolas Werner cfca7157b9
Change indentation to 4 spaces 2021-09-18 00:45:50 +02:00
Thulinma 1d5bf56cf9 Improvements for linking to events
- Fixes scrolling to an event not being reliable
- Adds new /goto command that can open URLs, go to events, or go to message indexes.
- Refactored ChatPage::handleMatrixUri() to contain the handling originally in Nheko::openLink(), and makes it return a boolean based on whether the URL was handled internally or not.
2021-09-16 02:17:07 +02:00
Thulinma a39cb537ae More profile improvements:
- Now scrolls entire profile instead of only device list, improving the experience on smaller screens
- Fixed centering of room name
- Allow profile to be sized smaller to match the new scrolling behavior
- Silenced warning about room being null for global profiles
- Matrix URLs now open global profiles instead of room-specific profiles if the user is not in the currently opened room
- Opening global profile from room specific profile now uses openGlobalUserProfile function instead of reinventing the wheel
2021-09-08 01:26:05 +02:00
Nicolas Werner 6490ee3a34
Add workaround for broken key counts 2021-09-06 00:32:09 +02:00
Nicolas Werner 70e20f5d10
Fix key count updates on conduit 2021-09-06 00:07:14 +02:00
Nicolas Werner e035d1407a
Conduit does not send count, if it didn't change 2021-09-05 23:15:44 +02:00
Thulinma 6bd62f8283 Make desktop alerting independent from notification support in the homeserver. 2021-09-03 03:13:15 +02:00
Nicolas Werner c80e253a24
Stop encrypting all sessions with secret 2021-08-31 04:06:51 +02:00
Nicolas Werner 47c7c4c777
cleanup QSettings usage a bit 2021-08-29 16:32:28 +02:00
Nicolas Werner 5287ba38f9
Fix all rooms being opened on startup 2021-08-17 19:00:00 +02:00
Nicolas Werner 7d62af7cda
Remove unneeded code 2021-08-17 09:59:13 +02:00
Nicolas Werner 56db0dbc7d
Allow downloading keys from key backup 2021-08-17 03:24:12 +02:00
Nicolas Werner 02b217d009
Remove some unused headers 2021-08-11 01:30:55 +02:00
Loren Burkholder 4dd994ae00 QML the read receipts list
There are probably a few things wrong with this, but I'm going to call it good enough for an initial commit
2021-07-29 21:07:16 -04:00
Nicolas Werner f4e670d8d5
Fix SSSS unlock without a password set
fixes #657
2021-07-25 12:13:24 +02:00
Nicolas Werner a61678242b
Fix edge case that could lead to no new one time keys being uploaded 2021-07-24 14:59:14 +02:00
Loren Burkholder baa9dfe110 Clean up code 2021-07-20 21:47:46 -04:00
Loren Burkholder d2d5229ede make lint 2021-07-20 21:47:32 -04:00
Loren Burkholder e1acf5d324 make lint 2021-07-20 21:47:22 -04:00
Loren Burkholder 6c57fa6c5b QML the invite dialog
This also adds a property `roomId` to TimelineModel.
2021-07-20 21:47:22 -04:00
Nicolas Werner 9fadd14871
Store megolm session data in separate database 2021-07-17 01:27:37 +02:00
Nicolas Werner 2c307a4dee
Fix error message for /sync 2021-06-30 12:21:57 +02:00
Nicolas Werner 00f251753e
Use coeurl for networking
Something is still wrong on shutdown, need to debug that.
And CI will fail.
2021-06-30 02:43:36 +02:00
Nicolas Werner 18ff58edb3
Fix use after free from Qml widget 2021-05-30 00:23:57 +02:00
Nicolas Werner 03d30a2abc
Delete old room list 2021-05-28 23:25:57 +02:00
Nicolas Werner 298822baea
Move currentRoom/timeline handling to roomlist 2021-05-28 22:14:59 +02:00
Nicolas Werner c290b0747f
Reenable invites 2021-05-24 14:04:07 +02:00
Nicolas Werner cd67046f60
Make roomlist look nice 2021-05-21 21:19:03 +02:00
Nicolas Werner 986b561c34
Fix crash when you have no rooms and open the profile as well as not rendering rooms without groups 2021-04-30 15:33:17 +02:00
Nicolas Werner 82fa8ab292
Highlight navigated to message 2021-04-29 19:09:16 +02:00
Nicolas Werner cc3d32c65e
Move check for duplicate /sync responses to the same thread 2021-03-16 21:01:14 +01:00
Nicolas Werner 7a356f3832
Merge branch 'quickswitcher_qml' of git://github.com/Jedi18/nheko into Jedi18-quickswitcher_qml 2021-03-13 23:45:05 +01:00
Nicolas Werner 6ad4065de4
Fix a few db access crashes 2021-03-12 17:14:18 +01:00
Nicolas Werner 47e97d490c
Add config option to disable tls validation 2021-03-06 20:52:08 +01:00
Nicolas Werner 1be42045ee
fix linting 2021-03-05 15:26:07 +01:00
Nicolas Werner f4164cc799
Fix a few join confirmations too many 2021-03-05 14:59:59 +01:00
DeepBlueV7.X 56c44d0454
Merge pull request #505 from Nheko-Reborn/license-headers
License headers
2021-03-05 01:04:36 +00:00
Joseph Donofry 4b12b53133
Fix linting 2021-03-04 19:11:08 -05:00
Nicolas Werner a6f0d2ea7d
Update license headers 2021-03-05 01:04:07 +01:00
Nicolas Werner a0fad2513e
Don't ask to join joined rooms when clicking matrix uri 2021-03-01 01:46:22 +01:00
Jedi18 043737c8cb navigate to newly created rooms 2021-02-25 10:29:30 +05:30
Jedi18 68c999e5f4 remove old quick switcher 2021-02-24 19:50:36 +05:30
Nicolas Werner 29a71741f4
Ensure we ask for confirmation when clicking on a matrix uri 2021-02-24 01:37:26 +01:00
Jedi18 b1dec6f6ac enter key now works, fix room highlighting and add overlay 2021-02-23 00:18:31 +05:30
Nicolas Werner 9f7dc5488e Adapt to changes in MSC2312 2021-02-17 23:45:41 +01:00
Loren Burkholder 567b2d05ef Move notification parsing into postNotification 2021-02-13 13:40:26 -05:00
Loren Burkholder 299c486a2b Display notifications for emote messages properly 2021-02-13 13:01:04 -05:00
trilene 974c336c5e make lint 2021-02-07 13:58:32 -05:00
Loren Burkholder 343c9c8116 Don't attempt to begin group "" 2021-02-04 19:01:48 -05:00
Loren Burkholder eae09f8f14 Fix bug on logout of non-default profile 2021-02-04 18:44:36 -05:00
Joseph Donofry 53c653a228
Merge remote-tracking branch 'nheko-im/master' into privacy_screen 2021-02-01 18:42:38 -05:00
Jedi18 9b5a287d14 made requeste changes 2021-01-29 11:55:24 +05:30
Jedi18 3b82b2ff97 fix linting 2021-01-28 23:53:56 +05:30
Jedi18 87490c29cd Username can be edited by double clicking on text, added global user profile menu action in user info widget 2021-01-28 20:03:50 +05:30
Joseph Donofry bfeb766a91
Implement Privacy Screen
* Add handles for window focus gained / focus lossed and connect to timer
* Clean up some of the PrivacyScreen.qml code
* Connect settings to PrivacyScreen visibility
2021-01-26 17:23:28 -05:00
Nicolas Werner be49d184be Make matrix link chat invites direct chats 2021-01-25 15:59:15 +01:00
Nicolas Werner fdb9d7ab40 Allow users to hide rooms with specific tags 2021-01-23 00:49:28 +01:00
Nicolas Werner 7040be1d09 Fix kick translation 2021-01-18 13:25:27 +01:00
Nicolas Werner a42ac6c8c0 Update German translation 2021-01-15 16:03:30 +01:00
Nicolas Werner 947e40bd70 Allow joins via other servers from a matrix: uri 2021-01-11 19:15:43 +01:00
Nicolas Werner 39f9b7d90a Handle matrix scheme
Link opening only works on Linux for now.

See https://github.com/matrix-org/matrix-doc/pull/2312
2021-01-10 22:41:56 +01:00
trilene 07ac7b7e85 Port PlaceCall dialog to Qml 2021-01-07 14:04:50 +01:00
Nicolas Werner 4b4c321397 Allow inline replies from notifications on linux 2021-01-07 10:44:59 +01:00
Nicolas Werner 01e38d12ed Fix some compiler warnings 2020-12-25 00:08:06 +00:00
Nicolas Werner 994c28ea95 Add download keys from secret storage 2020-12-18 03:04:18 +01:00
Nicolas Werner 7b46aa2a6e Store secrets in keychain 2020-12-16 22:10:09 +01:00
Nicolas Werner 2290ebcf78 Remove outbound session storage 2020-11-30 01:54:53 +01:00
Nicolas Werner 202e3debe6 Remove unnecessary capture of this 2020-11-26 23:55:47 +01:00
Nicolas Werner c31b9e2793 Fix race when reading members from db 2020-11-25 23:54:25 +01:00
Nicolas Werner b47d2a809c Remove old Textinput 2020-11-25 19:05:12 +01:00
Nicolas Werner 921379a4cc Send typing updates from QML 2020-11-25 19:05:12 +01:00
Nicolas Werner d1af1a8669 Move calls to new input bar 2020-11-25 19:05:12 +01:00
Nicolas Werner a31d3d0816 Add file uploading 2020-11-25 19:05:12 +01:00
Nicolas Werner 0bb4885632 Basic text input in qml 2020-11-25 19:05:12 +01:00
trilene fd479a91be Merge remote-tracking branch 'upstream/master' into webrtc-video 2020-10-28 16:08:17 -04:00
Nicolas Werner 70f35de449 Don't pass around empty timeline 2020-10-28 13:06:28 +01:00
trilene b1300aff46 Fix crash on exit 2020-10-27 17:26:46 -04:00
Nicolas Werner e939a6b396 No roomid on leave 2020-10-27 22:03:33 +01:00
trilene d9ca5309ac Merge remote-tracking branch 'upstream/master' into webrtc-video 2020-10-27 15:29:53 -04:00
trilene d1f3a3ef40 Support video calls 2020-10-27 13:14:06 -04:00