Commit 4c70387b authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: return value for contact name

Return empty string if could not find contact

Change-Id: Ia48a6703ca79f07fa01ee605a9a94d348ed38f02
parent f631742b
......@@ -45,6 +45,7 @@ static inline NSString* bestIDForConversation(const lrc::api::conversation::Info
}
} catch (std::out_of_range& e) {
NSLog(@"bestIDForConversation: getContact - out of range");
return @"";
}
}
......@@ -96,6 +97,7 @@ static inline NSString* bestNameForConversation(const lrc::api::conversation::In
return @(alias.c_str());
} catch (std::out_of_range& e) {
NSLog(@"bestNameForConversation: getContact - out of range");
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