Mark contact as registered when receiving message
This commit is contained in:
parent
dfbbd16e50
commit
8ac2d8fcec
1 changed files with 5 additions and 0 deletions
|
@ -3262,6 +3262,11 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
||||||
const conversationId = message.get('conversationId');
|
const conversationId = message.get('conversationId');
|
||||||
const GROUP_TYPES = window.textsecure.protobuf.GroupContext.Type;
|
const GROUP_TYPES = window.textsecure.protobuf.GroupContext.Type;
|
||||||
|
|
||||||
|
const fromContact = this.getContact();
|
||||||
|
if (fromContact) {
|
||||||
|
fromContact.setRegistered();
|
||||||
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
const conversation = window.ConversationController.get(conversationId)!;
|
const conversation = window.ConversationController.get(conversationId)!;
|
||||||
return conversation.queueJob(async () => {
|
return conversation.queueJob(async () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue