Fix for Android : it doesn't understand paragraph ans line separators.

This commit is contained in:
Julien Wadel 2023-06-16 17:37:24 +02:00
parent 6797b155ae
commit 2923ce471f

View file

@ -103,6 +103,7 @@ void ChatRoomProxyModel::sendMessage(const QString &text){
QString trim = text.trimmed();
if (mChatRoomModel){
trim.replace(QChar::LineSeparator, QChar::LineFeed);// U+2028 is not recognized on Android app.
trim.replace(QChar::ParagraphSeparator, QChar::LineFeed);// U+2029 is not recognized on Android app.
mChatRoomModel->sendMessage(trim);
}
}