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
Nate Graham
ab8dabc280
Fix build failure
...
isJobRunning() -> isJobPending()
2021-01-08 07:35:29 -07:00
Carl Schwan
5c8d916752
Add support for stickers
...
Fix #130
2020-12-29 14:28:32 +00:00
Carl Schwan
c69d3587ba
Allow editing text and also hide edits from the timeline
2020-12-28 09:37:17 +00:00
Tobias Fella
c449a8fafe
Apply clang-format
2020-12-25 22:23:35 +01:00
Mathew Broady
a1b66f3aa6
Switch to newDisplayName() and newAvatarUrl()
...
Removes build warnings that these are deprecated.
See libQuotient commit f4db6988bf2fd71f74ac851557d82c6f65cc89b1
for more details.
2020-12-23 12:30:11 +11:00
Mathew Broady
f65b494422
Use room avatar if message sender does not have an avatar
2020-12-22 09:36:58 +11:00
Mathew Broady
74c6cc928b
Use user icon instead of room icon for notifications
2020-12-22 09:36:21 +11:00
Mathew Broady
6a4b1983a1
Remove unused eventId() argument to postNotification()
2020-12-21 11:08:33 +00:00
Carl Schwan
2b84c5dd02
Improve autocompletion
2020-12-17 08:57:50 +00:00
Carl Schwan
d646962ea1
Bump dependencies to libQuotient 0.7 (master)
2020-12-12 15:39:29 +01:00
Tobias Fella
e1775f94c6
Make clicking on notifications open the room they're coming from
...
Implements #28
2020-12-03 13:52:04 +00:00
Carl Schwan
372a60cec9
Remove loading forcing to load every room
2020-12-01 19:17:43 +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
Tobias Fella
c8553003d7
Only send a notification for events newer than one minute
...
To prevent notification flood on startup
A bit hacky, but good enough for now
2020-11-27 16:09:53 +01:00
Carl Schwan
962c1d8d75
Merge branch 'neroburner/neochat-fix_fallthrough_warning'
2020-11-27 00:32:39 +01:00
Carl Schwan
136a8f2af8
Clang-tidy + clang-format
2020-11-27 00:26:39 +01:00
Reinhold Gschweicher
05539dc87a
Fix fallthrough warning in neochatroom
2020-11-26 23:03:31 +00:00
Tobias Fella
49881f809d
Improve the 'jump to last read message' button
...
When loading a room, automatically load messages until the last read
message is loaded #35
Don't show the button if the message is not loaded
2020-11-26 23:05:08 +01:00
Tobias Fella
4e2b68dc0a
Make Neochat compile against libQuotient 0.6
2020-11-19 08:13:55 +00:00
Tobias Fella
039816e8eb
Show notifications
2020-11-18 21:14:40 +00:00
Carl Schwan
bd6de9cd6b
Fix reply
...
The C++ header signature was using a C++17 type alias and this was
confusing MOC. Just changing the signature to the more verbose type name
fix the bug.
2020-11-18 13:53:19 +01:00
Tobias Fella
3a11ff614c
Port away from qsTr/tr
2020-11-17 20:52:40 +01:00
Tobias Fella
de183caefb
Apply clang-format
2020-11-17 20:25:18 +01:00
Tobias Fella
93e5ad430b
Fix segfault
2020-11-17 13:41:47 +01:00
Tobias Fella
d8dde6e082
Add license headers to code files
2020-11-11 15:17:23 +00:00
Tobias Fella
d9f0ec8ada
Fix segfault on login caused by 53397bf970
...
newAvatarUrl() returns an Omittable<QUrl> instead of a QUrl that may be
empty. When the Omittable is empty, dereferencing it returns a nullptr
and calling something on that segfaults
2020-11-11 15:23:33 +01:00
Carl Schwan
53397bf970
fix some clazy warning and deprecations
2020-11-10 19:52:22 +01:00
Tobias Fella
debcf7a7b4
Fix compilation with libQuotient master
2020-11-10 15:46:23 +01:00
Carl Schwan
122a7cdd2f
Rebrand files names Spectral -> NeoChat
2020-11-08 23:17:30 +01:00