aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-notifications.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2022-02-05 15:15:05 +0100
committermousebot <mousebot@riseup.net>2022-02-05 15:15:05 +0100
commit7e21eeabc68102e4bae6c5729a69daf5b9e2aca4 (patch)
treedb1f1a6a9b5dbf520abd062733746af4fdbc045b /lisp/mastodon-notifications.el
parentab14b07e054bb72b4780ae36a16257b9301629d0 (diff)
message when notificiations--timeline returns nothing.
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r--lisp/mastodon-notifications.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el
index ce26924..5e3305a 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -238,8 +238,10 @@ ID is the notification's own id, which is attached as a property."
(defun mastodon-notifications--timeline (json)
"Format JSON in Emacs buffer."
- (mapc #'mastodon-notifications--by-type json)
- (goto-char (point-min)))
+ (if (equal json '[])
+ (message "Looks like you have no notifications for the moment.")
+ (mapc #'mastodon-notifications--by-type json)
+ (goto-char (point-min))))
(defun mastodon-notifications--get ()
"Display NOTIFICATIONS in buffer."