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

Poll cannot end in some unencrypted rooms #5067

Closed
ariskotsomitopoulos opened this issue Jan 26, 2022 · 1 comment · Fixed by #5069
Closed

Poll cannot end in some unencrypted rooms #5067

ariskotsomitopoulos opened this issue Jan 26, 2022 · 1 comment · Fixed by #5069
Assignees
Labels
A-Polls T-Defect Something isn't working: bugs, crashes, hangs and other reported problems Z-Labs

Comments

@ariskotsomitopoulos
Copy link
Contributor

Steps to reproduce

  1. Create a poll in an unencrypted room (the problem do not exist in all the unencrypted rooms)
  2. Vote
  3. End the poll

I observed this issue in two rooms, but in some others works.

Outcome

What did you expect?

The poll to be end

What happened instead?

The poll did not End

Your phone model

No response

Operating system version

No response

Application version and app store

1.3.16

Homeserver

No response

Will you send logs?

No

@ariskotsomitopoulos ariskotsomitopoulos added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Jan 26, 2022
@bmarty bmarty added the A-Polls label Jan 26, 2022
@onurays
Copy link
Contributor

onurays commented Jan 26, 2022

val powerLevelsHelper = stateEventDataSource.getStateEvent(roomId, EventType.STATE_ROOM_POWER_LEVELS, QueryStringValue.NoCondition)
                ?.content?.toModel<PowerLevelsContent>()
                ?.let { PowerLevelsHelper(it) }
if (!powerLevelsHelper?.isUserAbleToRedact(event.senderId ?: "").orFalse()) {
    Timber.v("## Received poll.end event $pollEventId but user ${event.senderId} doesn't have enough power level in room $roomId")
    return
}

Here is the reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Polls T-Defect Something isn't working: bugs, crashes, hangs and other reported problems Z-Labs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants