Chat backup feature #2750
Replies: 4 comments 2 replies
-
Do you have a link to Tae's code? I would like to see how he does it. Sorry for the late reply. |
Beta Was this translation helpful? Give feedback.
-
Yeah. Here's the commit where he added the logic: |
Beta Was this translation helpful? Give feedback.
-
hmmm ok, so it looks like he just pulls the chats & messages and then JSON encodes them and stores them in files. I'm not sure I love that idea tbh... If i were to do it, i'd do it in a different manner. It also base64 encodes any attachments and stores it in the JSON as well. What I'm worried about is the JSON files becoming gigabytes or even a few hundred MB. |
Beta Was this translation helpful? Give feedback.
-
So I actually changed that because it was causing issues with OOM errors with 500mb+ files. I changed it to a very basic but functional serial format with json for messages and attachments in binary after the json. Look at the latest commit. |
Beta Was this translation helpful? Give feedback.
-
Currently, OpenBubbles has a feature to backup and restore a user's chat history from the filesystem. Is there any interest in having this feature in BlueBubbles? I'd like to open a PR which just ports over the changes from
lib/app/layouts/settings/pages/server/backup_restore_panel.dart
that @TaeHagen already added to the OpenBubbles fork (a few other minor changes would be needed as well).My use case for this is moving chat history from BlueBubbles to OpenBubbles. But I'm sure there are other uses for this feature. I'm not sure how useful the restore functionality would be since BB can sync message history with the server, but I suppose it might be helpful if both the mobile app and server lost chat history for some reason.
Beta Was this translation helpful? Give feedback.
All reactions