   }
   
   var bubbleContentInset: UIEdgeInsets {
-    if defaultLayout.isOutGoingMessage {
-      return UIEdgeInsets(top: 10, left: 30, bottom: 10, right: 55)
-    } else {
-      return UIEdgeInsets(top: 10, left: 35, bottom: 10, right: 30)
-    }
-    
+    return defaultLayout.bubbleContentInset
   }
+  
 }
 
 

    
    return textSize
  }
}



    let layout = IMUIMessageCellLayout(isOutGoingMessage: isOutGoing,
                                       isNeedShowTime: false,
                                       bubbleContentSize: MyMessageModel.calculateTextContentSize(text: text),
                                       bubbleContentInset: MyMessageModel.bubbleContentInset(isOutGoing: isOutGoing))
    let myLayout = MyMessageCellLayout(defaultLayout: layout)
    
    self.init(msgId: "", fromUser: MyUser(), isOutGoing: isOutGoing, date: Date(), status: .success, type: .text, text: text, mediaPath: "", layout:  myLayout)
