Commit 21d20636 authored by Alexandre Lision's avatar Alexandre Lision

lrc: adapt to new im API

Refs #77651

Change-Id: Icdc6d6da899b1c1f39595c212e060d6804b59610
parent f23ec5a5
......@@ -175,7 +175,9 @@
/* make sure there is text to send */
NSString* text = self.message;
if (text && text.length > 0) {
call->addOutgoingMedia<Media::Text>()->send(QString::fromNSString(text));
QMap<QString, QString> messages;
messages["text/plain"] = QString::fromNSString(text);
call->addOutgoingMedia<Media::Text>()->send(messages);
// Empty the text after sending it
[self.messageField setStringValue:@""];
self.message = @"";
......
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