Tobias Fella
b1581a54d1
Allow sending encrypted messages if build supports it
2022-07-14 16:59:37 +02:00
Tobias Fella
2bcd7118f4
Ensure that text isn't formatted in context menu
2022-07-09 23:01:13 +02:00
Tobias Fella
e0df553a72
Remove unused imports & includes
2022-07-08 13:16:07 +02:00
Tobias Fella
aac96da2e2
Revert "Show RoomList when cached state is loaded"
...
This reverts commit db5f328539 .
2022-03-08 21:10:38 +01:00
Tobias Fella
db5f328539
Show RoomList when cached state is loaded
...
This should somewhat speed up the loading since we don't need to wait
until the first sync is done.
It's still slow though since loading the cache is slow
2022-03-01 00:29:48 +01:00
Tobias Fella
47a0d30e57
Fix quitting without tray icon
...
Setting KSNI status to Passive doesn't *disable* the tray icon, it just
moves it to the overflow menu. This causes the application to not quit
when closing the app even when disabling the tray icon
2022-02-25 20:19:12 +00:00
Tobias Fella
ca8702fd5e
Don't set cmake policy when using libquotient 0.7
2022-01-02 22:47:42 +01:00
Carl Schwan
924a1fed21
Port away from QNetworkConfigurationManager
...
QNetworkConfigurationManager was removed from Qt6 and it's better to
check the status of the sync job anyway. Only two issues:
* The timeout in quotient is quite high so it might take up to one
minute before the message appear.
* Only sync job are listened but since they are continuously done, this
is not a big issue and other job are affected by the same issue of an
high timeout anyway.
Fix #414
2021-12-25 17:55:48 +00:00
Tobias Fella
8722c99c93
Remove unused function
2021-12-15 01:04:51 +01:00
Tobias Fella
91f3f64bb5
Don't connect to something that isn't a signal
2021-12-14 22:34:32 +00:00
Fushan Wen
59430cce89
Add support for minimizing to system tray on startup
...
If the user wants to automatically launch NeoChat when the system
starts up, the user may also want to minimize the window to system tray
on startup. So a new option named "Minimize to system tray on startup"
is added.
The option is only visible on desktop platforms, and is only enabled
when "Close to system tray" is checked.
In order to restore window geometry for the first time the user opens
the window if the option is checked,
1. a new function named `restoreWindowGeometry` is added, and
`restoreWindowGeometryConnections` will be enabled if the option is
checked, and will be disabled after the window debuts.
2. `saveWindowGeometryConnections` will be enabled if the option is not
checked, and will be disabled if checked and enabled after the window
debuts.
2021-12-13 22:05:20 +08:00
Carl Schwan
d1bbb5e3f7
Use non blocking passord reading
...
This also remove the do while loop that might cause problem and expose
the error message to the user.
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2021-12-12 22:13:19 +00:00
Tobias Fella
0a19d42799
Improve handling of closed keychain
2021-11-13 22:18:53 +00:00
Tobias Fella
cb7b8bac99
Fix i18n message
2021-11-13 14:32:50 +01:00
Tobias Fella
9027db264a
Don't capture 'this' implicitely
2021-11-13 14:17:20 +01:00
Tobias Fella
d494eb1c63
Use Quotient's accountregistry
2021-11-01 19:36:39 +00:00
Tobias Fella
6b331ca8b4
Adapt to libQuotient API changes
2021-10-04 19:34:38 +02:00
Tobias Fella
452380e274
Don't parent connections to controller/Login.
...
This prevents a crash upon destruction for newer libquotient versions
2021-10-03 14:13:04 +02:00
Tobias Fella
886ee1f5b6
Refactor startup
2021-09-29 22:38:45 +02:00
Tobias Fella
98a35fe09f
Remove unused imports
2021-09-08 20:31:00 +02:00
Tobias Fella
caafd8c0bc
Don't try removing the access token from the accountsettings
2021-09-08 20:30:16 +02:00
Aleix Pol
265fcbfead
Fix wayland activation
...
Adds support for xdg_activation_v1 when calling the application from the
system tray by using KStatusNotifier which supports it.
Listens to XDG_ACTIVATION_TOKEN as it's passed when we are started from
dbus.
2021-09-07 11:27:13 +00:00
Nicolas Fella
589dfe0343
Re-run clang-format
2021-08-23 19:38:56 +02:00
Tobias Fella
d1451780c2
Port away from deprecated functions
2021-08-22 21:09:23 +02:00
Jan Blackquill
4955b1f7a0
Improve the file delegate
...
- cleaner code
- supports stopping downloads
- utilises the mimetype in order to display an icon
- better size formatting
- tooltips
2021-08-19 14:01:14 -04:00
Tobias Fella
e91a4f79a5
Adapt to libQuotient API changes
2021-08-10 17:09:21 +02:00
Tobias Fella
73de1af321
Fix pagestack after login
2021-07-06 15:45:19 +00:00
Carl Schwan
efb70287b9
Add setting page
2021-06-07 11:49:35 +02:00
Carl Schwan
13888401fa
Don't use SystemTray integration on GNOME and ElementaryOS
...
These platforms don't support it so hiding NeoChat in the tray in these
platforms is not a good idea and other a rather poor user experience.
2021-05-27 17:39:30 +02:00
Nicolas Fella
6e04d343b7
Use QGuiApplication instead of QApplication where appropriate
2021-05-26 03:05:00 +02:00
Carl Schwan
0dbb56ba1e
Fix creating broken direct chat for user with a direct chat already open
...
Just enter the existing room instead of trying to create a new one but
broken.
Fix !237
2021-05-23 21:46:40 +02:00
Tobias Fella
7a065c18b6
Port away from KDeclarative
2021-05-11 20:56:53 +02:00
Carl Schwan
873ab328dc
Move room management from Controller to RoomManager
2021-05-08 01:17:19 +02:00
Carl Schwan
ff79ff8fa7
Remove android specific code path for key storage
...
it's now natively supported by QtKeychain. We don't have users so it's
not a big deal to discard their password.
Fix #247
2021-05-07 04:23:19 +02:00
Carl Schwan
757cc99ff0
Add indicator for lack of internet connectivity
...
Fix #315
2021-05-07 03:36:40 +02:00
Tobias Fella
08632b4178
Make NeoChat compile against libQuotient master and 0.6
...
Requires a few ugly ifdefs, but it will make developing against the
master branch of libQuotient easier
2021-04-23 23:53:03 +02:00
Tobias Fella
a117eaa12b
Improve License header style
2021-04-18 17:47:22 +02:00
Tobias Fella
00681a8abe
Refactor error handling and move unrelated functions out of ActionsHandler
2021-04-16 10:07:10 +00:00
Tobias Fella
e4ab2e565f
Apply clang-format
2021-04-04 22:43:17 +02:00
Torrie Fischer
eab5a43a2e
Make controller.cpp compile on windows again
2021-04-03 00:27:24 +00:00
Tobias Fella
24d08dbe91
Add Ctrl-C handler
...
Implement #124
2021-04-02 18:12:46 +02:00
Tobias Fella
53670f5e81
Use QtKeychain on Android
2021-03-15 19:03:13 +00:00
Arnav Rawat
b6787ae242
Allow the avatar to be changed
...
This Merge Request allows an avatar to be set through the userEditSheet
The parts in controller.cpp decode the url and check whether the image
is valid, through qimagereader.
2021-03-05 00:31:44 +00:00
Carl Schwan
481a2e3681
Don't show "Close in System Tray button" on Android
...
Fix #273
2021-02-26 14:15:33 +01:00
Tobias Fella
a7e61f0e20
Revert "Fix build failure"
...
This reverts commit ab8dabc280 .
2021-02-17 21:00:11 +00:00
Tobias Fella
0ca2eb4008
Add option to disable system tray integration
...
Implements #59
2021-02-13 19:18:28 +00: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
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
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
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