Commit 690293a5 authored by Quentin Muret's avatar Quentin Muret

Conversation : crash of the application when loading certain images now fixed

Change-Id: Ia22b6eefc5aae016e8501e7d590b6eaddae983f1
parent fb89cdd2
......@@ -338,10 +338,14 @@ class MessageCell: UITableViewCell, NibReusable {
// When the message contains only emoji
if item.content.containsOnlyEmoji {
self.bubble.backgroundColor = UIColor.ringMsgCellEmoji
self.avatarBotomAlignConstraint.constant = -14
if (self.avatarBotomAlignConstraint != nil) {
self.avatarBotomAlignConstraint.constant = -14
}
} else {
self.bubble.backgroundColor = UIColor.ringMsgCellReceived
self.avatarBotomAlignConstraint.constant = -1
if (self.avatarBotomAlignConstraint != nil) {
self.avatarBotomAlignConstraint.constant = -1
}
}
// received message avatar
Observable<(Data?, String)>.combineLatest(conversationViewModel.profileImageData.asObservable(),
......
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