fixed small bug that prevented online status in chat window to be updated

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6449 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-06-20 20:19:10 +00:00
parent 6b0594dfe1
commit b8239abf40

View File

@ -865,10 +865,10 @@ void ChatWidget::updateStatus(const QString &peer_id, int status)
// the peers status has changed // the peers status has changed
QString peerName ; QString peerName ;
uint32_t status ; uint32_t stts ;
std::string pgp_id ; std::string pgp_id ;
if(rsMsgs->getDistantChatStatus(peerId,status,pgp_id)) if(rsMsgs->getDistantChatStatus(peerId,stts,pgp_id))
peerName = QString::fromUtf8(rsPeers->getPeerName(pgp_id).c_str()); peerName = QString::fromUtf8(rsPeers->getPeerName(pgp_id).c_str());
else else
peerName = QString::fromUtf8(rsPeers->getPeerName(peerId).c_str()); peerName = QString::fromUtf8(rsPeers->getPeerName(peerId).c_str());