diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-20 17:11:08 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-02-02 15:52:26 +0300 |
commit | 919a3e9c1ebd8bb60ab2ffadd05aa1efcef106b1 (patch) | |
tree | eaadf917e396d5dfa51b2fed68d3d628df0f761d | |
parent | 0df02af770637bd4d459515c28ce6516a8fa5d87 (diff) |
Don't allow replying to deleted messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Model/Message.php | 1 |
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]); } |