Skip to content

Commit d5e8ed5

Browse files
Half-Shotjaller94
andauthored
Update mautrix_telegram/portal/base.py
Co-authored-by: Christian Paul <info@jaller.de>
1 parent fe6066e commit d5e8ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix_telegram/portal/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def get_by_entity(cls, entity: Union[TypeChat, TypePeer, TypeUser, TypeUserFull,
459459

460460
@classmethod
461461
async def reached_portal_limit(cls) -> bool:
462-
limit = config.get("bridge.max_portal_rooms", 0)
462+
limit = config.get("bridge.max_portal_rooms", -1)
463463
if limit == -1:
464464
return False
465465
return DBPortal.count() >= limit

0 commit comments

Comments
 (0)