about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-05-12T13·17+0200
committertazjin <mail@tazj.in>2021-05-12T13·25+0000
commita989a91f9f13950f50a12c1374bbdccb42cac8c8 (patch)
treec1d32fe4486dafc75d532939b1cd845f66a62019
parentebf630194148b1f15b6c0144ce868a45fce5cd47 (diff)
chore(tazjin/emacs): Ignore messages from blocked senders in telega r/2584
telega actually supports this for group chats, too, which is very
pleasant.

https://zevlg.github.io/telega.el/#client-side-messages-ignoring

Change-Id: I510207c2de19f748359168d460a25aa9c4e45975
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3111
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
-rw-r--r--users/tazjin/emacs/config/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/users/tazjin/emacs/config/init.el b/users/tazjin/emacs/config/init.el
index b37fab81faf7..ec9f3deae5dc 100644
--- a/users/tazjin/emacs/config/init.el
+++ b/users/tazjin/emacs/config/init.el
@@ -206,7 +206,9 @@
 
 (use-package telega
   :bind (:map global-map ("s-t" . telega))
-  :config (telega-mode-line-mode 1))
+  :config
+  (telega-mode-line-mode 1)
+  (add-hook 'telega-msg-ignore-predicates 'telega-msg-from-blocked-sender-p))
 
 (use-package terraform-mode)
 (use-package toml-mode)