Commit 8d9d67ea authored by Tiago Cunha's avatar Tiago Cunha

Attachments are back!

parent 2989215c
...@@ -190,7 +190,7 @@ public class RealmMessage extends RealmObject { ...@@ -190,7 +190,7 @@ public class RealmMessage extends RealmObject {
final List<Attachment> coreAttachments = new ArrayList<>(); final List<Attachment> coreAttachments = new ArrayList<>();
try { try {
final JSONArray jsonArray = new JSONArray(urls); final JSONArray jsonArray = new JSONArray(attachments);
for (int i = 0, size = jsonArray.length(); i < size; i++) { for (int i = 0, size = jsonArray.length(); i < size; i++) {
final Attachment coreAttachment = getCoreAttachment(jsonArray.getJSONObject(i)); final Attachment coreAttachment = getCoreAttachment(jsonArray.getJSONObject(i));
if (coreAttachment != null) { if (coreAttachment != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment