fix: always albumize outgoing image messages (#15735)

This commit is contained in:
yqrashawn 2023-04-26 14:26:37 +08:00 committed by GitHub
parent 68f360bbf6
commit f9eae4ef82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@
(defn prepare-message
[{:keys [message-id
clock-value
album-id
message-type
from
outgoing
@ -36,7 +37,8 @@
:type :message
:message-id message-id
:outgoing (boolean outgoing)
:albumize? albumize?}
;; always albumize outgoing (image already loaded) messages
:albumize? (if (and album-id outgoing) true albumize?)}
add-datemark
add-timestamp))