Commit Graph

31 Commits

Author SHA1 Message Date
Tobias Fella
cb2ea5f4e3 Allow TextDelegate to wrap anywhere if required
Prevents lines from going out of the message bubble
2021-09-20 23:31:36 +02:00
Carl Schwan
b1d8956036 Fix links now working anymore and simplify code 2021-06-22 10:14:53 +02:00
Carl Schwan
680b0cc3bd Bind spoiler revealed state 2021-06-17 22:39:50 +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
efb70287b9 Add setting page 2021-06-07 11:49:35 +02:00
Carl Schwan
20a7672008 Remove dead code 2021-05-20 18:46:52 +02:00
Carl Schwan
7ac232d372 Minor optimizations to the timeline delegates
* Use anchors instead of Layouts
* Don't use Loader for message display name
* Lazy load the emoji popup
2021-05-20 15:04:38 +00:00
Carl Schwan
173d8075ad Show link on hover
Fix #279
2021-05-07 04:18:50 +02:00
Srevin Saju
affcbca199 style: remove redundant Layout.fillWidth and use only one for text
delegate
2021-05-05 20:50:32 +03:00
Noah Davis
32c21b7b84 Fix Kirigami spelling mistake
Kirigani -> Kirigami
2021-05-02 07:33:20 -04:00
Srevin Saju
57684aa454 fix: fix the emoji message size once again
this used to work once upon a time, but it stopped working recently.
This commit helps to make the emoji-only-messages bigger. In case, if emoji's
are sent as a reply to a text message, this does not affect size then.

fix: fix the size of the `(edited)` string when the message
contains only emojis' and also when its edited
2021-04-30 19:12:07 +03: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
d170cc5161 Cleanup QML imports and license headers
- Group the imports into Qt, KDE, NeoChat
- Import the latest versions
- Remove unused imports
- Remove unused components
- Unify license header styling
2021-04-07 19:38:40 +00:00
Carl Schwan
75a2ba86ee Remove quick reply feature
Unfortunately I couldn't find any way to make it work while also
making scroll works correctly. The container is now using item delegate
and by testing on my laptop touch pad it seems to scroll well.

Probably worth revising at some point but at least it makes neochat
usable.
2021-04-03 15:43:51 +00:00
Carl Schwan
743c9972b9 Use singleton to pass edit/reply content to chatbox
This significantly reduce the complexity of everything.
2021-03-20 14:00:29 +00:00
Carl Schwan
612fb4924e Start implementing bubbles 2021-03-06 20:19:41 +00:00
Tobias Fella
e546c12b45 Don't underline links 2021-02-17 20:16:19 +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
Yaroslav Sidlovsky
ed26e87c96 Display table borders 2021-01-09 15:02:24 +01:00
Carl Schwan
4463e3e3f2 Add edited flag to edited messages
Fix #206
2020-12-30 13:17:59 +00:00
Carl Schwan
8b18072a58 Fix big text in reply with emoji
Fix #104
2020-12-01 19:27:17 +01:00
Carl Schwan
550cef52d0 Use more adapted delegate for showing emote (/me)
Now use a standard MessageDelegate and don't display the title part.
This now make the reply and reaction button available and also make it
possible to see the reactions.

Fix: #69
Fix: #75
2020-11-27 15:29:11 +01:00
Carl Schwan
48521d8c8e Don't hijack drag event on mobile in timeline
This fix #78
2020-11-26 15:41:40 +01:00
Carl Schwan
09be81a6cc Disable select by mouse on mobile 2020-11-23 15:39:20 +01:00
Tobias Fella
e778c18913 Show an info message instead of an empty message for redactions
Fixes #26
2020-11-22 15:36:00 +01:00
Carl Schwan
263c9dcd6e Improve emoji only message detection 2020-11-22 11:14:43 +01:00
Carl Schwan
f46fd90743 Use a read only text edit for selectable text 2020-11-19 08:13:02 +00:00
Tobias Fella
aa609b70e0 Enable opening links in messages 2020-11-15 22:47:35 +01:00
Carl Schwan
36f33c3f9b Make Neochat works on a dark theme 2020-11-15 21:24: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