Commit 7dbaab90 authored by Sébastien Blin's avatar Sébastien Blin

video_widget: fix candidate selection for pending contacts

Change-Id: Ic462764c6aff694168476bf3a622c4bfb141e7c2
Gitlab: #1198
parent 019f6703
......@@ -353,14 +353,9 @@ on_maximize(GObject *button, VideoWidget *self)
auto& callModel = (*priv->cpp->accountInfo)->callModel;
auto call = callModel->getCall(priv->cpp->callId);
QString callId = "";
auto conversations = (*priv->cpp->accountInfo)->conversationModel->allFilteredConversations();
for (const auto& conversation: conversations) {
if (conversation.participants.empty()) continue;
auto participant = conversation.participants.front();
if (uri == participant) {
callId = conversation.callId;
break;
}
if ((*priv->cpp->accountInfo)->profileInfo.uri != uri) {
auto participantCall = (*priv->cpp->accountInfo)->callModel->getCallFromURI(uri);
callId = participantCall.id;
}
switch (call.layout) {
case lrc::api::call::Layout::GRID:
......
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