afomera / MessageMe

tmsg - make group messaging better.
http://tmsg.io
0 stars 0 forks source link

Removing a contact from a group #2

Closed afomera closed 8 years ago

afomera commented 8 years ago

When you remove a contact from a group

Right now if you have a contact added to multiple groups like

and you go to remove Person A from Group 1, if you added them to Group 2 last, it removes them from that group and does not remove the one you specify(unless you just happened to want to remove them from the most recent group they had been added to). You'll end up with the following result

Obviously this is not user-friendly. So we need to do something to ensure that when we delete the ContactGroup joined table, we also pass in the group.

Right now the link_to is passing in the contact ID through the params, and we just do a find_by(contact: params[:id]) to get the first record.

Need to fix.

afomera commented 8 years ago

Appears to be fixed in 646c265