diff options
author | Daniel Gultsch <inputmice@siacs.eu> | 2015-01-02 14:27:49 +0100 |
---|---|---|
committer | Daniel Gultsch <inputmice@siacs.eu> | 2015-01-02 14:27:49 +0100 |
commit | 3df23a4f75263d17a4db95a9a4f8c26c0246962c (patch) | |
tree | 68fdc078020c095081cf90cf4690155a1b2ca4e8 /src/main/java/eu/siacs/conversations/entities | |
parent | bcd3be59ce78609e608f4a8f7a868be977fdb4bb (diff) |
allow cancellation of waiting files
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Message.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java index 38e88fa4..b5a1897d 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -518,6 +518,10 @@ public class Message extends AbstractEntity { this.mPreviousMessage = null; } + public boolean isFileOrImage() { + return type == TYPE_FILE || type == TYPE_IMAGE; + } + public class ImageParams { public URL url; public long size = 0; |