miruka
6d26ac9006
Join/LeftBanner: auto keyboard-focus first button
2020-08-28 07:40:48 -04:00
miruka
78acb51220
Refactor the QML past events loading code
...
- Make the code cleaner and more declarative
- Start loading past events when the join state of the room changes,
e.g. when accepting an invite, load history right then
- Properly cancel the loading task when leaving the room chat page
2020-08-28 07:19:26 -04:00
miruka
702497cb48
Fix 403 error on invited room chat page
...
Don't try to fetch room members while user is only invited or has left
the room.
2020-08-25 09:37:09 -04:00
miruka
0d2be820fe
Allow "replying" to an event with a file
...
Send a pseudo-reply consisting of two messages: a `m.text` which is just
a reply with an empty body, then the file event itself.
This is a workaround to the restriction imposed by the Matrix API,
which prevents us from simply attaching a reply to a media event:
https://matrix.org/docs/spec/client_server/latest#rich-replies
2020-08-24 10:17:04 -04:00
miruka
6d9a013d5d
Composer: allow sending a reply with no text
...
Useful for "forwarding" a message (to the same room)
2020-08-24 09:54:49 -04:00
miruka
bbb46a9feb
Disallow whitespace in composer aliases
...
These cause problems with the composer alias parsing code.
If an alias from the config file has whitespace, only the first word
will be taken into account (ignoring any leading or trailing whitespace).
2020-08-24 09:54:49 -04:00
miruka
83f35c034e
Refactor MessageArea composer alias handling
...
Simplify the code, make it more declarative, and improve the reliability
of sending typing notifications (notably when changing the used alias in
the middle of a message).
2020-08-24 09:54:49 -04:00
miruka
b83fd63769
Save composer state as right user when using alias
...
If the chat was opened under e.g. "@user1:example.org", but the
composer text is "o abc" where "o" is a composer alias for
"@other_account:example.org", save the composer text to state.json as
"@user1:example.org" and not the alias user.
2020-08-24 09:54:49 -04:00
miruka
df3f1fb645
Remove all Backend "get_any_client"-using methods
...
thumbnail() and download() were remaining.
Use a direct and carefully chosen MatrixClient's methods instead to
avoid problems mentioned in the previous commit 7502c1.
2020-08-24 09:54:43 -04:00
miruka
fc6827807c
Fix mentioning blank display names
...
If the display name of a user is blank (e.g. just a space character),
autocomplete it as a user ID.
If the display name starts or ends with whitespace, trim it.
2020-08-23 10:46:59 -04:00
miruka
fbf6e48b5b
Fix mentioning users without display names
2020-08-23 09:41:41 -04:00
miruka
e79094c18c
Fix click on user delegate not making it a mention
2020-08-23 09:23:34 -04:00
miruka
4000d70514
Reset input method when autocompleting a user
...
Fixes IME being left in a strange state upon autocompleting a word that
was being edited.
2020-08-23 09:14:45 -04:00
miruka
0434659ad1
CompletableUserDelegate avatar: respect uiScale
2020-08-22 15:17:52 -04:00
miruka
223197b84e
Pass HTTPS server URL to Python when possible
...
Reduce the time it takes to connect to the server since Python won't
need to guess the real protocol.
2020-08-22 15:15:15 -04:00
miruka
9cc9229fdb
Simplify pinging & properly close aiohttp session
2020-08-22 13:19:38 -04:00
miruka
eadc4bb317
Remove unused function inside UserAutoCompletion
2020-08-22 01:44:41 -04:00
miruka
bc3d6d902f
Fix @autocomplete closing after one character
...
Typing e.g. "@a" would work, but "@ab" would always instantly close
the autocompletion UI if the cursor was at the end of the text area.
2020-08-22 01:23:44 -04:00
miruka
12c47476fc
Add theme properties for autocompletion UI
2020-08-21 12:10:22 -04:00
miruka
044060d1c0
Color name when highlighting member delegates
2020-08-21 12:10:22 -04:00
miruka
010675001c
Add bottom margin to autocompletion UI
2020-08-21 12:10:22 -04:00
miruka
6f37ce3519
Fix completing in the middle of a name with spaces
2020-08-21 12:10:22 -04:00
miruka
bea1d60621
Fix autocompletion for users without display name
2020-08-21 12:10:22 -04:00
miruka
cd81c94ce8
Fix autocompletion for display names with spaces
2020-08-21 12:10:22 -04:00
miruka
9dc9a5e70f
Clip the autocompletion UI
2020-08-21 12:10:21 -04:00
miruka
9b3d01b9a8
ServerDelegate: add ping icon tooltips
2020-08-21 12:10:21 -04:00
miruka
93b73b86bb
Add a "table header" to server browser
2020-08-21 12:10:21 -04:00
miruka
6160deace5
Improve ServerBrowser text wording
2020-08-21 12:10:21 -04:00
miruka
85f4620b3b
Equalize "Homeserver address" label padding
2020-08-21 12:10:21 -04:00
miruka
b79b032184
Better delegate for completable users
2020-08-21 09:27:01 -04:00
miruka
6dcc244998
Move UserAutoCompletion outside of Composer
2020-08-21 05:50:37 -04:00
miruka
bd01d9edd0
Fix segfault when leaving loading server list page
2020-08-21 05:18:08 -04:00
miruka
6ba6202771
Fix clicking on server in server browser
2020-08-21 05:10:32 -04:00
miruka
2ccb28fa49
Box/popups: ignore enter press on disabled buttons
2020-08-21 05:08:12 -04:00
miruka
43b14f3129
Make autocompletion work not just at end of line
2020-08-21 04:44:55 -04:00
miruka
1b919ec7be
Cursor moves before last word: close completion UI
2020-08-21 01:46:07 -04:00
miruka
063f9d2b1d
Only mention tab-completed usernames
2020-08-21 01:21:51 -04:00
miruka
5ba669444d
Add basic user autocompletion UI
2020-08-21 01:21:10 -04:00
miruka
ec17d54923
ServerDelegate: ignore compact mode
2020-08-21 01:19:18 -04:00
miruka
cc06645275
Add spinner when fetching homeservers list
2020-08-21 01:19:18 -04:00
miruka
ede99b310e
Fix login box tab shortcuts
2020-08-21 01:19:18 -04:00
miruka
3c79ffbf21
Don't show register/reset tabs on sso login box
2020-08-21 01:19:18 -04:00
miruka
e303ee1fc9
SignInSso: return to server list on Cancel click
2020-08-21 01:19:18 -04:00
miruka
5ac5dbd1d5
Add usual FlickShortcuts to server browser
2020-08-21 01:19:18 -04:00
miruka
21fbe7a96b
Show scrollbars for a few seconds at first
...
Lets the user know that there's content to scroll.
2020-08-21 01:19:18 -04:00
miruka
2f1889423b
Room & member filter fields: support (shift+)tab
2020-08-21 01:19:17 -04:00
miruka
007a11b4aa
Change "go to homeserver address" icon
2020-08-21 01:19:17 -04:00
miruka
d945bed0a3
Increase "Homeserver address" text bottom padding
2020-08-21 01:19:17 -04:00
miruka
d3092c4929
Clear server list highlight when field text edited
2020-08-21 01:19:17 -04:00
miruka
c51a771a65
Add colored border to HListView highlight delegate
2020-08-21 01:19:17 -04:00