Skip to content

Add pre-defined check is_room_encrypted - #118

Merged
PenguinBoi12 merged 1 commit into
Code-Society-Lab:mainfrom
AnayGarodia:devin/1784880660-is-room-encrypted
Jul 24, 2026
Merged

Add pre-defined check is_room_encrypted#118
PenguinBoi12 merged 1 commit into
Code-Society-Lab:mainfrom
AnayGarodia:devin/1784880660-is-room-encrypted

Conversation

@AnayGarodia

Copy link
Copy Markdown
Contributor

Description

Adds the pre-defined check is_room_encrypted to matrix/checks.py, following the same decorator pattern as is_admin/is_moderator. The check returns ctx.room.encrypted, so commands decorated with it raise CheckError in unencrypted rooms. Includes unit tests mirroring the existing check tests.

Fixes #108

Type of Change

  • Feature
  • Refactor
  • Bug fix
  • Documentation
  • Other: ___

Pre-merge Checklist

  • Run tests: pytest
  • Run type check: mypy
  • Run formatting: black .

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 24, 2026 08:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@PenguinBoi12
PenguinBoi12 self-requested a review July 24, 2026 19:45

@PenguinBoi12 PenguinBoi12 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good to me, thanks you 🦭

@PenguinBoi12
PenguinBoi12 merged commit a3de2fb into Code-Society-Lab:main Jul 24, 2026
3 checks passed
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.

Check: is_room_encrypted

3 participants