+
+ if ($result instanceof Group_member) {
+ $form = new LeaveForm($this, $this->group);
+ } else if ($result instanceof Group_join_queue) {
+ $form = new CancelGroupForm($this, $this->group);
+ } else {
+ // wtf?
+ // TRANS: Exception thrown when there is an unknown error joining a group.
+ throw new Exception(_("Unknown error joining group."));
+ }
+ $form->show();