Commit a8b6b56f authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

conversation: send multiline message

Line break character does not supported by other platforms. Replace
it with new line character

Change-Id: Iea037ca80d661027e57ca8982cf94a374f2a54f7
parent 6a6d321e
......@@ -902,6 +902,9 @@ typedef NS_ENUM(NSInteger, MessageSequencing) {
- (IBAction)sendMessage:(id)sender {
NSString* text = self.message;
unichar separatorChar = NSLineSeparatorCharacter;
NSString *separatorString = [NSString stringWithCharacters:&separatorChar length:1];
text = [text stringByReplacingOccurrencesOfString: separatorString withString: @"\n"];
if (text && text.length > 0) {
auto* conv = [self getCurrentConversation];
convModel_->sendMessage(convUid_, std::string([text UTF8String]));
......
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