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

Creating new private chat portals fails #282

Closed
tulir opened this issue Feb 15, 2019 · 0 comments
Closed

Creating new private chat portals fails #282

tulir opened this issue Feb 15, 2019 · 0 comments
Labels
bug: regression Something isn't working, but it used to work before
Milestone

Comments

@tulir
Copy link
Member

tulir commented Feb 15, 2019

[2019-02-15 13:11:33,828] [[email protected]] Failed to handle Telegram update
Traceback (most recent call last):
  File "/mautrix_telegram/abstract_user.py", line 142, in _update_catch
    await self._update(update)
  File "/mautrix_telegram/abstract_user.py", line 195, in _update
    await self.update_message(update)
  File "/mautrix_telegram/abstract_user.py", line 384, in update_message
    return await portal.handle_telegram_message(self, sender, update)
  File "/mautrix_telegram/portal.py", line 1575, in handle_telegram_message
    await self.create_matrix_room(source, invites=[source.mxid], update_if_exists=False)
  File "/mautrix_telegram/portal.py", line 349, in create_matrix_room
    return await self._create_matrix_room(user, entity, invites)
  File "/mautrix_telegram/portal.py", line 391, in _create_matrix_room
    power_levels = self._get_base_power_levels({}, entity)
  File "/mautrix_telegram/portal.py", line 423, in _get_base_power_levels
    levels["invite"] = 50 if entity.default_banned_rights.invite_users else 0
AttributeError: 'User' object has no attribute 'default_banned_rights'
@tulir tulir added the bug: regression Something isn't working, but it used to work before label Feb 15, 2019
@tulir tulir added this to the 0.5.0 milestone Feb 15, 2019
@tulir tulir closed this as completed in c979de9 Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: regression Something isn't working, but it used to work before
Development

No branches or pull requests

1 participant