Commit Graph

1170 Commits

Author SHA1 Message Date
Carl Schwan
562850ea2c Fix Clibpoard is not defined
Now import it and use the correct function

Fix #100
2020-12-01 15:00:48 +01:00
Carl Schwan
c847d3d5c9 Fix regression with not selectable text on desktop
Fix: #99
2020-12-01 14:57:19 +01:00
Carl Schwan
1296a688eb Improve allignement of dropdown in room list section delegate 2020-12-01 12:00:31 +01:00
Carl Schwan
b62e694c97 Code style 2020-12-01 11:56:50 +01:00
Carl Schwan
c5e2acdd5d Refactor lastEvent
Now lastEvent() return the last event and lastActiveTime() and
lastEventToString() are convenient functions to get the visual
representation and the timestamp.

We are also now fetching new events when the timeline is empty
so that we can correctly order the rooms. In the future, we should
instead probably cache the last event in an SQLite database to optimize
the startup time.

This also ignore state event when the configuration ask to ignore them.

Fix: #97
2020-12-01 10:55:18 +00:00
Carl Schwan
a0b0b44f8d Add rich text formating to replies too 2020-11-30 23:50:39 +01:00
Carl Schwan
10fe948016 Fix typo Clibpoard -> Clipboard
Fix #100
2020-11-30 23:28:55 +01:00
Reinhold Gschweicher
f10ef11919 Use long press as right click on messages 2020-11-30 20:54:22 +00:00
Reinhold Gschweicher
41a4610acc TextArea for MessageSource to mark/copy source 2020-11-30 21:02:36 +01:00
Carl Schwan
66b6f5c229 Fix formating 2020-11-29 17:34:40 +01:00
Carl Schwan
2cdf606c7c Allow filtering join and leave events
Fix #93
2020-11-29 11:14:19 +01:00
Carl Schwan
db177354d0 Mark room as read after sending message 2020-11-29 10:29:24 +01:00
Aleix Pol
118dabb58b Make it possible to quit the application
This will call Qt.quit when the Quit application shortcut is pressed (not just
visible=false).
2020-11-28 16:56:18 +00:00
Carl Schwan
97cba6a17a Remove transparency in FullScreen image viewer
Also simplify closing the window by just clicking on the background

This fix #89
2020-11-28 10:04:38 +01:00
Carl Schwan
c97ca27c52 More fix 2020-11-28 00:50:45 +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
2a0b6c74f3 Switch between room list items with standard tab switching keyboard
shortcuts

Ctrl+PgUp/PgDn and Ctrl+Tab/Ctrl+Shift+Tab

Fix #66
2020-11-27 23:43:11 +01:00
Carl Schwan
6bb3821039 Fix color diferenciation between highlight and unread pills
Fix: #87
2020-11-27 22:04:33 +01:00
Nate Graham
f75035adc8 Add a separator before "Leave Room"
This should make it harder to accudentally leave the room when you're
just trying to mark it as read!
2020-11-27 14:04:38 -07:00
Aleix Pol
dd8269344f Fix raising on wayland
On wayland raise doesn't imply show, so we need to do both.
2020-11-27 17:25:45 +01:00
Carl Schwan
77177e9efc Change behavior of autocompletion when empty results 2020-11-27 16:35:42 +01:00
Carl Schwan
496781954b Use smaller round button 2020-11-27 16:16:12 +01:00
Tobias Fella
c8553003d7 Only send a notification for events newer than one minute
To prevent notification flood on startup
A bit hacky, but good enough for now
2020-11-27 16:09:53 +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
c1dccf7a7e Add create room dialog 2020-11-27 15:06:29 +01:00
Carl Schwan
b0bbd3631f Add Start a chat page 2020-11-27 14:37:29 +01:00
Carl Schwan
da9f08eae4 Remove obsolete QML components 2020-11-27 14:37:29 +01:00
Reinhold Gschweicher
244adf3467 Generate "is typing" string only if someone is typing
If no user is typing (currentRoom.userseTyping.length == 0) then don't
generate the "is typing" string. Because the message box is invisible.

This prefents error messages like:
```
kf.i18n: "1 instead of 2 arguments to message {%2 are typing} supplied before conversion."
```

Fixes: https://invent.kde.org/network/neochat/-/issues/80
2020-11-27 12:12:40 +00:00
Carl Schwan
7140734576 Improve reaction delegate style 2020-11-27 12:42:06 +01:00
Carl Schwan
feebc7678a Fix wrong color for room pill when mentioned
Fix: #81
2020-11-27 12:34:20 +01:00
Carl Schwan
139d9e93e0 Fix regression with Enter+Shif in ChatTextInput 2020-11-27 00:45:13 +01:00
Carl Schwan
962c1d8d75 Merge branch 'neroburner/neochat-fix_fallthrough_warning' 2020-11-27 00:32:39 +01:00
Carl Schwan
136a8f2af8 Clang-tidy + clang-format 2020-11-27 00:26:39 +01:00
Reinhold Gschweicher
05539dc87a Fix fallthrough warning in neochatroom 2020-11-26 23:03:31 +00:00
Tobias Fella
49881f809d Improve the 'jump to last read message' button
When loading a room, automatically load messages until the last read
message is loaded #35
Don't show the button if the message is not loaded
2020-11-26 23:05:08 +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
15bccad324 Fix possible container detaching 2020-11-26 15:36:48 +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
Alexey Andreev
d6e1a6a45b Improve color-coding for user disambiguation
See also: https://github.com/quotient-im/libQuotient/wiki/User-color-coding-standard-draft-proposal
2020-11-26 10:57:37 +00:00
Carl Schwan
e838f7423d Add highlight effect on mentioned messages 2020-11-26 10:20:55 +00:00
Tobias Fella
48c17798b7 Make all buttons on InvitationPage not flat
Fixes #73
2020-11-25 19:17:45 +00:00
Nicolas Fella
e5064dffe5 Don't show room name in notification if equal to sender
This is the case for direct messages.
2020-11-25 20:16:56 +01:00
Nicolas Fella
619fc3907f Escape potential HTML in notifications
Originally done in https://gitlab.com/spectral-im/spectral/-/merge_requests/74
2020-11-25 00:49:19 +01: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
ae6eae5204 Add bold for unread channel 2020-11-24 23:36:39 +01:00
Aleix Pol
32b82d247f Define the KAboutData before the KDBusService
This way the service annouces itself properly as org.kde.neochat instead
of local.neochat.
2020-11-24 18:13:11 +00:00
Carl Schwan
fcb2659c53 Add selected effect to selected room
This fix #55
2020-11-24 18:45:08 +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