Procházet zdrojové kódy

Also check for `body`

JC Brand před 3 roky
rodič
revize
4d9c0d3f9a
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/headless/utils/core.js

+ 2 - 1
src/headless/utils/core.js

@@ -24,7 +24,8 @@ export function isEmptyMessage (attrs) {
     return !attrs['oob_url'] &&
         !attrs['file'] &&
         !(attrs['is_encrypted'] && attrs['plaintext']) &&
-        !attrs['message'];
+        !attrs['message'] &&
+        !attrs['body'];
 }
 
 /* We distinguish between UniView and MultiView instances.