aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-05-22 20:07:01 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-05-22 20:07:01 +0200
commitf04121e1f8273fccdfc76d9106d0d132d5c701d1 (patch)
tree1553b4da32e0a04774f4cce4ad12bb86778fd64d /lisp/mastodon-toot.el
parent5129ca340a2e63e60f29ae2194d5e48906b15fcb (diff)
reload on posting if prev view was thread. FIX #555.
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index aff201d..f3b8e21 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -912,7 +912,15 @@ instance to edit a toot."
(mastodon-views--cancel-scheduled-toot
scheduled-id :no-confirm))
(mastodon-toot--restore-previous-window-config prev-window-config)
- (when edit-id
+ ;; reload previous view in certain cases:
+ ;; we reload: - when we have been editing
+ ;; - when we are in thread view
+ ;; - ?
+ ;; (we don't necessarily want to reload in every posting case
+ ;; as it can sometimes be slow and we may still lose our place
+ ;; in a timeline.)
+ (when (or edit-id
+ (equal 'thread (mastodon-tl--get-buffer-type)))
(let ((pos (marker-position (cadr prev-window-config))))
(mastodon-tl--reload-timeline-or-profile pos))))))))))