Sync all contacts with only a specific device.

This may fix the issue where the sync message sending queue gets blocked because of sending full contact syncs to all devices.
This commit is contained in:
Mikunj Varsani
2019-11-11 12:47:43 +11:00
parent aea686c856
commit 12639b491f
4 changed files with 50 additions and 16 deletions

View File

@@ -81,8 +81,8 @@ public class MessageSender {
private enum MessageType { TEXT, MEDIA }
public static void syncAllContacts(Context context) {
ApplicationContext.getInstance(context).getJobManager().add(new MultiDeviceContactUpdateJob(context, true));
public static void syncAllContacts(Context context, Address recipient) {
ApplicationContext.getInstance(context).getJobManager().add(new MultiDeviceContactUpdateJob(context, recipient, true));
}
/**