         timeAgoLabel.text = nil
 
         countOfUnreadMessages = 0
+    }
+
+    @objc private func tapAvatar(sender: UITapGestureRecognizer) {
+        println("tapAvatar")
+        guard let user = user else { return }
+        tapAvatarAction?(user: user)
     }
 
 //    func updateUIButAvatar(sender: NSNotification) {

        }
    }

    @IBOutlet weak var avatarImageView: UIImageView!
    @IBOutlet weak var avatarImageViewWidthConstraint: NSLayoutConstraint!

    @IBOutlet weak var redDotImageView: UIImageView!


            if let conversationWithFriend = conversation.withFriend {

                user = conversationWithFriend

                self.nameLabel.text = conversationWithFriend.nickname

                let userAvatar = UserAvatar(userID: conversationWithFriend.userID, avatarURLString: conversationWithFriend.avatarURLString, avatarStyle: miniAvatarStyle)
