@ -820,10 +832,10 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
fromSync?: boolean;
shouldCommit?: boolean;
existingMessage?: MessageModel;
}):Promise<void>{
}):Promise<boolean>{
if(this.isPublic()){
window.log.warn("updateExpireTimer() Disappearing messages aren't supported in communities");
return;
returnfalse;
}
letexpirationMode=providedDisappearingMode;
letexpireTimer=providedExpireTimer;
@ -844,7 +856,7 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
'WIP: updateExpireTimer() This is an outdated disappearing message setting',
`fromSync: ${fromSync}`
);
return;
returnfalse;
}
// NOTE: We don' mind if the message is the same, we still want to update the conversation because we want to show visible control messages we receive an ExpirationTimerUpdate
@ -858,7 +870,7 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
fromSync?'config/sync ':''
}messageaswealreadyhavethesameoneset.`
);
return;
returnfalse;
}
constisOutgoing=Boolean(!receivedAt);
@ -935,16 +947,22 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
window.log.debug(
`WIP: updateExpireTimer() We dont send an ExpireTimerUpdate because this was a remote change receivedAt: ${receivedAt} fromSync: ${fromSync}`
// make sure to write the changes to the database now as the `AvatarDownloadJob` triggered by updateOurProfileLegacyOrViaLibSession might take some time before getting run
@ -391,7 +395,7 @@ async function handleContactsUpdate(result: IncomingConfResult): Promise<Incomin