message: Allow accessing archived channel when not modifying message.

Fixes #33567.

We have used the flag `is_modifying_message` since it's more generic
than an archived channel specific flag and helps us understand better
what is the condition where we do not want to allow archived channels.
We have not added tests for message edit since it  has an existing test
for this.
This commit is contained in:
Shubham Padia
2025-02-26 07:11:51 +00:00
committed by Tim Abbott
parent c71aeae34d
commit 5cca30d971
11 changed files with 95 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ def remove_reaction(
emoji_code: str | None = None,
reaction_type: str = "unicode_emoji",
) -> HttpResponse:
message = access_message(user_profile, message_id, lock_message=True)
message = access_message(user_profile, message_id, lock_message=True, is_modifying_message=True)
if emoji_code is None:
if emoji_name is None: