Carl Schwan
70b15103aa
Disable chatbox if we're not allowed to send messages
...
Fix #271
2021-02-26 14:19:18 +01:00
Carl Schwan
12624c991c
Revert "Revert "Improve sending message with mentions""
...
This reverts commit 0f043e36c4 .
2021-02-26 13:58:49 +01:00
Alexey Andreyev
668968990c
Fancy effects: remove excess console debug output
2021-02-23 20:49:35 +00:00
Alexey Andreyev
01f8c3b09f
Fancy effects: additional check if enabled everywhere
2021-02-23 20:49:35 +00:00
Alexey Andreyev
5ab44f1897
Fancy effects: add fancy effects support for chatTextInput
2021-02-23 20:49:35 +00:00
Anjani Kumar
babbc039ab
Focus inputField after cancelling edit/reply
2021-02-14 15:32:02 +05:30
Anjani Kumar
3979cf59ce
Clears inputField when edit is cancelled.
2021-02-13 19:17:06 +00: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
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
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
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
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
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
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
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
7ed41a8f68
Move back to plain text
2020-12-04 21:25:23 +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
eba2b18ba9
Redesign information pannel
...
Based on a design of manueljlin
2020-12-03 12:25:18 +01:00
Carl Schwan
db177354d0
Mark room as read after sending message
2020-11-29 10:29:24 +01:00
Carl Schwan
362c8b4e63
Fix text input
2020-11-28 00:49:07 +01:00
Carl Schwan
4bff186a40
Import keyboard navigation
...
* Aggressively set focus to message input box and fix #37
* Improve room switching #66
2020-11-28 00:25:40 +01:00
Carl Schwan
77177e9efc
Change behavior of autocompletion when empty results
2020-11-27 16:35:42 +01:00
Carl Schwan
139d9e93e0
Fix regression with Enter+Shif in ChatTextInput
2020-11-27 00:45:13 +01:00
Carl Schwan
d6ab6bacdd
Use RichText text input to provide real mentions
...
This use internally now a QTextDocument and a new C++ class to
manipulate the document with QTextCursor.
2020-11-26 14:25:30 +00:00
Nate Graham
5f932fb112
Correct typo in signal name (choosen -> chosen)
2020-11-24 15:43:43 -07:00
Carl Schwan
f4da552674
Force the focus on the text field after adding an emoji
...
Fix #71
2020-11-24 23:40:02 +01:00
Carl Schwan
8da4ff1585
Improve autocompletion of Emojis
...
Now it start automatically for emojis, and also the first time you use
tab you jump to the first selected emoji or face.
2020-11-24 17:54:15 +01:00
Carl Schwan
fe63b0c9a7
Add emoji picker for reaction
2020-11-24 14:25:56 +01:00
Nate Graham
0c28ec4041
Make emoji button checkable
...
Since clicking on it both opens and closes the emoji panel, it's a
natural fit for being checkable.
2020-11-24 12:01:42 +00:00
Carl Schwan
936f818142
Fix wrong color in reply
2020-11-23 22:48:26 +00:00
Nate Graham
0b75b9f488
Correct alignment for text input inline buttons
...
Ther were aligned top for no perceptible reason, which caused them to
not ve vertically centered in the text field.
2020-11-23 10:25:21 -07:00
Nate Graham
d6df2de767
Add tooltips for inline chat text box toolbuttons
2020-11-23 09:26:08 -07:00
Carl Schwan
820b63d493
Improve emoji selector
2020-11-22 14:59:10 +01:00
Carl Schwan
3a7565874e
Start completing with message starting with @
2020-11-19 16:31:21 +00:00
Carl Schwan
9c3d803a8d
Remove spectral style from autocomplete list
2020-11-19 15:15:18 +00:00
Carl Schwan
aacbad6071
Fix regressions in ChatTextInput
...
bb5ed865c4 caused a bunch of problems
2020-11-19 15:14:45 +00:00
Carl Schwan
011fc052f4
Remove debug output
2020-11-19 09:26:36 +01:00