@ -47,7 +47,7 @@ message MessageRequestResponse {
message Content {
enum ExpirationType {
LEGACY = 0;
UNKNOWN = 0;
DELETE_AFTER_READ = 1;
DELETE_AFTER_SEND = 2;
}
@ -418,7 +418,7 @@ export async function innerHandleSwarmContentMessage(
const isLegacy = Boolean(
(!content.expirationType && !content.expirationTimer) ||
content.expirationType === SignalService.Content.ExpirationType.LEGACY
content.expirationType === SignalService.Content.ExpirationType.UNKNOWN
);
const isLegacyMessage = Boolean(
isLegacy && dataMessage.expireTimer && dataMessage.expireTimer > -1
@ -31,7 +31,7 @@ export class ExpirableMessage extends ContentMessage {
: this.expirationType === 'deleteAfterRead'
? SignalService.Content.ExpirationType.DELETE_AFTER_READ
: this.expirationType === 'legacy'
? SignalService.Content.ExpirationType.LEGACY
? SignalService.Content.ExpirationType.UNKNOWN
: undefined,
expirationTimer: this.expireTimer && this.expireTimer > -1 ? this.expireTimer : undefined,
});
@ -37,7 +37,7 @@ export abstract class ClosedGroupMessage extends ExpirableMessage {
this.expirationType === 'deleteAfterSend'
? SignalService.Content.ExpirationType.DELETE_AFTER_SEND
: !this.expirationType || this.expirationType === 'legacy'