remove SESSION_REQUEST flag from DataMessage. now in envelope

This commit is contained in:
Audric Ackermann 2020-07-02 09:46:55 +10:00
parent 847db5b43a
commit f3ae798b12
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4
2 changed files with 0 additions and 4 deletions

View File

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

View File

@ -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;