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>2019-04-25 09:21:49 +0300
committerJoas Schilling <coding@schilljs.com>2019-04-25 09:21:49 +0300
commite8f37a9f7755bee6344846ecada7b9db9148bc2b (patch)
tree5ad31346f3f21d8d69ec4bb590535d3c0554ce39 /lib/Manager.php
parent6c911a6e296097af793c4ed795048a59be28c576 (diff)
Do not "load" conversations without a token
This is only a temporary solution. We should try to find out where the rooms origin from and then either delete them all together, or fix them. But since they have no token, you can't join them anyway and therefor wont miss them for now. Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Manager.php')
-rw-r--r--lib/Manager.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/Manager.php b/lib/Manager.php
index 9e7e4fd03..fd70f5731 100644
--- a/lib/Manager.php
+++ b/lib/Manager.php
@@ -87,6 +87,11 @@ class Manager {
$result = $query->execute();
while ($row = $result->fetch()) {
+ if ($row['token'] === null) {
+ // FIXME Temporary solution for the Talk6 release
+ continue;
+ }
+
$room = $this->createRoomObject($row);
$callback($room);
}
@@ -160,6 +165,11 @@ class Manager {
$result = $query->execute();
$rooms = [];
while ($row = $result->fetch()) {
+ if ($row['token'] === null) {
+ // FIXME Temporary solution for the Talk6 release
+ continue;
+ }
+
$room = $this->createRoomObject($row);
if ($participant !== null && isset($row['user_id'])) {
$room->setParticipant($row['user_id'], $this->createParticipantObject($room, $row));
@@ -202,6 +212,11 @@ class Manager {
throw new RoomNotFoundException();
}
+ if ($row['token'] === null) {
+ // FIXME Temporary solution for the Talk6 release
+ throw new RoomNotFoundException();
+ }
+
$room = $this->createRoomObject($row);
if ($participant !== null && isset($row['user_id'])) {
$room->setParticipant($row['user_id'], $this->createParticipantObject($room, $row));
@@ -252,6 +267,11 @@ class Manager {
throw new RoomNotFoundException();
}
+ if ($row['token'] === null) {
+ // FIXME Temporary solution for the Talk6 release
+ throw new RoomNotFoundException();
+ }
+
$room = $this->createRoomObject($row);
if ($participant !== null && isset($row['user_id'])) {
$room->setParticipant($row['user_id'], $this->createParticipantObject($room, $row));
@@ -287,6 +307,11 @@ class Manager {
throw new RoomNotFoundException();
}
+ if ($row['token'] === null) {
+ // FIXME Temporary solution for the Talk6 release
+ throw new RoomNotFoundException();
+ }
+
return $this->createRoomObject($row);
}
@@ -309,6 +334,11 @@ class Manager {
throw new RoomNotFoundException();
}
+ if ($row['token'] === null) {
+ // FIXME Temporary solution for the Talk6 release
+ throw new RoomNotFoundException();
+ }
+
return $this->createRoomObject($row);
}
@@ -333,6 +363,11 @@ class Manager {
throw new RoomNotFoundException();
}
+ if ($row['token'] === null) {
+ // FIXME Temporary solution for the Talk6 release
+ throw new RoomNotFoundException();
+ }
+
return $this->createRoomObject($row);
}
@@ -366,6 +401,11 @@ class Manager {
throw new RoomNotFoundException();
}
+ if ($row['token'] === null) {
+ // FIXME Temporary solution for the Talk6 release
+ throw new RoomNotFoundException();
+ }
+
$room = $this->createRoomObject($row);
$participant = $this->createParticipantObject($room, $row);
$room->setParticipant($row['user_id'], $participant);
@@ -419,6 +459,11 @@ class Manager {
throw new RoomNotFoundException();
}
+ if ($row['token'] === null) {
+ // FIXME Temporary solution for the Talk6 release
+ throw new RoomNotFoundException();
+ }
+
return $this->createRoomObject($row);
}