Commit fe8edab6 authored by DanmeiChen's avatar DanmeiChen

fix presence

parent 46c4337b
......@@ -63,8 +63,8 @@
- (void)onPresenceChanged:(NSNotification *)k {
LinphoneFriend *f = [[k.userInfo valueForKey:@"friend"] pointerValue];
// only consider event if it's about us
if (_contact && _nameLabel.text == PhoneMainView.instance.currentName) {
// only consider event if it's about us when not in ContactsListView
if (_contact && (PhoneMainView.instance.currentView == ContactsListView.compositeViewDescription || _nameLabel.text == PhoneMainView.instance.currentName)) {
if (!_contact.friend || f != _contact.friend) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment