New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability for a user to leave a private topic #161

Closed
jaysylvester opened this Issue Nov 9, 2017 · 3 comments

Comments

Projects
None yet
1 participant
@jaysylvester
Owner

jaysylvester commented Nov 9, 2017

Possible implementation:

  1. Remove the record from the topicInvitations table
  2. Strike out the user's name in the invitee list at the top of the first page (might necessitate skipping #1 above and adding an additional column as a boolean)
  3. Insert a post in the thread at the time of removal to act as an announcement that the user has left the topic (perhaps provide a "leave silently" checkbox if the user doesn't want to draw attention to the fact that they've left)
@jaysylvester

This comment has been minimized.

Show comment
Hide comment
@jaysylvester

jaysylvester Apr 13, 2018

Owner

Might be nice to have a "decline" option in the e-mail and the private topic list. Might need 2 columns in the lookup table — "accepted" and "left". They click the "accept" link in the e-mail or on the private topic list, and they're in. If at any point they leave, they can't come back.

Owner

jaysylvester commented Apr 13, 2018

Might be nice to have a "decline" option in the e-mail and the private topic list. Might need 2 columns in the lookup table — "accepted" and "left". They click the "accept" link in the e-mail or on the private topic list, and they're in. If at any point they leave, they can't come back.

@jaysylvester

This comment has been minimized.

Show comment
Hide comment
@jaysylvester

jaysylvester Apr 14, 2018

Owner

SQL:

ALTER TABLE "public"."topicInvitations"
  ADD COLUMN "accepted" boolean DEFAULT false,
  ADD COLUMN "left" boolean DEFAULT false;

CREATE INDEX "topicInvitations_accepted_idx" ON "public"."topicInvitations"("accepted");
CREATE INDEX "topicInvitations_left_idx" ON "public"."topicInvitations"("left");

update "topicInvitations" set accepted = true;

update "emailTemplates" set default_text = '[author] invited you to a private topic. Private topics are visible only to members who receive an invitation; not even moderators can view your private topics.

To accept the invitation and read the topic:
[topicUrl]',
text = '[author] invited you to a private topic. Private topics are visible only to members who receive an invitation; not even moderators can view your private topics.

To accept the invitation and read the topic:
[topicUrl]'

where name = 'Topic Invitation';
Owner

jaysylvester commented Apr 14, 2018

SQL:

ALTER TABLE "public"."topicInvitations"
  ADD COLUMN "accepted" boolean DEFAULT false,
  ADD COLUMN "left" boolean DEFAULT false;

CREATE INDEX "topicInvitations_accepted_idx" ON "public"."topicInvitations"("accepted");
CREATE INDEX "topicInvitations_left_idx" ON "public"."topicInvitations"("left");

update "topicInvitations" set accepted = true;

update "emailTemplates" set default_text = '[author] invited you to a private topic. Private topics are visible only to members who receive an invitation; not even moderators can view your private topics.

To accept the invitation and read the topic:
[topicUrl]',
text = '[author] invited you to a private topic. Private topics are visible only to members who receive an invitation; not even moderators can view your private topics.

To accept the invitation and read the topic:
[topicUrl]'

where name = 'Topic Invitation';
@jaysylvester

This comment has been minimized.

Show comment
Hide comment
@jaysylvester

jaysylvester Apr 19, 2018

Owner

Nixed the idea of a decline option. Just makes things more complicated for users and implementation. If the user reads the topic, they've inherently accepted the invitation, and they can leave the topic after that.

Owner

jaysylvester commented Apr 19, 2018

Nixed the idea of a decline option. Just makes things more complicated for users and implementation. If the user reads the topic, they've inherently accepted the invitation, and they can leave the topic after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment