feat(client): replyToThreadId field for Message

This commit is contained in:
teidesu 2021-07-25 21:01:38 +03:00
parent 7f112f51a2
commit 7775ff4eaa

View file

@ -348,6 +348,14 @@ export class Message {
return this.raw.replyTo?.replyToMsgId ?? null
}
/**
* For replies, ID of the thread (i.e. ID of the top message
* in the thread)
*/
get replyToThreadId(): number | null {
return this.raw.replyTo?.replyToTopId ?? null
}
/**
* Whether this message contains mention of the current user
*/