Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Media Not Exporting to XML

Open alexh3791 opened this issue 12 years ago • 83 comments

I have noticed that when exporting a plaintext backup in the current Play Store version of the app, all media attached to messages (and perhaps even the text from messages containing media) is not included in the XML backup, even though 'SMSBackup And Restore' backs up the media with all messages properly when creating an XML backup, and can restore the same data.

Since I use both TextSecure and SMSBackup And Restore in my system to back up a record of my messaging activity, I need media to be included in my plaintext backup alongside text messages.

alexh3791 avatar Jun 20 '14 03:06 alexh3791

Didn't realize SMS B&R supported media now. Maybe @mcloo can take this on.

moxie0 avatar Jun 21 '14 16:06 moxie0

@moxie0 @mcloo Awesome! I'd love to see it implemented. I'd help if I could!

alexh3791 avatar Jun 22 '14 00:06 alexh3791

@moxie not until next weekend. Got to figure out how media is exported. I guess Base64. Would also need a short description how to access the MMS fields to safe some research time.

McLoo avatar Jun 22 '14 14:06 McLoo

Has this been resolved?

alexh3791 avatar Jul 23 '14 21:07 alexh3791

Not yet unfortunately. But I do eager researching already. Though I still hope for some hints on getting the media data @moxie0 or @mcginty maybe?!

McLoo avatar Jul 24 '14 20:07 McLoo

@McLoo check out the setMediaMmsAttributes(MediaMmsMessageRecord) method in ConversationItem to see how you can check for and retrieve media "parts" to a message.

mcginty avatar Jul 24 '14 21:07 mcginty

@McLoo im trying not to nag... but is there any news regarding this? I'm waiting for that feature for some reason ;-)

diego0815 avatar Aug 14 '14 02:08 diego0815

@diego0815 just go on nagging. I always need some trigger ;)

I was waiting for @mcginty to finish the makeover of the export process to go on. I guess I could at least go for the import part already...

McLoo avatar Aug 14 '14 08:08 McLoo

@McLoo that sounds great, yepp I also sometimes need this kick in the ass, just feeling bit bad nagging guys who are doing such great things in their spare time ;-) but as long as you appreciate an occasional nag, I'll gladly do so B-)

I'm waiting for media export, so I can get my messages exported, then all wiped ( to fix 814 for me) and then re-imported...

diego0815 avatar Aug 14 '14 15:08 diego0815

I put a simple dump file here that reliably fails. There are three messages in it, 2 sms, 1 mms. The mms doesn't import.

http://alexlance.com/TextSecurePlaintextBackup.xml

Would love to get this issue fixed so I can bring all my existing messages into textsecure.

Let me know if I can provide any info or assist in any way. I also commented on #1410 which is probably a dupe of this issue.

alexlance avatar Aug 16 '14 08:08 alexlance

@alexlance MMS are totally ignored right now. The import for them has to be implemented first. So it's more a missing feature than a bug ;-)

McLoo avatar Aug 16 '14 09:08 McLoo

@mcloo may I suggest that it is very surprising behaviour for the application to behave as though the import was successful, but to have silently not imported all of the image/mms messages.

And unfortunately after an import into textsecure the user is very likely to go and delete their messages from the android system sms database - thus permanently losing the image data.

Are there any plans/timeline to implement this functionality?

alexlance avatar Aug 17 '14 03:08 alexlance

@alexlance as i understand it's being worked on, and its depending on some other prerequisites. So i'd say its done when its done, but we got a right to nag from time to time ;-)

diego0815 avatar Aug 17 '14 15:08 diego0815

@diego0815 Frankly - the user that is getting software for free does not have a right to nag :) but this particular issue stops me from using textsecure as my default messager.

And it might be a missing feature that it doesn't import mms, but it is a bug that it doesn't report an error to the user, saying: Hey everything was imported just fine, except these messages...

Presumably the textsecure dev team have some sort of roadmap of priorities - it'd be lovely to get an indication of when (or if) textsecure will support importing mms/images.

alexlance avatar Aug 18 '14 05:08 alexlance

@alexlance totally agree lets see when we will get what we are craving for (hint @mcloo ;-)

diego0815 avatar Aug 24 '14 19:08 diego0815

@mcloo any chance of getting an idea of whether this functionality will be added?

alexlance avatar Sep 17 '14 04:09 alexlance

@alexlance I wish I knew. Work is pushing me quite hard these days. To much to work on such a change right now. 😢

@mcginty what about the rewritten import/export? Dropped?

McLoo avatar Sep 17 '14 08:09 McLoo

@mcloo ok thanks for letting me know. It's such a bugger, because I would love to switch over to TextSecure and delete the system message store, but I can't just discard all the old mmses - a picture is worth a thousand words :)

alexlance avatar Sep 17 '14 13:09 alexlance

I just installed TextSecure (v 2.2.0) and love it, but was disappointed that my MMS images didn't import along with the SMS text from the Android (v 4.4.4) Messaging (v 4.4.4-24) app. I think this is the right topic to chime in and vote/beg for additional MMS functionality in TextSecure. Thanks for a great app!

Eric1911 avatar Nov 21 '14 18:11 Eric1911

Any progress on this issue?

MarcRdC avatar May 22 '15 13:05 MarcRdC