Commit c1bb185a authored by Edric Milaret's avatar Edric Milaret

im: adapt to lrc api change

Refs #77651

Change-Id: I359df0698e921f2f15ee04a7cb8a29965eff54da
parent 2d03da46
......@@ -75,7 +75,9 @@ InstantMessagingWidget::setMediaText(Call *call)
Media::Text *textMedia = call->addOutgoingMedia<Media::Text>();
connect(ui->messageInput, &QLineEdit::returnPressed, [=]()
{
textMedia->send(ui->messageInput->text());
QMap<QString, QString> messages;
messages["text/plain"] = ui->messageInput->text();
textMedia->send(messages);
ui->messageInput->clear();
});
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment