Alexey Andreyev
3c12eff304
Codestyle: provide const for fancy effects strings
...
Co-authored-by: Nicolas Fella <nicolas.fella@gmx.de >
2021-02-23 20:49:35 +00:00
Alexey Andreyev
01f8c3b09f
Fancy effects: additional check if enabled everywhere
2021-02-23 20:49:35 +00:00
Alexey Andreyev
09dff4553a
Fancy effects: update neochat config
2021-02-23 20:49:35 +00:00
Alexey Andreyev
45c9295d49
Fancy effects: add fancy effects support for messageeventmodel
2021-02-23 20:49:35 +00:00
Tobias Fella
b67a35bfe3
Fix another include
2021-02-17 23:26:52 +01:00
Tobias Fella
37a681596b
Fix include
2021-02-17 23:23:30 +01:00
Tobias Fella
7ff54f62f3
Backport stickerevents
2021-02-17 21:00:11 +00:00
Tobias Fella
cc2b183fc5
Revert "Switch to newDisplayName() and newAvatarUrl()"
...
This reverts commit a1b66f3aa6 .
2021-02-17 21:00:11 +00:00
Tobias Fella
a7e61f0e20
Revert "Fix build failure"
...
This reverts commit ab8dabc280 .
2021-02-17 21:00:11 +00:00
Tobias Fella
345eb0c229
Revert "Bump dependencies to libQuotient 0.7 (master)"
...
This reverts commit d646962ea1 .
2021-02-17 21:00:11 +00:00
Carl Schwan
43f81fcead
Use version less Qt target
2021-02-15 19:46:07 +01:00
Tobias Fella
0ca2eb4008
Add option to disable system tray integration
...
Implements #59
2021-02-13 19:18:28 +00:00
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