-
Notifications
You must be signed in to change notification settings - Fork 817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/Talk Reply v1 #4200
Feature/Talk Reply v1 #4200
Conversation
SonarCloud Quality Gate failed. |
@camilasan as you requested, here is the mockup for how reply should look, based on the work done by @allexzander in #4186 :) Ideally the "Reply" button could animate to morph into the input field if possible (quickly, in 100ms or so). It’s also fine if that’s not possible, but it’s very important that there is no vertical shifting of things. (Also note the reply part would be below the timestamp of the original message instead of inbetween message and timestamp.) |
14db11e
to
1d64965
Compare
@camilasan I guess you can rebase it with master and have a final PR ready for review |
src/gui/tray/TalkReply.qml
Outdated
id: talkMessage | ||
font.pixelSize: Style.topLinePixelSize | ||
height: activityTextInfo.height | ||
width: parent.width |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camilasan @mgallien @claucambra My QML knowledge might be failing me, but, shouldn't we then use anchors.left: parent
, anchors.right: parent
since we are using anchors.verticalCenter
and, should no use TextInput.width
in this case?
src/gui/tray/TalkReply.qml
Outdated
width: 24 | ||
height: parent.height | ||
opacity: 0.8 | ||
anchors.right: rectangleInput.right |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camilasan @mgallien @claucambra I have a feeling that we shouldn't mix anchors with width/height?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am actually not sure.
@@ -100,6 +100,17 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j | |||
|
|||
//need to know, specially for remote_share | |||
a._objectType = json.value("object_type").toString(); | |||
|
|||
// server 24: notification type chat contains conversationToken/messageId in object_type | |||
if (a._objectType == "chat" || a._objectType == "call") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camilasan just curious if "room"
should also be handled similarly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, I will have to check it. I noticed in your recent changes that you were checking for 'room'.
1d64965
to
55019b2
Compare
55019b2
to
c57d70f
Compare
c57d70f
to
fd79c80
Compare
please do not forget to clean history |
bfca41a
to
4fda021
Compare
src/gui/tray/TalkReplyTextField.qml
Outdated
@@ -37,6 +28,8 @@ Item { | |||
width: 250 | |||
|
|||
onAccepted: root.sendReplyMessage() | |||
onTextEdited: sendReplyMessageButton.enabled = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camilasan What if the text will get deleted after being edited? sendReplyMessageButton.enabled
will not get reset, right? This sounds a bit complicated. Why not add binding of Text.text !== ""
to sendReplyMessageButton.enabled
?
e44cae3
to
763b828
Compare
b98293d
to
0f49ebb
Compare
0f49ebb
to
2c79c61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2c79c61
to
01b27f0
Compare
01b27f0
to
cfda8ba
Compare
- Add struct TalkNotificationData to handle token and messageId. - Handle chat and call notifications with the new struct. - Add talk token and messageId to data roles in ActivityListModel. - Add Talk Reply component to the ActivityList. - User Loader to display the TalkReply component. - Move Talk Reply from ActivityItem to ActivityItemContent due to PR #4186. - Use TextField instead of Text. - Disable send reply button instead of changing border color when field is empty. Signed-off-by: Camila <hello@camila.codes>
cfda8ba
to
73bae8c
Compare
SonarCloud Quality Gate failed. |
AppImage file: Nextcloud-PR-4200-73bae8cd309e555d3caf932ffec31906c1f4b4cd-x86_64.AppImage |
/rebase |
#2908
TO DO:
To test this
You need Talk on the server - not sure yet against what version. I am testing against sermo.nextcloud com where they have the change Joas made - see #2908 (comment). If you only have Talk you can send a message to the chat, if you have sermo.nextcloud.com you can directly reply to a specific message.