From 63520aff3190ad992470f27c90174e4df659c1f5 Mon Sep 17 00:00:00 2001
From: Thomas Hackl <hackl@data-quest.de>
Date: Wed, 12 Feb 2025 12:42:04 +0100
Subject: [PATCH] custom perform() method is not needed here

---
 MatrixPlugin.php | 16 ----------------
 plugin.manifest  |  3 +--
 2 files changed, 1 insertion(+), 18 deletions(-)

diff --git a/MatrixPlugin.php b/MatrixPlugin.php
index 938395c..5ed78b8 100644
--- a/MatrixPlugin.php
+++ b/MatrixPlugin.php
@@ -111,22 +111,6 @@ class MatrixPlugin extends StudIPPlugin implements StandardPlugin
         return null;
     }
 
-    public function perform($unconsumed_path) {
-        $range_id = Request::option('cid', Context::get()->id);
-
-        URLHelper::removeLinkParam('cid');
-        $dispatcher = new Trails_Dispatcher(
-            $this->getPluginPath(),
-            rtrim(PluginEngine::getLink($this, [], null), '/'),
-            'matrix_chat'
-        );
-        URLHelper::addLinkParam('cid', $range_id);
-
-        $dispatcher->current_plugin = $this;
-        $dispatcher->range_id       = $range_id;
-        $dispatcher->dispatch($unconsumed_path);
-    }
-
     /**
      * User is now member of a course, send invitation to Matrix room if necessary.
      *
diff --git a/plugin.manifest b/plugin.manifest
index c104c45..63ee491 100644
--- a/plugin.manifest
+++ b/plugin.manifest
@@ -1,8 +1,7 @@
 pluginname=Matrix-Chat
 pluginclassname=MatrixPlugin
 origin=data-quest
-version=1.4.7
+version=1.5
 screenshot=assets/images/matrix_logo.png
 description=Matrix chat for Stud.IP courses
 studipMinVersion=4.5
-studipMaxVersion=5.9.99
-- 
GitLab