Skip to content

Commit

Permalink
Merge branch 'fix-9'
Browse files Browse the repository at this point in the history
  • Loading branch information
discoveryjames committed Sep 1, 2024
2 parents 8b3c48c + 65b810d commit ccfa214
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Forms/Components/GazeBanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ public function takeControl()
}
}

Cache::put('filament-gaze-' . $identifier, $curViewers, now()->addSeconds($this->pollTimer * 2));
Cache::put('filament-gaze-' . $identifier, $curViewers, now()->addSeconds(max([5, $this->pollTimer * 2])));

}

public function getIdentifier()
Expand Down Expand Up @@ -224,7 +225,7 @@ function () {
'id' => auth()->guard($authGuard)->id(),
'guard' => $authGuard,
'name' => $user?->name ?? $user?->getFilamentName() ?? 'Unknown', // Possibly need to account for more?
'expires' => now()->addSeconds($this->pollTimer * 2),
'expires' => now()->addSeconds(max([5, $this->pollTimer * 2])),
'has_control' => $this->isLockable && ($lockState || (count($curViewers) === 0)),
];

Expand Down

0 comments on commit ccfa214

Please sign in to comment.