Commit Graph

117 Commits

Author SHA1 Message Date
Tobias Fella
546d17b1a2 Correctly open all kinds of matrix.to links in TextDelegate and MessageDelegateContextMenu 2021-02-04 20:23:16 +00:00
Bart Ribbers
465334e23f Improve the look of reactions
- Always show the reaction counts. Element does this too and it makes sure
the look is consistent, no matter how many reactions there are.
- Show a slight border around the background to make the transition to
non-reaction less "grainy"
2021-02-04 18:28:53 +01:00
Arnav Rawat
f67f319854 Fix sending attachments/files
This commit lets attachments be sent by themselves and prevents
a crash when a text message is sent with an attachment
2021-01-24 20:38:40 +00:00
Yuri Chornoivan
fde637b1df Add i18n() 2021-01-23 21:49:38 +02: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
Yaroslav Sidlovsky
6893cb361e Fix displaying user names with bold text
Property "font.bold" is ignored for QQC2.Label (see: https://phabricator.kde.org/D14495)
2021-01-16 15:16:22 +03:00
Carl Schwan
c24c25eb38 Be less noisy 2021-01-14 20:32:15 +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
Yaroslav Sidlovsky
ed26e87c96 Display table borders 2021-01-09 15:02:24 +01:00
Yuri Chornoivan
a82b9dc14e Fix minor typos 2021-01-09 09:19:11 +02: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
cd1bec9977 Introduce the ActionsHandler 2021-01-08 23:12:09 +00:00
Nate Graham
af7003e680 Disable "Send message" button when there's no message to send 2021-01-08 14:42:21 -07:00
Noah Davis
338553de16 [ChatTextInput] Fix isImage (no such property) and rgba (Should be Qt.rgba) 2021-01-04 13:58:34 -05:00
Noah Davis
9a17c07fdd [ChatTextInput] support more image formats and use icons for non-image attached files 2021-01-04 13:58:34 -05:00
Carl Schwan
4463e3e3f2 Add edited flag to edited messages
Fix #206
2020-12-30 13:17:59 +00:00
Carl Schwan
5c8d916752 Add support for stickers
Fix #130
2020-12-29 14:28:32 +00:00
Carl Schwan
5a831732c5 Fix Platform is undefined bug 2020-12-29 01:43:23 +01:00
Carl Schwan
c69d3587ba Allow editing text and also hide edits from the timeline 2020-12-28 09:37:17 +00:00
Shantanu Tushar
9d82ebb0ed Use the I-beam cursor when hovering on chat message text field 2020-12-28 10:25:17 +01:00
Tobias Fella
724f10a895 Don't load empty images from imageprovider
Previously, when there was no avatar set, the source property of Avatar was still set to 'image://mxc/',
which caused Avatar to load that from the imageprovider. The imageprovider can't provide an empty image and aborts with error
2020-12-28 01:28:13 +01:00
Tobias Fella
8aec6b67cb Fix image saving 2020-12-24 13:29:35 +01:00
Tobias Fella
1a28e52d79 Set a default name when saving files
Fixes #173
2020-12-24 01:54:19 +01:00
Carl Schwan
59f9c36854 Dismiss reply when clicking on Esc
Fix #175
2020-12-23 18:01:09 +01:00
Devin Lin
8f348eb4fd Cap height of send message box, and make it scrollable 2020-12-23 09:07:37 +00:00
Devin Lin
87a7a34d80 Show feedback on avatar hover 2020-12-23 08:51:07 +00:00
Tobias Fella
b3899f1e69 Port away from implicitly defined onFoo properties in Connections 2020-12-21 16:37:22 +01:00
Carl Schwan
6482f08eba Switch back to plain text editing
See https://bugreports.qt.io/browse/QTBUG-89630
2020-12-21 10:23:14 +01:00
Carl Schwan
2b84c5dd02 Improve autocompletion 2020-12-17 08:57:50 +00:00
Tobias Fella
d7765f0f0a Fix file saving 2020-12-16 23:12:43 +00:00
Tobias Fella
24fac27a7f Get rid of Neochat.Effect 2020-12-15 17:57:55 +01:00
Carl Schwan
12164b91ed Add new line and not <br /> 2020-12-09 21:16:21 +00:00
Carl Schwan
87833a8458 Add an image editor 2020-12-07 09:58:03 +00:00
Carl Schwan
29584aec23 Allow redaction of message only by admins and authors of the message
Previously you could click on the button but it would do nothing
2020-12-05 11:29:37 +01:00
Carl Schwan
7ed41a8f68 Move back to plain text 2020-12-04 21:25:23 +01:00
Carl Schwan
b90a027c99 Use video delegate for videos
There is still two issues:

* Videos send by neochat are broken (missing metadata)
* Once the video has run it is unavailable

Fix #120
2020-12-04 10:37:04 +01:00
Carl Schwan
09804511d0 Fix formatting 2020-12-03 22:37:17 +01:00
Carl Schwan
e3e2e4f66e Remove debug output 2020-12-03 22:25:01 +01:00
Carl Schwan
10d84e96b7 clean 2020-12-03 22:19:51 +01:00
Carl Schwan
23ec54ecd0 Allow Ctrl-V pasting of images from the clipboard
Fix #117
2020-12-03 21:43:58 +01:00
Carl Schwan
5ed47e7397 Revert "Port timeline mouseare to tap handler"
This reverts commit d63811471c.
2020-12-03 17:50:27 +01:00
Carl Schwan
735008c74c Fix ReferenceError: Config is not defined 2020-12-03 17:42:24 +01:00
Carl Schwan
d63811471c Port timeline mouseare to tap handler
This fix inconsistency in behavior
2020-12-03 17:38:57 +01:00
Carl Schwan
bc4cde2dc7 Improve image delegate sizing 2020-12-03 13:42:21 +01:00
Carl Schwan
eba2b18ba9 Redesign information pannel
Based on a design of manueljlin
2020-12-03 12:25:18 +01:00
Carl Schwan
8a3659efba Add option to toggle the display of users avatar in timeline on and off 2020-12-02 18:25:29 +01:00
Carl Schwan
8b18072a58 Fix big text in reply with emoji
Fix #104
2020-12-01 19:27:17 +01:00
Carl Schwan
ae35846035 Show read marker
Fix #2
2020-12-01 16:35:51 +01:00
Carl Schwan
a0b0b44f8d Add rich text formating to replies too 2020-11-30 23:50:39 +01:00