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-07-17 17:45:57 +0300
committerJoas Schilling <coding@schilljs.com>2019-07-17 17:45:57 +0300
commita0d5a835a95e66a426887f5dc8c5ca3c27a83b3f (patch)
tree6b36c77e422b9486ac3e0916c5247e4ae689c01b /lib/Participant.php
parent9702156de88aeb2817e7664ee7d66e545ec0eccf (diff)
Add a new column to record who joined a call
This makes sure users that only joined the chat are not listed in the call summary Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Participant.php')
-rw-r--r--lib/Participant.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/Participant.php b/lib/Participant.php
index 1b94fc3d7..da7170234 100644
--- a/lib/Participant.php
+++ b/lib/Participant.php
@@ -65,6 +65,8 @@ class Participant {
private $isFavorite;
/** @var \DateTime|null */
private $lastMention;
+ /** @var \DateTime|null */
+ private $lastJoinedCall;
public function __construct(IDBConnection $db,
Room $room,
@@ -75,7 +77,8 @@ class Participant {
int $inCall,
int $notificationLevel,
bool $isFavorite,
- \DateTime $lastMention = null) {
+ \DateTime $lastMention = null,
+ \DateTime $lastJoinedCall = null) {
$this->db = $db;
$this->room = $room;
$this->user = $user;
@@ -86,6 +89,7 @@ class Participant {
$this->notificationLevel = $notificationLevel;
$this->isFavorite = $isFavorite;
$this->lastMention = $lastMention;
+ $this->lastJoinedCall = $lastJoinedCall;
}
public function getUser(): string {
@@ -127,6 +131,13 @@ class Participant {
return $this->lastMention;
}
+ /**
+ * @return \DateTime|null
+ */
+ public function getJoinedCall(): ?\DateTime {
+ return $this->lastJoinedCall;
+ }
+
public function isFavorite(): bool {
return $this->isFavorite;
}