         }
         
         showActionSheet(builder.items, cancelButton: "AlertCancel", destructButton: nil, sourceView: self.leftButton, sourceRect: self.leftButton.bounds, tapClosure: builder.tapClosure)
+        
+        self.rightButton.layoutIfNeeded()
     }
  
-    // Completition
+    //MARK: - Completition
+    
     
     override func didChangeAutoCompletionPrefix(prefix: String!, andWord word: String!) {
         if UInt(self.peer.peerType.ordinal()) == ACPeerType.GROUP.rawValue {

        }
    }
    
    // Text bar actions
    
    override func textWillUpdate() {
        super.textWillUpdate();

        Actor.onTypingWithPeer(peer);
    }
    
    override func textDidUpdate(animated: Bool) {
        super.textDidUpdate(animated)

            } else {
                self.audioButton.hidden = true;
                
                self.rightButton.tintColor = appStyle.chatAttachColor
                self.rightButton.setImage(UIImage.bundled("aa_micbutton"), forState: UIControlState.Normal)
                self.rightButton.setTitle("", forState: UIControlState.Normal)
                self.rightButton.enabled = true
                
