Remove unnecessary non-null assertion from Message#send
This commit is contained in:
parent
ada70c4895
commit
b9ff4f07d3
1 changed files with 1 additions and 2 deletions
|
@ -2148,8 +2148,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
|
||||
// If we successfully sent to a user, we can remove our unregistered flag.
|
||||
result.successfulIdentifiers.forEach((identifier: string) => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const c = window.ConversationController.get(identifier)!;
|
||||
const c = window.ConversationController.get(identifier);
|
||||
if (c && c.isEverUnregistered()) {
|
||||
c.setRegistered();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue