MOBILE-2795 message: Expand option when selecting user from group info

main
Pau Ferrer Ocaña 2018-12-21 16:38:33 +01:00
parent c67ac67270
commit c457b6ea01
1 changed files with 7 additions and 5 deletions

View File

@ -266,7 +266,7 @@ export class AddonMessagesGroupConversationsPage implements OnInit, OnDestroy {
const conversation = this.findConversation(this.conversationId);
if (conversation) {
const option = this.getConversationOption(conversation);
option.expanded = true;
this.expandOption(option);
return;
}
@ -336,12 +336,14 @@ export class AddonMessagesGroupConversationsPage implements OnInit, OnDestroy {
return conversations.find((conv) => {
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;
});
}
}
/**
* Navigate to contacts view.