mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
Handle sync request where no groups are sent
If a user has no groups, no group sync message is sent. This is a normal result that should result in a success event rather than a timeout. // FREEBIE
This commit is contained in:
@@ -39120,7 +39120,11 @@ textsecure.MessageSender.prototype = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onTimeout: function() {
|
onTimeout: function() {
|
||||||
this.dispatchEvent(new Event('timeout'));
|
if (this.contactSync || this.groupSync) {
|
||||||
|
this.dispatchEvent(new Event('success'));
|
||||||
|
} else {
|
||||||
|
this.dispatchEvent(new Event('timeout'));
|
||||||
|
}
|
||||||
this.cleanup();
|
this.cleanup();
|
||||||
},
|
},
|
||||||
cleanup: function() {
|
cleanup: function() {
|
||||||
|
|||||||
@@ -43,7 +43,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onTimeout: function() {
|
onTimeout: function() {
|
||||||
this.dispatchEvent(new Event('timeout'));
|
if (this.contactSync || this.groupSync) {
|
||||||
|
this.dispatchEvent(new Event('success'));
|
||||||
|
} else {
|
||||||
|
this.dispatchEvent(new Event('timeout'));
|
||||||
|
}
|
||||||
this.cleanup();
|
this.cleanup();
|
||||||
},
|
},
|
||||||
cleanup: function() {
|
cleanup: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user