Also check for body

This commit is contained in:
JC Brand 2022-07-06 11:19:08 +02:00
parent 35bdcf58cd
commit 4d9c0d3f9a

View File

@ -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.