mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 20:12:29 -04:00
- ported commit from v0.4.x to integrate new RsAvatarItem code
- suppressed compatibility with old avatar transmition code - added code for storing and sending a custom status string (for e.g. saying "I'm not here now") in p3ChatService - added code for sending group chat status messages "peer is typing". Not fully functionnal yet. Warnings: - this commit breaks the compatibility for avatar transmission - the new avatar transmission is not fully working yet git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1696 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
dfee01d4d4
commit
396058c665
15 changed files with 388 additions and 112 deletions
|
@ -683,13 +683,17 @@ void PeersDialog::configurefriend()
|
|||
ConfCertDialog::show(getPeerRsCertId(getCurrentPeer()));
|
||||
}
|
||||
|
||||
void PeersDialog::updatePeerStatusString(const QString& peer_id,const QString& status_string)
|
||||
void PeersDialog::updatePeerStatusString(const QString& peer_id,const QString& status_string,bool is_private_chat)
|
||||
{
|
||||
RshareSettings settings;
|
||||
// uint chatflags = settings.getChatFlags();
|
||||
|
||||
PopupChatDialog *pcd = getPrivateChat(peer_id.toStdString(),rsPeers->getPeerName(peer_id.toStdString()), 0);
|
||||
pcd->updateStatusString(status_string);
|
||||
if(is_private_chat)
|
||||
{
|
||||
PopupChatDialog *pcd = getPrivateChat(peer_id.toStdString(),rsPeers->getPeerName(peer_id.toStdString()), 0);
|
||||
pcd->updateStatusString(status_string);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << "Updating public chat msg from peer " << rsPeers->getPeerName(peer_id.toStdString()) << ": " << status_string.toStdString() << std::endl ;
|
||||
}
|
||||
}
|
||||
|
||||
void PeersDialog::insertChat()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue