aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities')
-rw-r--r--src/main/java/de/pixart/messenger/entities/Message.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Message.java b/src/main/java/de/pixart/messenger/entities/Message.java
index af8c2aafa..c51fa1638 100644
--- a/src/main/java/de/pixart/messenger/entities/Message.java
+++ b/src/main/java/de/pixart/messenger/entities/Message.java
@@ -3,6 +3,7 @@ package de.pixart.messenger.entities;
import android.content.ContentValues;
import android.database.Cursor;
import android.text.SpannableStringBuilder;
+import android.util.Log;
import com.vdurmont.emoji.EmojiManager;
@@ -740,7 +741,14 @@ public class Message extends AbstractEntity {
fileParams.width = parseInt(parts[1]);
fileParams.height = parseInt(parts[2]);
break;
+ case 6:
+ fileParams.url = parseUrl(parts[0]);
+ fileParams.size = parseLong(parts[1]);
+ fileParams.subject = parseString(parts[5]);
+ break;
+
}
+ Log.d(Config.LOGTAG, "FileParams: " + body);
}
return fileParams;
}
@@ -769,6 +777,14 @@ public class Message extends AbstractEntity {
}
}
+ private static String parseString(String value) {
+ try {
+ return value;
+ } catch (Exception e) {
+ return "";
+ }
+ }
+
public void untie() {
this.mNextMessage = null;
this.mPreviousMessage = null;
@@ -796,6 +812,7 @@ public class Message extends AbstractEntity {
public int width = 0;
public int height = 0;
public int runtime = 0;
+ public String subject = "";
}
public void setFingerprint(String fingerprint) {