Yuri Chornoivan
4c7be7426e
Fix minor typos
2021-02-08 14:53:32 +02:00
Tobias Fella
464c48540e
Improve first-run UX
...
- Replace LoginPage with step-by-step approach to support different login flows
- Implement login using SSO
2021-02-07 21:23:31 +00:00
Nicolas Fella
1411d28b81
Fix crash when logging out and back in
...
we get the platformtheme attached property from a random user object,
but that user is destroyed when logging out. Instead use the controller
as parent since that survives the logout
2021-02-06 00:36:51 +00:00
Carl Schwan
6dcfad1f8d
Don't show login page when starting NeoChat
...
This was caused by us calling initiated to early. Only do it when no
accounts exists or that at least one account fails to login.
Fix #248
2021-02-06 00:16:30 +00:00
Carl Schwan
66b06aac6e
Use correct username for typing users
...
Fix #257
2021-02-05 22:52:32 +00:00
Tobias Fella
1cb6b3bbd6
Consistently use pragma once in all headers
2021-02-04 23:14:54 +01:00
Tobias Fella
546d17b1a2
Correctly open all kinds of matrix.to links in TextDelegate and MessageDelegateContextMenu
2021-02-04 20:23:16 +00:00
Tobias Fella
72907a1f18
Refactor and fix invitations
...
-Move invitation handling into RoomPage and delete InvitationPage
-Open the new room after accepting the invitation
2021-02-04 20:22:53 +00:00
Nicolas Fella
66bcc2105a
Only keep one Kirigami theme instance for all users
...
Fetching the Kirigami Theme via attached properties is expensive. The
theme is also going to be the same for all users so it's enough to only
do it once.
2021-02-03 21:57:54 +00:00
Nicolas Fella
f217bbd3c4
Don't fetch same modeldata twice
2021-02-02 21:51:27 +00:00
Nicolas Fella
70691fb295
Fix hiding replaced events
...
https://invent.kde.org/network/neochat/-/commit/5993c1f6 accidentally
switched from SpecialMarksRole to MessageRole which is not only slower
but also completely wrong
2021-02-02 21:51:27 +00:00
Nicolas Fella
7aedfd0e17
Move message filtering to C++
...
The filter callback is called very often (O(messages)). The current
filter model shows some significant overhead in QML internals. Moving
that to C++ makes it quite a bit faster.
2021-02-02 21:51:27 +00:00
Nicolas Fella
92e00587f7
Use QSystemTrayIcon instead of KStatusNotifierItem
...
KSNI doesn't support Windows and macOS and we don't need any of the features it provides over QSystemTrayIcon
Also remove some dead code
2021-02-02 21:51:05 +00:00
Arnav Rawat
ab4db4dd3d
remove accidental qdebug
2021-02-01 13:18:55 +00:00
Arnav Rawat
b4e996aecd
Adds ability to specify server with /join
...
Fixes bug #232
2021-02-01 13:18:55 +00:00
Nicolas Fella
c1d5883af9
Add missing semicolon
2021-01-27 20:09:45 +01:00
Nicolas Fella
e6f2b5ea7f
Don't use KDBusAddons on Windows
...
It's only used for KDBusService, which likely doesn't work properly on Windows
2021-01-27 15:36:55 +01:00
Nicolas Fella
9603811a6d
Add app icon for Windows
2021-01-27 14:51:10 +01:00
Tobias Fella
4894470e7d
Fix crash on name change events
2021-01-27 01:23:49 +01:00
Nicolas Fella
8e6d1a8ea2
Fix warning
2021-01-26 17:35:02 +01:00
Nicolas Fella
c2b388d553
Use breeze QStyle on Windows
...
On Windows we want to use qqc2-desktop-style together with the Breeze QStyle instead of the default QStyle
2021-01-26 16:08:47 +01:00
Carl Schwan
0f043e36c4
Revert "Improve sending message with mentions"
...
This reverts commit b9d34487a4
2021-01-22 14:45:40 +00:00
Carl Schwan
b9d34487a4
Improve sending message with mentions
...
* Fix bug with reply having broken mentions (@$1:$2)
* Fix mentions disapearing from edited messages
* Fix formatting disapearing from edited messages
2021-01-21 22:56:19 +01:00
Tobias Fella
6f7f0e025d
Fix showing user's displayName instead of mxid in roomlist delegate subtitles
2021-01-18 22:27:14 +01:00
Tobias Fella
fe1e3ee374
Remove markdown links from 'body' of messages
...
- Markdown is not in the matrix spec
- Clients use the 'body' text for things like notifications, which render these links as plain text
2021-01-17 01:54:41 +01:00
Tobias Fella
a653be8be8
Load serverAddress using QUrl::fromUserInput()
...
Fixes login when 'https://' is not added to the server url
2021-01-17 01:32:03 +01:00
Carl Schwan
7762f5f5ae
Don't load events if not needed
2021-01-14 21:11:05 +00:00
Carl Schwan
1abc28ad7f
Make sure we load events when opening a room
2021-01-14 20:53:11 +00:00
Carl Schwan
3ebda274ef
Fix broken name
2021-01-13 23:15:48 +00:00
Carl Schwan
eff8c08ccf
Add launcher badge to NeoChat showing the unread count
2021-01-13 20:14:51 +00:00
Carl Schwan
a3e1e1d0a4
Fix autocompletion
...
Now it will save a map from display name to id and use that to generate
clean matrix.to links. This also make sure the colors used for the
preview are correct by using NeoChatUser and fix the bug with the regex
by simply removing the regex.
Fix #234
2021-01-11 02:19:55 +01:00
Yuri Chornoivan
a82b9dc14e
Fix minor typos
2021-01-09 09:19:11 +02:00
Carl Schwan
4be3eac7af
Fix avatar loading in multiple places and prefers name instead of
...
display name for avatar fallback.
This also fixes a bug where users didn't get their avatar loaded in the
room list.
Fix #209
2021-01-09 00:37:13 +01:00
Carl Schwan
cd1bec9977
Introduce the ActionsHandler
2021-01-08 23:12:09 +00:00
Carl Schwan
2e0096380f
Fix NeoChat not syncing
...
This problem was caused because addConnection was starting the sync
proccess unfortunally because the user wasn't connected this aborted
almost immediately and then the sync proccess wouldn't run at all.
Now start the sync proccess after making sure we are connected.
Fix #228
2021-01-08 21:42:07 +01:00
Carl Schwan
ca5f95b298
Handle non-consistent configuration
2021-01-08 21:26:56 +01:00
Carl Schwan
f6ac8ccb45
Improve timeline state event text representation
...
Change are inspired by Quatermion model
* Fix invite events not getting displayed correctly
* Add some options to control what get displayed (for the moment without
a GUI
* Show reason for a state event if it exists
2021-01-08 17:18:48 +00:00
Carl Schwan
249054b57f
Fix initial loading of room
2021-01-08 17:17:52 +00:00
Nate Graham
ab8dabc280
Fix build failure
...
isJobRunning() -> isJobPending()
2021-01-08 07:35:29 -07:00
Noah Davis
50d8bd5b7e
Add FileType singleton
...
This singleton is used to get the mimetype info for files as well as supported formats for Images and AnimatedImages
2021-01-04 13:58:34 -05:00
Mathew Broady
f232c40955
Remove unused "parent" parameter warning for DevicesModel::rowCount()
2021-01-02 15:47:01 +11:00
Carl Schwan
8224d3ae9f
Save and restore window size
2020-12-30 13:19:16 +00:00
Carl Schwan
4463e3e3f2
Add edited flag to edited messages
...
Fix #206
2020-12-30 13:17:59 +00:00
Tobias Fella
e6b97e3350
Fix accountCount not updating correctly
2020-12-30 13:17:22 +00:00
Tobias Fella
2c1cbc91d8
Fix active connection not loading on startup
2020-12-30 13:17:22 +00:00
Tobias Fella
bd00a73aa9
Ask for consent to terms and conditions if required
2020-12-30 13:17:14 +00:00
Nicolas Fella
88cc972edc
Build with QT_NO_KEYWORDS
2020-12-29 14:28:49 +00:00
Carl Schwan
5c8d916752
Add support for stickers
...
Fix #130
2020-12-29 14:28:32 +00:00
Tobias Fella
494e6dca42
Android: Add missing icons
2020-12-28 15:40:26 +01:00
Carl Schwan
1f065e46cf
Simplify shortcuts code in hamburger menu
2020-12-28 12:35:50 +01:00