Skip to content

Commit

Permalink
Fix for `has-chosen-reaction' msg matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
zevlg committed Mar 19, 2024
1 parent 0214a41 commit 6ec3da8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telega-match.el
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,9 @@ By default N is 1."
(define-telega-matcher msg has-chosen-reaction (msg &optional reaction-type)
"Matches if message has a reaction chosen by me."
(let ((chosen-reaction-types (telega-msg-chosen-reaction-types msg)))
(or (and reaction-type
(cl-find reaction-type chosen-reaction-types :test #'equal))
chosen-reaction-types)))
(if reaction-type
(cl-find reaction-type chosen-reaction-types :test #'equal)
chosen-reaction-types)))

;;; ellit-org: msg-temex
;; - is-reply-to-msg ::
Expand Down

0 comments on commit 6ec3da8

Please sign in to comment.