Skip to content

Commit

Permalink
Update mautrix_telegram/portal/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tulir Asokan <[email protected]>
  • Loading branch information
Half-Shot and tulir authored May 21, 2020
1 parent ed42f24 commit b0256ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_telegram/portal/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def get_by_entity(cls, entity: Union[TypeChat, TypePeer, TypeUser, TypeUserFull,

@classmethod
def reached_portal_limit(cls, username: str) -> int:
return config["bridge.max_portal_rooms"] !== -1 and
return config["bridge.max_portal_rooms"] > 0 and
DBPortal.count() >= config["bridge.max_portal_rooms"]

# endregion
Expand Down

0 comments on commit b0256ba

Please sign in to comment.