nbusy / nbusy-android

NBusy Android app.
http://nbusy.com
Apache License 2.0
1 stars 0 forks source link

Chats object should maintain immutable (?) message list along with: #43

Closed soygul closed 8 years ago

soygul commented 8 years ago
private String chatId;
private List<Message> messages; // chat messages that this fragment is presenting
private Map<String, Integer> messageIDtoIndex; // message ID -> messages[index]
Chat.SetMessageState(Message msg); // for senttoserver/delivered etc. status changes
soygul commented 8 years ago

We can try and integrate Capacitor library here using immutable Chat.ImmutableMessages (dream!) or Immutable.Message (we do this already).