This commit is contained in:
fiaxh 2017-04-04 16:33:51 +02:00
parent 75e51b5ed3
commit cb3c896bdb

View file

@ -34,7 +34,7 @@ public class MessageStorage : StreamInteractionModule, Object {
if (messages[conversation].size > 0) { if (messages[conversation].size > 0) {
return messages[conversation][int.max(messages[conversation].size - count - 1, 0) : messages[conversation].size]; return messages[conversation][int.max(messages[conversation].size - count - 1, 0) : messages[conversation].size];
} }
return new ArrayList<Conversation>(); return new ArrayList<Message>();
} }
public Message? get_last_message(Conversation conversation) { public Message? get_last_message(Conversation conversation) {