feat: remove client and server-side message restrictions#28
Open
rhcp011235 wants to merge 2 commits intofagramdesktop:devfrom
Open
feat: remove client and server-side message restrictions#28rhcp011235 wants to merge 2 commits intofagramdesktop:devfrom
rhcp011235 wants to merge 2 commits intofagramdesktop:devfrom
Conversation
- Forward messages from channels/chats/users with noforwards set by rerouting through SendExistingDocument/Photo or re-uploading from local cache to bypass server-side CHAT_FORWARDS_RESTRICTED - Allow saving/downloading media from restricted channels (forbidsSaving) - Allow copying text from restricted channels (hasCopyRestriction) - Allow forwarding view-once media by suppressing ttlSeconds client-side - Suppress auto-delete timer for incoming messages (same pattern as anti-delete) - Disable sponsored messages by default (disable_ads defaults to true) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove the gatekeeping in CheckMessageMedia() and CreateMedia() that
forced TTL photos and videos down the service-message path ("please
view on your mobile"). They now display as normal media, consistent
with the existing MediaFile::ttlSeconds() -> 0 patch.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
Confirmed "Disappearing" photos and videos are visible from the desktop now and you can save them :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NoForwardsflag throughSendExistingDocument/SendExistingPhotoor local file re-upload to bypass server-sideCHAT_FORWARDS_RESTRICTEDforbidsSaving()no longer blocks whenforbidsForward()is clearedhasCopyRestriction()cleared viaallowsForwarding()returningtrueMediaFile::ttlSeconds()returns 0 and TTL photos/videos now display as normal media instead of showing "please view on your mobile" service messageapplyTTL()skips destruction for incoming messages, same pattern as anti-deletedisable_adssetting default changed totrue(still toggleable in FAgram settings)Test plan
🤖 Generated with Claude Code