Skip to content
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

Add ability to delete an alias from room directory #1680

Merged
merged 3 commits into from
Jun 22, 2016
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jun 21, 2016

Hidden behind shift-click: ultimately this should be expanded upon to be able to delete any of the aliases rather than just the default, but this is a start that will let us do some moderation without doing it manually with cURL.

Also tidies up RoomDirectory a bit by passing the room objects around so we don't have to look them up by in the data structure later.

Hidden behind shift-click for now, but we're going to need to do this a lot to moderate the public room list.
@dbkr dbkr assigned richvdh and unassigned richvdh Jun 21, 2016
Also clean up RoomDirectory a bit and just pass the room object around rather than the name / alias, so now we don't have to look up the room by ID again.
var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");

var room_alias = get_display_alias_for_room(room);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have alias - this appears redundant.

@richvdh richvdh assigned dbkr and unassigned richvdh Jun 22, 2016
@dbkr dbkr assigned richvdh and unassigned dbkr Jun 22, 2016
@richvdh richvdh merged commit c12839d into develop Jun 22, 2016
dbkr added a commit that referenced this pull request Jun 23, 2016
Fixes regression introduced by #1680
@t3chguy t3chguy deleted the dbkr/delete_alias branch May 12, 2022 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants