docs: timestamp of the

This commit is contained in:
Dragory 2023-04-01 20:11:40 +03:00
parent 0ee5f0a863
commit 600ff6e4a4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -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) {