remove SESSION_REQUEST flag from DataMessage. now in envelope

pull/1205/head
Audric Ackermann 5 years ago
parent 847db5b43a
commit f3ae798b12
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -142,7 +142,6 @@ message DataMessage {
PROFILE_KEY_UPDATE = 4;
SESSION_RESTORE = 64;
UNPAIRING_REQUEST = 128;
SESSION_REQUEST = 256;
}
message Quote {

@ -344,8 +344,6 @@ export function processDecrypted(envelope: EnvelopePlus, decrypted: any) {
} else if (decrypted.flags & FLAGS.PROFILE_KEY_UPDATE) {
decrypted.body = '';
decrypted.attachments = [];
} else if (decrypted.flags & FLAGS.SESSION_REQUEST) {
// do nothing
} else if (decrypted.flags & FLAGS.SESSION_RESTORE) {
// do nothing
} else if (decrypted.flags & FLAGS.UNPAIRING_REQUEST) {
@ -569,7 +567,6 @@ export async function handleMessageEvent(event: any): Promise<void> {
const {
PROFILE_KEY_UPDATE,
SESSION_REQUEST,
SESSION_RESTORE,
} = SignalService.DataMessage.Flags;

Loading…
Cancel
Save