Skip to content

Commit 51a7c7b

Browse files
authored
Merge pull request #259 from zevlg/master
Merge 0.7.15 into releases
2 parents f878585 + 72b8d1f commit 51a7c7b

32 files changed

+1333
-583
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ liberapay: # Replace with a single Liberapay username
99
issuehunt: # Replace with a single IssueHunt username
1010
otechie: # Replace with a single Otechie username
1111
open_collective: telega
12-
custom: ['https://www.donationalerts.com/r/zevlg']

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ comprehensive documentation.
77

88
**This project is developed on two primary branches. The 'releases' branch
99
is kept in compatibility with TDLib major releases. The 'master' branch is
10-
for developmental purposes, and utilizes unstable features in TDLib.
11-
If you are using a Git checkout solely for runtime, use the 'releases'
12-
branch.**
13-
10+
for developmental purposes, and utilizes unstable features in TDLib.**
1411

1512
---
1613

@@ -63,7 +60,7 @@ In some random order:
6360
- [x] Multiple accounts
6461
- [ ] Traffic control, see [telega#62](https://github.com/zevlg/telega.el/issues/62)
6562
- [x] [TranslationsPlatform](https://translations.telegram.org) support (PARTLY)
66-
- [x] Message scheduling, reminders [PARTLY]
63+
- [x] Message scheduling, Reminders
6764
- [ ] Cloud themes, see [TDLib#691](https://github.com/tdlib/td/issues/691)
6865
- [x] Telegram Folders (since TDLib 1.6.6)
6966
- [x] Disable/Enable message notification on receiver side
@@ -87,15 +84,15 @@ And much more.
8784

8885
Root buffer screen:
8986

90-
![screen15](https://zevlg.github.io/telega/screen-15.png)
87+
![screen15](https://zevlg.github.io/telega/telega-root-v0.7.9.png)
9188

9289
Chat in [@emacs_en](https://t.me/emacs_en "emacs_en") group:
9390

9491
![screen11](https://zevlg.github.io/telega/screen-11.png)
9592

96-
Attaching funny cat sticker:
93+
Dashboard with Emacs Stories and important chats:
9794

98-
![screen12](https://zevlg.github.io/telega/screen-12.png)
95+
![dashboard](https://zevlg.github.io/telega/emacs-stories-dashboard.png)
9996

10097
# Starting with telega.el
10198

contrib/telega-mnz.el

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,15 +374,18 @@ Return edited code as string."
374374
(not (telega--tl-get msg :can_be_edited)))
375375
))
376376

377-
(defun telega-mnz-msg-edit (msg)
377+
(defun telega-mnz-msg-edit (msg &optional edit-as-is)
378378
"Command to edit message MSG in a telega-mnz aware way."
379-
(interactive (list (telega-msg-at (point))))
379+
(interactive (list (telega-msg-at (point)) current-prefix-arg))
380380

381381
(if-let* ((mnz-cb (telega-mnz--msg-code-block-at msg))
382-
(edit-p (or (when (eq telega-mnz-edit-code-block 'query)
383-
(y-or-n-p (format "Edit «%s» code block? "
384-
(plist-get mnz-cb :mode))))
385-
telega-mnz-edit-code-block)))
382+
(edit-p
383+
(if (eq telega-mnz-edit-code-block 'query)
384+
(y-or-n-p (format "%s «%s» code block? (`n' to edit message)"
385+
(if (plist-get msg :can_be_edited)
386+
"Edit" "View")
387+
(plist-get mnz-cb :mode)))
388+
telega-mnz-edit-code-block)))
386389
(if-let* ((msg-fmt-text (telega--tl-get msg :content :text))
387390
(new-code (telega-mnz--msg-code-block-edit msg mnz-cb))
388391
(cb-ent (plist-get mnz-cb :ent))
@@ -401,7 +404,7 @@ Return edited code as string."
401404
(ding))
402405

403406
;; Default behaviour
404-
(telega-msg-edit msg)))
407+
(telega-msg-edit msg edit-as-is)))
405408

406409
(defun telega-mnz--chatbuf-attach-internal (language code)
407410
"Attach CODE of LANGUAGE to the chatbuf input."

0 commit comments

Comments
 (0)