"Log message under ID.
Put MESSAGE at the end of log buffer if OPTION is non-nil.
Mark MESSAGE unread if MARK-UNREAD is non-nil"
- (unless (or (eq (current-buffer) emchat-log-buffer)
- (frame-visible-p emchat-frame))
+ (unless (eq (selected-frame) emchat-frame)
(emchat-notify id message))
(if (and option (buffer-live-p emchat-log-buffer))
(with-current-buffer emchat-log-buffer