Tobias Fella
57b6f00d8e
Use better include for QCoroTask
2023-04-11 15:34:12 +02:00
Tobias Fella
280c9327cb
Remove unused signal
2023-04-11 15:31:40 +02:00
Carl Schwan
1223c5348d
Rename ConfirmLogoutDialog to Dialog.ConfirmLogout
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2023-04-10 13:54:57 +02:00
Carl Schwan
3ccff4f337
Refactor room list in multiple sub components
...
Also modernize the codebase where possible (e.g use required properties,
reorder properties, fix warnings, don't use Action when not needed)
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2023-04-10 13:53:42 +02:00
Tobias Fella
52dafbb6c8
Revert "Implement sending location messages"
...
This reverts commit f3a04635cf
2023-04-09 20:22:06 +00:00
James Graham
4341cc437d
Handle escaped html for plain text output
...
Always unescape html for plain text output no matter what the input is.
2023-04-09 14:20:22 +00:00
James Graham
7bb7dd7bbb
Document messageeventmodel
...
Document the API and cleanup some unused roles.
2023-04-09 14:02:30 +00:00
James Graham
b4090d9671
Fix Chat bubble background changing color when created
...
Only enable the animating of the bubble background when the temporary highlight is applied to avoid it flashing white on entry.
BUG: 468124
2023-04-09 12:13:46 +00:00
Tobias Fella
f3a04635cf
Implement sending location messages
2023-04-09 00:44:02 +00:00
Tobias Fella
419cb07557
Revert "Temporarily disable android Qt6 CI"
...
This reverts commit d6ebb1308c
2023-04-09 02:22:53 +02:00
Tobias Fella
57fccaa076
Rework QuickSwitcher
...
Now looks similar to the implementations in Kalendar and KXMLGui

Replaces !505
2023-04-09 00:15:00 +00:00
James Graham
4bf65339f8
Texthandler edited
...
Move the handling of adding whether the message has been edited to texthandler.
2023-04-08 20:58:44 +00:00
James Graham
be3b5cdb8a
Handle emotes in texthander
...
This moves the code to add the emote user pill into texthandler removing the now redundant checks from the message delegates.
2023-04-07 19:03:04 +00:00
Wang Zichong
8af2d4d273
Support both roomnick and myroomnick slash command
...
myroomnick is a more common-used command, so user can keep using
/myroomnick if they are from other matrix client.
2023-04-05 23:19:07 +08:00
Carl Schwan
f64c8e28da
Use newly introduced setBadgeNumber api on Qt >= 6.6
2023-04-05 10:15:04 +02:00
Alessio Mattiazzi
6dd51a35c5
Clear room member filter when hiding search bar
...
closes #575
2023-04-04 21:04:05 +00:00
Tobias Fella
1a87e605d6
Fix formatting
2023-04-03 23:32:31 +02:00
Jan Bidler
e995740790
Text cleanup
...
This MR goes over text and cleans it up to be more unifying. Mostly just lowercasing words in non-titles, but it also changes the "show fancy effects" text to be clearer with its meaning.
It also fixes the room access being printed in the room settings: 
I'd like to do a second pass later with another MR to unify triple dots (...) and ellipsis (…)
2023-04-03 20:47:14 +00:00
James Graham
5087161e4b
Document NeoChatRoom
...
Add documentation to NeochatRoom and reorganise the functions in the header file in a more logical order.
For Q_PROPERTIES the documentation is on the property not the functions it calls as seems to be the convention elsewhere.
2023-04-02 17:56:03 +00:00
James Graham
918e9e492a
Make sure the file delegate label fill the width and elide if needed.
2023-04-02 15:41:55 +00:00
Marc Deop i Argemí
f10805dddb
feat: add background-color to <code> blocks
2023-04-02 10:54:41 +02:00
James Graham
9f9086b4b0
Make the room page header span the width in compact mode with the sam emargin on both sides.
2023-04-01 17:03:53 +00:00
James Graham
e00ce79d26
Change the background colour in compact mode to achieve the same level of contrast as with bubbles.
2023-04-01 15:52:48 +00:00
James Graham
a13b2e6bd2
Cleanup Neochatroom
...
Remove unneeded functions, remove Q_INVOKABLE from setters that are part of a Q_PROPERTY, move inlined getters and setters to the .cpp
2023-04-01 12:49:27 +00:00
James Graham
cefe5acdaa
Fix Long Topics in the RoomDrawer Overflowing
...
Use a scrollView for the topic so that a scrollBar is shown when it really long
BUG: 467512
2023-04-01 10:24:26 +00:00
Carl Schwan
882945260a
Fix dataChanged being sent with all roles
...
This is expensive so we should try to reduce it to the maximum
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2023-03-30 18:37:50 +00:00
Carl Schwan
3677088104
Remove one RoomListModel instance
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2023-03-30 18:21:03 +00:00
Akseli Lahtinen
8f141cd88d
Set the mention and error color according to colorscheme
...
Use kirigami to set the proper link and error color for mentions and error underlining in chatbox
This is with my own colorscheme:

2023-03-30 16:25:01 +00:00
Tobias Fella
34ad743e98
Don't crash in UserListModel when there is no room
...
BUG: 466045
2023-03-28 11:47:14 +00:00
James Graham
b1b6c7ceed
Improve location marker
...
Change location marker to GPS icon, make sure the point is the anchor and colour it with highlight colour
m.self \

m.pin \

2023-03-27 16:38:34 +00:00
Tobias Fella
dcf520a7a9
Fix locations for geouris with uncertainty
2023-03-26 22:55:05 +02:00
James Graham
a0ae8b28b2
Handle stripnewlines for plain text list
...
Handle stripping new lines when the plain text input is a markdown list.
2023-03-26 20:27:23 +00:00
Tobias Fella
fb24ffd20d
Show a map for location events
2023-03-24 13:52:17 +00:00
Tobias Fella
787dc5ab66
Ensure that the room list subtitle is a single line
2023-03-23 20:10:35 +00:00
James Graham
925e20ebb8
Handle quotes in plain strings
...
Unescape quotes in plain strings
2023-03-19 19:58:56 +00:00
James Graham
ee254a286d
Handle single quotes for links
...
Make sure that the text handler can handle links which use single or double quotes for the attributes.
2023-03-19 19:06:08 +00:00
Tobias Fella
cedbb64932
Remove unused include
2023-03-19 02:00:45 +01:00
Tobias Fella
b45898a5b6
Fix typo in actionName
2023-03-19 01:59:55 +01:00
James Graham
11e9af15f7
Add Quick Formatting Menu in the Chatbar
...
Add a menu to quickly apply text effects when selecting text in the chatbar.

2023-03-18 10:44:28 +00:00
James Graham
ac5212ebb2
Update space heirarchy cache
...
Add functions to update the space heirarchy cache when a new space is added or removed.
2023-03-17 14:23:39 +00:00
James Graham
4e16b91f54
Hide local edit message
...
When a local message is edited make sure that the initial message that will be merged remains hidden so it doesn't flash up then disappear.
closes network/neochat#314
2023-03-17 10:07:31 +00:00
James Graham
ac775c5aaf
Add pie shaped progress bar for chatbar instead of busy indicator
...

Closes network/neochat#151
2023-03-16 19:22:37 +00:00
James Graham
db17888d42
Add action name required propereties for the room settings.
2023-03-16 09:16:21 +00:00
James Graham
4289c1345f
Update about neochat actionName to "aboutNeochat" and add one for about KDE
2023-03-15 14:56:37 +00:00
James Graham
0d6a83b063
Add end state to text handler and use to ensure that in nextTokenType to stop an out of bounds access to m_databuffer
2023-03-15 11:55:50 +00:00
James Graham
64dee7eb12
Add right click menu to accountlist avatar
...
Adds a right click menu with the following options

depends upon frameworks/kirigami!933
2023-03-14 23:00:41 +00:00
Carl Schwan
bc84ad8d56
Don't focus chatbar on mobile
...
This popup the virtual keyboard and is quite distrubing on mobile.
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2023-03-14 22:27:44 +00:00
James Graham
afe8a2a5e4
Newline Mobile
...
Make return/enter create a newline on mobile. This is the traditional behaviour in other messengers as the send icon and return have are the same time to access and solves the linked issue.
Closes network/neochat#466
2023-03-14 22:26:18 +00:00
Carl Schwan
87213dc9dd
Show back button when pushing the settings on mobile
...
To use with https://invent.kde.org/frameworks/kirigami/-/merge_requests/992
Signed-off-by: Carl Schwan <carl@carlschwan.eu >
2023-03-14 22:24:22 +00:00
James Graham
300d2428eb
Remove rogue console.log statement
2023-03-14 19:38:18 +00:00