Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-01 16:48:03 +0300
committerJoas Schilling <coding@schilljs.com>2021-12-01 16:57:31 +0300
commitab6dc43ad6a7d49f1d781051eec716e2c2b809ab (patch)
tree1ff3a4df03e8abfae31321c6c31b07e8d14e72eb /lib
parentee57c974772ac48f177e44a3b84c2bc0bdb6ed70 (diff)
Expore message id for desktop client and notifications quick reply
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Notification/Notifier.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php
index e42dcb29f..e1100880f 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -392,6 +392,9 @@ class Notifier implements INotifier {
if (!$this->notificationManager->isPreparingPushNotification()) {
$notification->setParsedMessage($parsedMessage);
$notification->setRichMessage($message->getMessage(), $message->getMessageParameters());
+
+ // Forward the message ID as well to the clients, so they can quote the message on replies
+ $notification->setObject('chat', $notification->getObjectId() . '/' . $comment->getId());
}
$richSubjectParameters = [