rrbrambley / MessageBeast-Android

A library for building Message-based apps on App.net
MIT License
5 stars 0 forks source link

OrderedMessageBatch messages map does not support two messages with same date #31

Open rrbrambley opened 10 years ago

rrbrambley commented 10 years ago

The OrderedMessageBatch contains a field of type TreeMap<Long, MessagePlus>, whose keys are message display dates. So, technically, if two messages are created at the same millisecond, then one of them will not be seen. Is this a problem? I don't think so. Just never create two messages with the same date. Multiple apps could post messages simultaneously though. Will they have the same exact date? Probably not. sigh