Tobias Fella
4efd1207ee
Some more clazy fixes
2021-08-03 20:44:22 +02:00
Tobias Fella
2e1ab639c6
Fix build failure against changes in libQuotient API
...
This changes the RoomListModel's JoinState role to expose the enum value
instead of a string. We don't actually use that role anywhere so it's
fine.
2021-07-30 22:57:57 +00:00
Tobias Fella
73de1af321
Fix pagestack after login
2021-07-06 15:45:19 +00:00
Smitty van Bodegom
8474136f57
Support displaying spoilers
...
This adds support for displaying recieved spoilers, but not sending
them. Spoilers are displayed as a black rectangle, and can be clicked on
to be revealed. If the last message in a channel was a spoiler, it is
not shown on the left sidebar.
The spoiler blackening is done in CSS, but to check if a message
contains a spoiler for determining if it should cause a different cursor
to be displayed and if it should be shown in the sidebar, a simple check
of if the message contains "data-mx-spoiler" is used.
2021-06-17 22:39:50 +00:00
Carl Schwan
a086964769
Make sidebar collapsible
2021-06-14 12:50:09 +00:00
Tobias Fella
3ea783b370
Prioritize "low priority" over "direct chat" in roomList categories
...
There's no exact right or wrong here, but if a room was explicitly
marked as "low priority", we should honor this tag.
Fixes a slight inconsistency with the implementation in Element
Fixes #357
2021-05-21 21:09:21 +02:00
Carl Schwan
5f8795c41f
Automatically enter room when joining it
...
Related to #352 but needs an additional Quotient patch to works
2021-05-07 22:37:16 +02:00
Carl Schwan
b7d98fc6d9
Port RoomManager to C++
...
This also makes it possible to handle the Matrix URI
2021-04-27 21:07:10 +00:00
Tobias Fella
2cb81d1276
Unify License header style in C++
2021-04-06 19:25:06 +02:00
Tobias Fella
e4ab2e565f
Apply clang-format
2021-04-04 22:43:17 +02:00
Tobias Fella
9f637ab925
Improve notification handling
2021-03-29 21:24:26 +00:00
Tobias Fella
546d17b1a2
Correctly open all kinds of matrix.to links in TextDelegate and MessageDelegateContextMenu
2021-02-04 20:23:16 +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
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
dce3b796c2
Don't translate something we shouldn't
2020-12-26 15:58:57 +00:00
Carl Schwan
b62e694c97
Code style
2020-12-01 11:56:50 +01:00
Carl Schwan
c5e2acdd5d
Refactor lastEvent
...
Now lastEvent() return the last event and lastActiveTime() and
lastEventToString() are convenient functions to get the visual
representation and the timestamp.
We are also now fetching new events when the timeline is empty
so that we can correctly order the rooms. In the future, we should
instead probably cache the last event in an SQLite database to optimize
the startup time.
This also ignore state event when the configuration ask to ignore them.
Fix : #97
2020-12-01 10:55:18 +00:00
Carl Schwan
136a8f2af8
Clang-tidy + clang-format
2020-11-27 00:26:39 +01:00
Carl Schwan
7b30c199a4
[clazy] Fix allocating an unneeded temporary container
...
Instead of creating a new container and iterate over it, we wrap the
loop in a lambda and use the lambda for the two initial container.
2020-11-19 12:50:51 +00:00
Carl Schwan
03921e02a6
Remember last opened room
2020-11-17 19:45:22 +00:00
Carl Schwan
be1467f718
Save collapsed categories
2020-11-17 19:45:22 +00:00
Tobias Fella
d8dde6e082
Add license headers to code files
2020-11-11 15:17:23 +00:00
Carl Schwan
122a7cdd2f
Rebrand files names Spectral -> NeoChat
2020-11-08 23:17:30 +01:00
Tobias Fella
95e2993f70
Implement sorting rooms by category
2020-11-08 16:13:53 +00:00
Nicolas Fella
ca97b8ddc3
Properly sort includes
2020-11-04 20:29:19 +01:00
Nicolas Fella
a08d017c02
Normalize includes
2020-11-04 20:25:52 +01:00
Carl Schwan
8b3f89cf2e
Fix a bunch of clazy warnings
2020-11-03 15:15:16 +00:00
Carl Schwan
ce69506cf6
s/emit/Q_EMIT
2020-11-03 12:03:06 +01:00
Carl Schwan
bea870ad75
Apply Clang Format
2020-11-02 16:11:24 +01:00
Black
6af7befd11
Improve room settings dialog.
2020-01-22 20:37:27 -08:00
Black Hat
e5032c686a
Public room directory.
2019-12-25 00:02:01 +08:00
Black Hat
29b396add3
Update libQuotient.
2019-12-03 13:03:56 -08:00
Black Hat
ced82bd666
Modern C++.
2019-08-04 22:36:32 +08:00
Black Hat
3e0009a069
Show notification count in tray icon.
2019-07-01 18:19:00 +08:00
Black Hat
c0126cea95
Clean up roomlistmodel.
2019-05-20 13:42:18 +08:00
Black Hat
588c23ebdc
Fix #141 .
2019-05-10 19:26:35 +08:00
Black Hat
2565b8ba79
Add basic room upgrade support.
...
Add full screen image view.
Fix a bug in image provider.
2019-04-23 10:57:35 +08:00
Black Hat
4557b91ec6
Fix #2 for real.
2019-04-22 19:52:37 +08:00
Black Hat
c727eb3bfd
Fix #2 .
...
Issue #2 is actually fixed!
A somewhat primitive UI for room management.
A new style for AutoTextField.
Limit max width of drawers.
2019-04-22 19:49:22 +08:00
Black Hat
de3a8b9b69
Add more event types in eventToString().
...
Move eventToString() to SpectralRoom.
2019-04-21 12:41:53 +08:00
Black Hat
579a1dfca8
Init notification count.
2019-03-03 19:09:12 +08:00
Black Hat
6dd33af0ca
Fix a bug in notification.
2019-03-02 22:07:06 +08:00
Black Hat
31203235f2
Init new notification implementation.
2019-03-02 21:31:39 +08:00
Black Hat
c46d38e38e
New WIP image provider.
2019-01-04 20:17:26 +08:00
Black Hat
ec43131a10
Clean up notification.
2018-12-24 20:31:40 +08:00
Black Hat
92b1458c4a
Fix avatar changes.
2018-12-03 20:11:24 +08:00
Black Hat
8959be2cb8
Remove ImageItem, Paintable and use unified image provider.
2018-12-03 19:55:42 +08:00
Black Hat
3ec1cf71bf
Do not emit new message if it is a state event.
2018-11-21 19:56:07 +08:00
Black Hat
06983a506c
Fix segfault when leaving certain rooms.
2018-11-07 16:29:24 +08:00