mirror of https://codeberg.org/cage/tinmop/
- fixed macro 'with-sending-message-data' to include the new parameter: 'language'.
This commit is contained in:
parent
ef90f3ad43
commit
23d8553a90
|
@ -830,7 +830,9 @@
|
|||
:reader use-ui-notification-p
|
||||
:writer use-ui-notification)))
|
||||
|
||||
(defmacro with-sending-message-data ((message-body subject reply-to mentions visibility)
|
||||
(defmacro with-sending-message-data ((message-body subject
|
||||
reply-to mentions
|
||||
visibility language)
|
||||
&body body)
|
||||
(with-gensyms (send-win message-data)
|
||||
`(let ((,send-win specials:*send-message-window*))
|
||||
|
@ -839,12 +841,13 @@
|
|||
(,subject sending-message:subject)
|
||||
(,reply-to sending-message:reply-to)
|
||||
(,mentions sending-message:mentions)
|
||||
(,visibility sending-message:visibility)) ,message-data
|
||||
(,visibility sending-message:visibility)
|
||||
(,language sending-message:language)) ,message-data
|
||||
,@body)))))
|
||||
|
||||
(defmethod process-event ((object send-message-event))
|
||||
(let ((send-win specials:*send-message-window*))
|
||||
(with-sending-message-data (body subject reply-to mentions visibility)
|
||||
(with-sending-message-data (body subject reply-to mentions visibility language)
|
||||
(let* ((attachments (line-oriented-window:map-rows send-win
|
||||
#'line-oriented-window:normal-text))
|
||||
(alt-text (line-oriented-window:map-rows send-win
|
||||
|
@ -869,7 +872,8 @@
|
|||
attachments
|
||||
alt-text
|
||||
subject
|
||||
(make-keyword (string-upcase visibility)))
|
||||
(make-keyword (string-upcase visibility))
|
||||
language)
|
||||
(ui:notify (_ "Message sent"))
|
||||
(ui:close-send-message-window))))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue