lrc: adapt to new im API
Refs #77651
Change-Id: Icdc6d6da899b1c1f39595c212e060d6804b59610
diff --git a/src/ChatVC.mm b/src/ChatVC.mm
index b23cfb8..fce48a3 100644
--- a/src/ChatVC.mm
+++ b/src/ChatVC.mm
@@ -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 = @"";