Skip to content
Snippets Groups Projects
Commit 5a41a8d1 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

conversation: fix possible crash when generate message

Change-Id: I43f1340e8d8e6f7f8421f4b7712b717b3853d0b6
parent 38a0ecbb
Branches
No related tags found
No related merge requests found
...@@ -638,7 +638,7 @@ typedef NS_ENUM(NSInteger, MessageSequencing) { ...@@ -638,7 +638,7 @@ typedef NS_ENUM(NSInteger, MessageSequencing) {
text = [text removeEmptyLinesAtBorders]; text = [text removeEmptyLinesAtBorders];
NSMutableAttributedString* msgAttString = NSMutableAttributedString* msgAttString =
[[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:text] [[NSMutableAttributedString alloc] initWithString:text
attributes:[self messageAttributes]]; attributes:[self messageAttributes]];
CGSize messageSize = [self sizeFor: text maxWidth:tableView.frame.size.width * 0.7]; CGSize messageSize = [self sizeFor: text maxWidth:tableView.frame.size.width * 0.7];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment