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

fix rendering non-members on the dashboard #238

Merged
merged 3 commits into from
Jun 1, 2021

Conversation

cryptix
Copy link
Member

@cryptix cryptix commented Jun 1, 2021

updates #236

@cryptix cryptix requested review from staltz and cblgh June 1, 2021 06:36
cryptix added 2 commits June 1, 2021 08:43
doing this in the template was hard to read and inefficient.

also: rename OnlineMembers to OnlineUsers since it is a misnomer.
There are other connected peers in a room in certain privacy modes.
@HendrikPetertje
Copy link
Contributor

I've deployed this to my instance now and I can't see the dashboard missbehaving anymore. Thanks!
Also pretty cool to see tests with the pull that test this behaviour ;)

if err != nil {
// TODO: do we want to show "external users" (non-members) on the dashboard?
Copy link
Member

Choose a reason for hiding this comment

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

The answer to that TODO comment apparently is "yes" 😄

{{$member = $alias.Name}}
{{$memberIsAlias = true}}
{{end}}
{{end}}
Copy link
Member

Choose a reason for hiding this comment

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

Sweet to pull that logic into Go

@cryptix cryptix merged commit d147d06 into master Jun 1, 2021
@cryptix cryptix deleted the fix-non-member-on-dashboard branch June 1, 2021 12:23
@cryptix cryptix mentioned this pull request Jun 3, 2021
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.

4 participants