docs: timestamp of the
This commit is contained in:
parent
0ee5f0a863
commit
600ff6e4a4
1 changed files with 1 additions and 2 deletions
|
@ -4,8 +4,7 @@ import { MAX_TIMEOUT_DURATION } from "../../../data/Mutes";
|
|||
* Since timeouts have a limited duration (max 28d) but we support mutes longer than that,
|
||||
* the timeouts are applied for a certain duration at first and then renewed as necessary.
|
||||
* This function returns the initial end time for a timeout.
|
||||
* @param muteTime Time to mute for in ms
|
||||
* @return - Timestamp of the
|
||||
* @return - Timeout expiry timestamp
|
||||
*/
|
||||
export function getTimeoutExpiryTime(muteExpiresAt: number | null | undefined): number {
|
||||
if (muteExpiresAt && muteExpiresAt <= MAX_TIMEOUT_DURATION) {
|
||||
|
|
Loading…
Add table
Reference in a new issue