     /**
         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

        } else {
            
            // Creating attributed text layout
            self.init(attributedText: text.attributedText, date: date, isOut: isOut, peer: peer, layoutKey: layoutKey)
            
            // Setting source code references
            self.sources = text.code

            
            // When not reusing force to relayout view
            needRelayout = true

            // Setting text's font size and color
            messageText.textColor = self.cellLayout.textColor
            
            if self.cellLayout.text != nil {

                // Setting text
                messageText.text = self.cellLayout.text
            } else {
                
                // Setting attributed text
                messageText.setText(self.cellLayout.attrText)
            }
            
            // Setting sender name if needed
