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 = export type ChatModification =
{ archive: boolean } | { archive: boolean } |
{ {
/** pin at current timestamp, or provide timestamp of pin to remove */ pin: boolean
pin: number | null
} | } |
{ {
/** mute for duration, or provide timestamp of mute to remove*/ /** mute for duration, or provide timestamp of mute to remove*/