Browse Source

Also check for `body`

JC Brand 3 years ago
parent
commit
4d9c0d3f9a
1 changed files with 2 additions and 1 deletions
  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.