mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 03:36:58 -04:00
Merge remote-tracking branch 'g1o/silent_initiate_distant_chat_api' into qml_app_chat_aesthetic
This commit is contained in:
commit
6f718bb6f4
1 changed files with 12 additions and 10 deletions
|
@ -416,10 +416,12 @@ void ChatHandler::tick()
|
||||||
else if(msg.chat_id.isDistantChatId())
|
else if(msg.chat_id.isDistantChatId())
|
||||||
{
|
{
|
||||||
RsIdentityDetails details;
|
RsIdentityDetails details;
|
||||||
DistantChatPeerInfo dcpinfo ;
|
DistantChatPeerInfo dcpinfo;
|
||||||
|
|
||||||
if(!gxs_id_failed && rsMsgs->getDistantChatStatus(msg.chat_id.toDistantChatId(),dcpinfo)
|
if( !gxs_id_failed &&
|
||||||
&& mRsIdentity->getIdDetails(msg.incoming? dcpinfo.to_id: dcpinfo.own_id, details))
|
rsMsgs->getDistantChatStatus(
|
||||||
|
msg.chat_id.toDistantChatId(), dcpinfo ) &&
|
||||||
|
mRsIdentity->getIdDetails(dcpinfo.to_id, details) )
|
||||||
{
|
{
|
||||||
info.remote_author_id = details.mId.toStdString();
|
info.remote_author_id = details.mId.toStdString();
|
||||||
info.remote_author_name = details.mNickname;
|
info.remote_author_name = details.mNickname;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue