fixed proper setting of "from" field when heterogeneous destinations are used

This commit is contained in:
csoler 2022-12-03 23:45:31 +01:00
parent 8185dba0d8
commit a7570b70eb
2 changed files with 24 additions and 20 deletions

View file

@ -670,7 +670,7 @@ void MessageWidget::fill(const std::string &msgId)
// link.createMessage(ownId, "");
// }
if(msgInfo.msgflags & RS_MSG_DISTANT) // distant message
if(msgInfo.from.type()==Rs::Msgs::MsgAddress::MSG_ADDRESS_TYPE_RSGXSID) // distant message
{
tooltip_string = PeerDefs::rsidFromId(msgInfo.from.toGxsId()) ;
link = RetroShareLink::createMessage(msgInfo.from.toGxsId(), "");