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
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-01-20 17:11:08 +0300
committerJoas Schilling <coding@schilljs.com>2021-02-02 15:52:26 +0300
commit919a3e9c1ebd8bb60ab2ffadd05aa1efcef106b1 (patch)
treeeaadf917e396d5dfa51b2fed68d3d628df0f761d
parent0df02af770637bd4d459515c28ce6516a8fa5d87 (diff)
Don't allow replying to deleted messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/Model/Message.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Model/Message.php b/lib/Model/Message.php
index 97e63e8de..49ed61e98 100644
--- a/lib/Model/Message.php
+++ b/lib/Model/Message.php
@@ -158,6 +158,7 @@ class Message {
public function isReplyable(): bool {
return $this->getMessageType() !== 'system' &&
$this->getMessageType() !== 'command' &&
+ $this->getMessageType() !== 'comment_deleted' &&
\in_array($this->getActorType(), [Attendee::ACTOR_USERS, Attendee::ACTOR_GUESTS]);
}