Bläddra i källkod

Make file messages with empty caption unquotable

Previously, file messages with a null or empty caption were quotable.
Danilo Bargen 7 år sedan
förälder
incheckning
3b36d83e6d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/services/message.ts

+ 1 - 1
src/services/message.ts

@@ -43,7 +43,7 @@ export class MessageService {
         if (message !== undefined) {
             access.quote = (message.type === 'text')
                         || (message.type === 'location')
-                        || (message.caption !== undefined);
+                        || (message.caption !== undefined && message.caption !== null && message.caption.length > 0);
             access.copy = access.quote;
 
             if (receiver !== undefined && message.temporaryId === undefined) {