Commit Graph

5 Commits

Author SHA1 Message Date
Adam Babik dbf4c4062e
Improve interface around chats and add matching messages against chats (#66) 2019-09-20 08:41:53 +02:00
Andrea Maria Piana 8a6d5a6b49
Add LastMessageTimestamp
Following the already established pattern, we add another denormalized
field, lastMessageTimestamp, to be used in a similar way as the rest.
2019-09-02 10:51:07 +02:00
Adam Babik 287f9aa26c
add Messenger.Init() (#55) 2019-08-25 17:48:37 +02:00
Andrea Maria Piana b9447aea36
Add replies, block contact, remove unused methods
This commit does a few things:
1) Add replies to messages, which are calculated at query time using a
join
2) Add a BlockContact api call that takes care of deleting messages from
a user, deleting the chat, and re-compute the denormalized values. As it
needs to run in a transaction, the method that it relies on take a
transaction as an optional parameter.
3) Change ID scheme for chats/contacts so that it's consistent across
messages/contacts

This is not compatible as I have modified a migration, but it's not a
problem as data compatibility can be broken
2019-08-20 08:54:10 +02:00
Adam Babik c2b7b022b7
move status-react compliant messages storage and API 2019-08-12 12:43:46 +02:00