MOBILE-2795 message: Expand option when selecting user from group info
parent
c67ac67270
commit
c457b6ea01
|
@ -266,7 +266,7 @@ export class AddonMessagesGroupConversationsPage implements OnInit, OnDestroy {
|
||||||
const conversation = this.findConversation(this.conversationId);
|
const conversation = this.findConversation(this.conversationId);
|
||||||
if (conversation) {
|
if (conversation) {
|
||||||
const option = this.getConversationOption(conversation);
|
const option = this.getConversationOption(conversation);
|
||||||
option.expanded = true;
|
this.expandOption(option);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -336,12 +336,14 @@ export class AddonMessagesGroupConversationsPage implements OnInit, OnDestroy {
|
||||||
return conversations.find((conv) => {
|
return conversations.find((conv) => {
|
||||||
return conv.id == conversationId;
|
return conv.id == conversationId;
|
||||||
});
|
});
|
||||||
} else if (this.individual.conversations) {
|
}
|
||||||
return this.individual.conversations.find((conv) => {
|
|
||||||
|
const conversations = (this.favourites.conversations || []).concat(this.individual.conversations || []);
|
||||||
|
|
||||||
|
return conversations.find((conv) => {
|
||||||
return conv.userid == userId;
|
return conv.userid == userId;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigate to contacts view.
|
* Navigate to contacts view.
|
||||||
|
|
Loading…
Reference in New Issue