chat-sdk-android icon indicating copy to clipboard operation
chat-sdk-android copied to clipboard

Modified/deleted messages are still present

Open bagage opened this issue 9 years ago • 5 comments

If you modify a message (edit content or remove it or...) directly within firebase console or from a third party app, ChatSDK doesn't update the message locally. It seems that once it gets into the DAO it is never refreshed. I think that ChatSDK InMessagesListener class should subscribe to Firebase onChildChanged and onChildRemoved to keep sync with Firebase. But these methods are not invoked when modifications are made while application is killed (as expected), so on startup you won't be notified of these changes which is unfortunate...

For now, my workaround is to wipe ChatSDK database out totally with:

DaoMaster.dropAllTables(DaoCore.db, true); // db field was made public
DaoMaster.createAllTables(DaoCore.db, true); 

bagage avatar Aug 22 '17 15:08 bagage

Currently this is just how the app is designed. Message updates aren't supported. I'll add it to the backlog as a possible enhancement.

bensmiley avatar Aug 23 '17 14:08 bensmiley

bensmiley can you help me in issue

jay2342 avatar Sep 15 '17 09:09 jay2342

help me

jay2342 avatar Sep 15 '17 10:09 jay2342

Are there any move for this?

kaplandroid avatar May 01 '18 21:05 kaplandroid

need to update messages as well, any idea how to implement this ?

timhuang1018 avatar Aug 07 '19 08:08 timhuang1018