Commit Graph

55 Commits

Author SHA1 Message Date
Moez Bhatti e0c360245d Make contact retrieval by recipientId async 2017-10-31 15:47:48 -07:00
Moez Bhatti 6053c8e82d Move logic for marking message sent into repo 2017-10-02 13:15:23 -04:00
Moez Bhatti e09188cd7d Handle marking message failed/delivered in MessageRepository 2017-10-02 11:47:21 -04:00
Moez Bhatti b18027962a Create Mapper for Conversation -> Flowable<Conversation> and Interactor for syncing conversations 2017-10-02 11:10:25 -04:00
Moez Bhatti 62cde39fc9 Create mapper for Message -> MessageFlowable 2017-10-02 10:43:46 -04:00
Moez Bhatti 9ce6f8bc53 Remove redundant datastore classes 2017-10-01 21:05:20 -04:00
Moez Bhatti 4e90724d66 Move MarkSeen implementation to Interactors 2017-10-01 20:59:18 -04:00
Moez Bhatti 41aea8c618 Move message sending code into SendMessage.kt 2017-10-01 20:08:39 -04:00
Moez Bhatti 81a93a53e1 Create interactors for MarkSent and MarkFailed 2017-10-01 19:06:20 -04:00
Moez Bhatti 4ad44c47ca Create interaction for receiving message 2017-10-01 18:41:01 -04:00
Moez Bhatti d852349bf0 Reorder MessageTransaction functions 2017-09-29 18:25:29 -04:00
Moez Bhatti 132654b29c Use abstract references to MessageTransaction in MessageRepository 2017-09-29 18:13:30 -04:00
Moez Bhatti 69d4e5b954 Move code for changing message status into Transaction classes 2017-09-29 18:05:56 -04:00
Moez Bhatti a73f8081af Use @Inject constructors instead of providing deps in Module 2017-09-29 17:16:19 -04:00
Moez Bhatti 5a8b8f36ee Reorganize packages 2017-09-29 14:20:13 -04:00
Moez Bhatti 1ed758c245 Bind avatars inside of conversation 2017-09-27 21:16:22 -04:00
Moez Bhatti b329e29435 Load contact avatars in conversation list 2017-09-27 14:24:09 -04:00
Moez Bhatti 9c826ff71e Display notifications for incoming messages, mark seen when notification dismissed 2017-09-26 13:55:14 -04:00
Moez Bhatti d88bdf679d Add ability to mark messages Read or Sent 2017-09-26 12:35:50 -04:00
Moez Bhatti 6b8d190361 Display status of outgoing messages 2017-09-25 22:08:33 -04:00
Moez Bhatti bdc84dfe1e Make sure to show latest snippet in conversation list 2017-09-25 17:11:58 -04:00
Moez Bhatti 0bb0f47fe9 Don't require Conversation model to be able to store Messages 2017-09-25 16:17:44 -04:00
Moez Bhatti 4c1ecc03c6 When copying message to realm, use correct message from URI 2017-09-25 00:30:57 -04:00
Moez Bhatti e1b33538ba Add receivers for message Sent and Delivery confirmation 2017-09-23 01:11:09 -04:00
Moez Bhatti 7cd19d3572 Don't show conversations with no messages 2017-09-22 19:58:07 -04:00
Moez Bhatti 17eef8f034 Revamped data structure, use delegated properties for Conversation 2017-09-22 19:21:46 -04:00
Moez Bhatti f6063f9e37 Move Message and Conversation queries to appropriate Repository 2017-09-22 11:35:49 -04:00
Moez Bhatti 19b4c657ed Only display notifications for messages that are unread and unseen 2017-09-22 11:04:11 -04:00
Moez Bhatti 7456790a8c Reorganize extension functions 2017-09-22 03:35:35 -04:00
Moez Bhatti 895deff607 Show unread status for conversations 2017-09-21 23:56:25 -04:00
Moez Bhatti 5e3f7bbfaa Update dependencies 2017-09-21 14:17:38 -04:00
Moez Bhatti 3450fe2125 Revert "Insert 1 conversation into realm at a time"
This reverts commit bb676e499e.
2017-09-21 13:54:06 -04:00
Moez Bhatti 9a1ae958e0 Add ability to send messages 2017-09-20 00:19:55 -04:00
Moez Bhatti f639a652bb Add new messages to Realm 2017-09-19 19:58:46 -04:00
Moez Bhatti 9c6b3f6a4b Replace Log with Timber 2017-09-19 19:07:22 -04:00
Moez Bhatti bb676e499e Insert 1 conversation into realm at a time 2017-09-19 18:49:48 -04:00
Moez Bhatti 25bca8dadd Insert messages from broadcast into ContentProvider 2017-09-19 17:54:13 -04:00
Moez Bhatti f5b6f0fa91 Don't pass arguments in ViewModel constructors 2017-09-19 17:48:27 -04:00
Moez Bhatti ece5a8e93b use single function for synchronously obtaining contact 2017-08-28 16:53:06 -07:00
Moez Bhatti 39be6fee0b display contact names loaded from db 2017-08-28 16:41:54 -07:00
Moez Bhatti 15c6cc159d load contact from realm if possible 2017-08-28 16:18:04 -07:00
Moez Bhatti f7aba7c5bd correctly bind actionbar in messagelist activity 2017-08-28 15:45:41 -07:00
Moez Bhatti 22489af4c3 set up contactrepository to inflate phone number in contact 2017-08-28 15:13:27 -07:00
Moez Bhatti 7996048658 move syncmanager to conversationviewmodel using DI, use swipe to refresh instead of menu for syncing conversations 2017-08-28 13:18:36 -07:00
Moez Bhatti a7222a220f migrate from mosby mvp to viewmodel + repository 2017-08-27 17:58:50 -07:00
Moez Bhatti edba4eadbe store recipient model instead of recipients string in conversation 2017-08-22 19:51:01 -07:00
Moez Bhatti a32dd041ee make sure to use distinct messages and conversations from contentprovider 2017-08-21 19:06:48 -07:00
Moez Bhatti 52d2116d10 use Rx to insert conversations and messages into realm asyncronously 2017-08-14 22:46:02 -04:00
Moez Bhatti b74dbcc5a7 added .forEach() extension to cursor 2017-08-13 22:27:24 -04:00
Moez Bhatti 524310d3b7 sync all db data from single call, organize sync-related classes 2017-08-13 19:32:52 -04:00