mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 08:35:16 -04:00
Added new compact style for chat.
Improved the HTML optimizer. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4867 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
55d53e6dd4
commit
602ae72d7d
59 changed files with 530 additions and 83 deletions
|
@ -370,7 +370,10 @@ void FriendsDialog::addChatMsg(bool incoming, bool history, const QString &name,
|
|||
type = ChatStyle::FORMATMSG_OUTGOING;
|
||||
}
|
||||
}
|
||||
QString formatMsg = style.formatMessage(type, name, incoming ? recvTime : sendTime, message, formatFlag);
|
||||
// Remove <p>'s from older RetroShare versions before 31.01.2012 (can be removed later)
|
||||
QString optimizedMessage = message;
|
||||
RsHtml::optimizeHtml(optimizedMessage);
|
||||
QString formatMsg = style.formatMessage(type, name, incoming ? recvTime : sendTime, optimizedMessage, formatFlag);
|
||||
|
||||
ui.msgText->append(formatMsg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue