mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Request profile fetches on main thread.
This commit is contained in:
parent
ec2478645d
commit
3729398507
2 changed files with 6 additions and 2 deletions
|
@ -1483,7 +1483,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
(unsigned long) envelope.sourceDevice);
|
||||
|
||||
[OWSDevicesService refreshDevices];
|
||||
[self.profileManager fetchLocalUsersProfile];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self.profileManager fetchLocalUsersProfile];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -225,6 +225,8 @@ public class RequestMaker: NSObject {
|
|||
// mark recipient as .enabled.
|
||||
udManager.setUnidentifiedAccessMode(.enabled, recipientId: recipientId)
|
||||
}
|
||||
profileManager.fetchProfile(forRecipientId: recipientId)
|
||||
DispatchQueue.main.async {
|
||||
self.profileManager.fetchProfile(forRecipientId: self.recipientId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue