revolution-irc icon indicating copy to clipboard operation
revolution-irc copied to clipboard

Export chats

Open goyalyashpal opened this issue 3 years ago • 5 comments

Hi,

What?

having an option to export chats would be really handy ...

Any Special Reason?

... as Telegram app recently made the feature to import chats available tg_blog🡭 .

Use Case:

... As i use IRC for support only, i'd like to be able to import the IRC_revs chats in telegram so that i can easily use telegram's feature like search, easy list of all chats, offline accessible cache ( see #286 ) and mutliple device syncing so that i can easily and quickly see them (the support advices, and steps to follow etc) on any device i want.

Thanks.

goyalyashpal avatar Feb 21 '21 02:02 goyalyashpal

hi, i was just thinking about it, and i recalled that in order for the logs export to be importable in telegram, it'd have to be separate per chat (per channel, etc). So, just thought to bring this to your notice too.

Maybe option can be given in export: Export each chat in a separate file And also in each chat in 3 dots menu.

Or if this seems too much work, then it's obv your wish if u want to even implement it or not. Whatever ur decision will be, i have faith that u will choose whats optimum.

Ask me if you need any other user-side input :)

goyalyashpal avatar Feb 22 '21 08:02 goyalyashpal

Maybe put all the logs into a zipfile or tarball?

Or just allow the option of recording logs in user-accessible local storage, rather than in app-private local storage, so that it's a simple matter to extract them with an ordinary file manager over MTP or whatever the device supports.

On old devices that export their storage by pretending to be a USB data stick (ie, as FAT-over-USB), it would be preferable to copy the logs there on request: writing logs there directly would leave the app unable to write logs whenever the FAT filesystem is being accessed over the USB link, either losing data or simply crashing.

kurahaupo avatar Mar 05 '21 02:03 kurahaupo

@MCMrARM

Related to this, please add a periodic fsync() (or equivalent) to ensure that logs are not lost if the app is abnormally terminated - such as by power loss, or by rebooting after an OS upgrade, or by crashing.

It's particularly distressing to find that some important PM has been lost because the device has shut down or rebooted while unattended.

kurahaupo avatar Mar 05 '21 03:03 kurahaupo

@MCMrARM

Related to this, please add a periodic fsync() (or equivalent) to ensure that logs are not lost if the app is abnormally terminated - such as by power loss, or by rebooting after an OS upgrade, or by crashing.

It's particularly distressing to find that some important PM has been lost because the device has shut down or rebooted while unattended.

That sounds like a sqlite COMMIT is missing; that's weird, I should look into it.

MCMrARM avatar Mar 19 '21 09:03 MCMrARM

hi, any updates on this?? i am moving to a new phone now and will have to dump old phone. so... didnt want to loose the chat logs.

i mean, i have tried copying the files folder from Android/data/io.mrarm.irc but newer android versions dont support copying to there.

or if there's some way i can access/read the contents of these files properly?

goyalyashpal avatar Nov 25 '21 09:11 goyalyashpal

RIP

would've been great

AdamRGrey avatar Feb 23 '24 17:02 AdamRGrey

For a one-off export, such as if you're decommissioning a phone, this can accomplished by performing a device backup to Google, and then using Google Takeout to download the device backups to your PC, and extract the chat logs from there.

kurahaupo avatar Mar 18 '24 13:03 kurahaupo