mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Enabled on Private Chat to display for the status string smileys, when there is smiley codes used.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4186 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
cd8188bf09
commit
ed3fa92096
1 changed files with 3 additions and 1 deletions
|
@ -1237,6 +1237,7 @@ void PopupChatDialog::updateStatus(const QString &peer_id, int status)
|
|||
void PopupChatDialog::updatePeersCustomStateString(const QString& peer_id, const QString& status_string)
|
||||
{
|
||||
std::string stdPeerId = peer_id.toStdString();
|
||||
QString status_text;
|
||||
|
||||
if (stdPeerId == dialogId) {
|
||||
// the peers status string has changed
|
||||
|
@ -1244,7 +1245,8 @@ void PopupChatDialog::updatePeersCustomStateString(const QString& peer_id, const
|
|||
ui.statusmessagelabel->hide();
|
||||
} else {
|
||||
ui.statusmessagelabel->show();
|
||||
ui.statusmessagelabel->setText(status_string);
|
||||
status_text = RsHtml::formatText(QString(status_string), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS);
|
||||
ui.statusmessagelabel->setText(status_text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue