Perform a contact sync with every directory refresh

This commit is contained in:
Moxie Marlinspike 2018-01-04 11:56:55 -08:00
parent 8bba45f396
commit b307980d8c

View File

@ -58,7 +58,7 @@ public class DirectoryHelper {
List<Address> newlyActiveUsers = refreshDirectory(context, AccountManagerFactory.createManager(context)); List<Address> newlyActiveUsers = refreshDirectory(context, AccountManagerFactory.createManager(context));
if (!newlyActiveUsers.isEmpty() && TextSecurePreferences.isMultiDevice(context)) { if (TextSecurePreferences.isMultiDevice(context)) {
ApplicationContext.getInstance(context) ApplicationContext.getInstance(context)
.getJobManager() .getJobManager()
.add(new MultiDeviceContactUpdateJob(context)); .add(new MultiDeviceContactUpdateJob(context));