Do not treat all URL bodies as attachments

Stephen Paul Weber created

This path is just for fallback to data stored by upstream, so only use it if
upstream stored their flag.

Change summary

src/main/java/eu/siacs/conversations/entities/Message.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/entities/Message.java 🔗

@@ -970,7 +970,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
 
     public synchronized FileParams getFileParams() {
         if (fileParams == null) {
-            fileParams = new FileParams(this.body);
+            fileParams = new FileParams(oob ? this.body : "");
             if (this.transferable != null) {
                 fileParams.size = this.transferable.getFileSize();
             }