Skip unsealed typing messages with active challenges

This commit is contained in:
ayumi-signal 2024-07-19 15:06:44 -07:00 committed by GitHub
parent b8ef9e5cbc
commit c93a211595
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 0 deletions

View file

@ -334,6 +334,10 @@ export class ChallengeHandler {
);
}
public areAnyRegistered(): boolean {
return this.registeredConversations.size > 0;
}
public isRegistered(conversationId: string): boolean {
return this.registeredConversations.has(conversationId);
}