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

Add a way to restore group information

Open tinloaf opened this issue 12 years ago • 14 comments

If a user (like me) has to re-install TS, restore some (old) backup or loses (part of) his data for some other reason, groups are messed up. The groups that he joined do not show up, and as far as I can see, there is currently no way to restore them. If someone tries to re-add me to the group, that does nothing. If someone writes something into the group, I see a message in an "unknown group", but cannot reply since my TS does not know the recipients.

I think there should be some way to send the group data from one TS that still knows this information to the one that lost it. This is what I think could be done (let my buddy be called 'Bob'):

  1. I restore a backup, my group is gone.
  2. Bob sends something in that group.
  3. My TS sees that it's missing a group, and that Bob is most probably part of it. It sends a "please give me the group data" message to Bob.
  4. Bob's TS receives the message and checks that I am actually part of that group (so we don't leak group data to potential outsiders). It then sends a message with the whole group information to me.

Also, there should be a way to do this manually from Bob's client.

@moxie0 Since you're thinking about adding message types anyway (talking about delivery receipts), could this be done?

tinloaf avatar Mar 27 '14 14:03 tinloaf

Sounds very un-asynchronous.

moxie0 avatar Mar 28 '14 01:03 moxie0

Well, it's un-asynchronous in that the group is not usable until your buddy has (auto-)answered, of course. The information has to come from somewhere, and it's not on the server (for good reasons). If you refer to someone having to keep state though, I don't think so:

  • A client just answers "give me the group details" messages from everyone who is in that group. No need to keep track of anything.
  • A client accepts "here are some group details" if and only if: It is coming from someone who has participated in that group (i.e. the guy who just wrote you a message in an unknown group) and it does contain at least all known recipients for that group. Meaning: If such a message is received for a group that we already know, it's not possible to "kick someone out" by sending evil "group detail" messages to everyone.

This would also fix the case that this happens:

  1. Make a backup
  2. Bob is added to the group
  3. Restore the backup.

In this case, the information that Bob joined the group is lost, too. If someone (of the other participants) triggers a "group data" - message to you, this would be accepted (since it contains everyone we already know to be in the group) and Bob is added again.

tinloaf avatar Mar 28 '14 14:03 tinloaf

PLEASE fix this, I just had to reinstall and now I can't rejoin the old groups I was in! This is a usability epic fail.

ghost avatar Jul 16 '14 14:07 ghost

@mangholb Make one of the other group members add you again manually. This works, even if it looks to them as if you're already in the group. I'm totally with you that this should not be the permanent solution, that's why I opened this issue. ;) But it should work for the moment.

tinloaf avatar Jul 24 '14 10:07 tinloaf

I tried it but it didn't work :/ the only solution I found is to have one of the participants to the group change the avatar. I hope this gets fixed soon or more complaints will arise when (if) textsecure will gain traction

ghost avatar Jul 24 '14 10:07 ghost

That's very strange, as this should trigger a group update being sent just as the avatar change does. I'll have to check if there were some changes. You just reinstalled?

tinloaf avatar Jul 24 '14 16:07 tinloaf

I don't remember :/ Another problem I noticed is that although a friend of mine has unregistered from push service and uninstalled the app he still appears among the participants...

ghost avatar Jul 24 '14 17:07 ghost

Isn't the non-working backing up of groups a separate issue? (that I hope the new encrypted backup export is going to solve?)

hacklschorsch avatar Aug 27 '14 09:08 hacklschorsch

Any progress on this? The solution outlined by @tinloaf in the beginning of this thread and here seems like it should work. @moxie0, you mentioned it sounded un-asynchronous; do you still see problems with it after elaboration?

dkasak avatar May 29 '15 18:05 dkasak

Here a log if you whish. Since I often try different ROMs...its annoying that iI can't join a group myself.. Thx so far for your support. Great app! https://gist.github.com/e7ecc798446f801f7afe

peterpanondrugs avatar Jul 11 '15 07:07 peterpanondrugs

Still no progress on this?!

Here's a workaround, though: 1) The person who reinstalled signal has to close all instances of the group chat (i.e. on all devices, mobile and desktop) that might have come up due to messages in that group still being delivered to him/her. 2) Someone else has to re-add the person, ignoring that he/she is already in the group and accept the change in the "edit group" window via the tick mark in the top right corner. This solved it for me and the user could reply to the group thereafter.

t-animal avatar Nov 21 '16 14:11 t-animal

@t-animal no need for closing, re-adding etc., doing a group update without any change should be enough. Regarding progress: check out #5876

haffenloher avatar Nov 21 '16 14:11 haffenloher

@haffenloher i already thought so, but i could not verify it without re-reinstalling the app, which i did not want to do l ;) Cool, that there's finally a fix for this :)

t-animal avatar Nov 21 '16 14:11 t-animal

Fix in 3.24.0 (cf01959e16acc1ff31cd007d68b3ba43810b6c3a)

2-4601 avatar Dec 01 '16 20:12 2-4601