From c07c013a903300c6f1531f718b98b9ac7b0f0ab9 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Thu, 25 Nov 2021 13:51:43 +0530 Subject: [PATCH] refactor: specify pin mutation with boolean --- src/Types/Chat.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Types/Chat.ts b/src/Types/Chat.ts index 86e86ad..e5656cb 100644 --- a/src/Types/Chat.ts +++ b/src/Types/Chat.ts @@ -30,9 +30,8 @@ export type Chat = Omit & { export type ChatModification = { archive: boolean } | - { - /** pin at current timestamp, or provide timestamp of pin to remove */ - pin: number | null + { + pin: boolean } | { /** mute for duration, or provide timestamp of mute to remove*/