     /**
         NSAttributedString layout
     */
-    init(attributedText: NSAttributedString, date: Int64, isOut: Bool, peer: ACPeer, layoutKey: String = TextCellLayout.textKey) {
+    init(attributedText: NSAttributedString, textColor: UIColor, date: Int64, isOut: Bool, peer: ACPeer, layoutKey: String = TextCellLayout.textKey) {
         
         // Setting attributed text
         self.attrText = attributedText
+        self.textColor = textColor
         self.isUnsupported = false
         
         // Building padded text

            
            // When not reusing force to relayout view
            needRelayout = true
            
            if self.cellLayout.text != nil {
                // Setting text
                messageText.text = self.cellLayout.text
                
                // Setting text's font size and color
                if (isOut) {
                    messageText.textColor = MainAppTheme.bubbles.textOut
                } else {
                    messageText.textColor = MainAppTheme.bubbles.textIn
                }
            } else {
                // Setting attributed text
                messageText.setText(self.cellLayout.attrText)
                
                // No need to set text color and font as it is specified
                // in NSAttributed string
            }
            
            // Setting sender name if needed

    private static let parser = ARMarkdownParser(int: ARMarkdownParser_MODE_LITE)
    
    var text: String?
    var attrText: NSAttributedString?
    var textColor: UIColor
    
    var isUnsupported: Bool = false
    var textSizeWithPadding: CGSize
