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
2cb81d1276
Unify License header style in C++
2021-04-06 19:25:06 +02:00
Srevin Saju
78f7f815ca
feat: add a quick reply workflow using the Ctrl+Up arrow key
...
neochat now supports a quick reply shortcut, which helps to reply to
the last event in a room.
2021-04-05 12:17:51 +00: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
Carl Schwan
879009a6f7
Support inline reply
...
needs https://invent.kde.org/frameworks/knotifications/-/merge_requests/28
2021-03-14 17:03:13 +00:00
Carl Schwan
2f06d45589
Input field fixes
...
* Message with multiple mentions are not broken in IRC. Fix #267
* Editing a message won't remove mentions anymore
(cherry picked from commit bb3b3bc088 )
2021-03-01 13:26:25 +00:00
Carl Schwan
12624c991c
Revert "Revert "Improve sending message with mentions""
...
This reverts commit 0f043e36c4 .
2021-02-26 13:58:49 +01:00
Filip Bengtsson
6fca7830a3
Add i18n comments
2021-02-24 19:11:12 +00:00
Tobias Fella
b67a35bfe3
Fix another include
2021-02-17 23:26:52 +01: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
66b06aac6e
Use correct username for typing users
...
Fix #257
2021-02-05 22:52:32 +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
Tobias Fella
4894470e7d
Fix crash on name change events
2021-01-27 01:23:49 +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
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
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
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