refactor: specify pin mutation with boolean

This commit is contained in:
Adhiraj Singh
2021-11-25 13:51:43 +05:30
parent 09b3815d89
commit c07c013a90

View File

@@ -30,9 +30,8 @@ export type Chat = Omit<proto.IConversation, 'messages'> & {
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*/