mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
Fix sending empty text with another content like file
This commit is contained in:
parent
9f4ba05e7f
commit
c1f1a1f6f0
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ CREATE_PARENT_MODEL_FUNCTION(deleteChatRoom)
|
|||
|
||||
void ChatRoomProxyModel::sendMessage(const QString &text){
|
||||
QString trim = text.trimmed();
|
||||
if (mChatRoomModel && !trim.isEmpty()){
|
||||
if (mChatRoomModel){
|
||||
trim.replace(QChar::LineSeparator, QChar::LineFeed);// U+2028 is not recognized on Android app.
|
||||
mChatRoomModel->sendMessage(trim);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue