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:
authorVitor Mattos <vitor@php.rio>2022-06-02 18:34:34 +0300
committerVitor Mattos <vitor@php.rio>2022-06-30 21:01:29 +0300
commiteb91f78aeda1b77d21e25304121685471667faf6 (patch)
tree10f71eb4a47dbcd703c261f58a20186f424ae526
parent0c5b04751848ee12f2fffaf3522d747c8de7ac0c (diff)
Removed the system message to sinalize when the message was expired.
Signed-off-by: Vitor Mattos <vitor@php.rio>
-rw-r--r--lib/Chat/ChatManager.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/Chat/ChatManager.php b/lib/Chat/ChatManager.php
index 7683357e6..6845a49cc 100644
--- a/lib/Chat/ChatManager.php
+++ b/lib/Chat/ChatManager.php
@@ -710,7 +710,6 @@ class ChatManager {
$ids = $this->commentsManager->getMessageIdsByRoomIdInDateInterval($roomId, $min, $max);
if (!empty($ids)) {
- $this->reportDeletedMessagesIds($room, $ids);
$this->deleteMessagesByIds($ids);
}
return $ids;
@@ -746,20 +745,4 @@ class ChatManager {
);
$delete->executeStatement();
}
-
- private function reportDeletedMessagesIds(Room $chat, array $ids): void {
- foreach ($ids as $id) {
- $this->addSystemMessage(
- $chat,
- 'message_expire_expired',
- 'message_expire_expired',
- json_encode(['message' => 'message_deleted', 'parameters' => ['message' => $id]]),
- $this->timeFactory->getDateTime(),
- false,
- null,
- $id,
- true
- );
- }
- }
}