package com.frinder.frinder.model;

import org.parceler.Parcel;

import java.util.Date;

@Parcel(analyze={MessageThread.class})
public class MessageThread implements Comparable<MessageThread> {

    public String uid;
    public String userId;
    public String messageSnippet;
    public boolean unread;
    public Date lastTimestamp;


    @Override
    public int compareTo(MessageThread o) {
        return lastTimestamp.compareTo(o.lastTimestamp);
    }
}

@@ -389,16 +389,113 @@
 ad o) %7B%0A
+        if (lastTimestamp == null %7C%7C o.lastTimestamp == null) %7B%0A            return 0;%0A        %7D%0A%0A
         

Fix timestamp crash in message list view