From e35b7a204ebd67674f816b5e86a245b267132fbf Mon Sep 17 00:00:00 2001
From: Thomas Hackl <hackl@data-quest.de>
Date: Mon, 20 Sep 2021 16:52:08 +0200
Subject: [PATCH] post room message on news creation or update

---
 MatrixPlugin.php | 3 ++-
 vendor/libpatrix | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/MatrixPlugin.php b/MatrixPlugin.php
index 7f0728e..92ab523 100644
--- a/MatrixPlugin.php
+++ b/MatrixPlugin.php
@@ -206,7 +206,8 @@ class MatrixPlugin extends StudIPPlugin implements StandardPlugin
                 MatrixClient::get()->postMessage(
                     MatrixAccount::requireSystemAccount(),
                     MatrixRoom::find($range->course->id)->getLinkedRoom(),
-                    $news->topic
+                    'Ankündigung: ' . $news->topic . '' . strip_tags($news->body),
+                    '<strong>Ankündigung: ' . $news->topic . '</strong><br>' . $news->body
                 );
             }
         }
diff --git a/vendor/libpatrix b/vendor/libpatrix
index 56893e8..19fd4fc 160000
--- a/vendor/libpatrix
+++ b/vendor/libpatrix
@@ -1 +1 @@
-Subproject commit 56893e89418f3cc7bb78a73a421055ad56fc619c
+Subproject commit 19fd4fcb03af057641cd7f7e30264957ce3b2378
-- 
GitLab