Repository navigation
feat: show a toast when reactions or forwarding are restricted - #69
Merged
macosswift merged 5 commits intoOct 29, 2026
Merged
Conversation
Collaborator
|
X-OrBit
force-pushed
the
feat/restricted-action-toasts
branch
from
October 25, 2026 16:11
c7fa0a6 to
4fdd44b
Compare
Collaborator
|
Collaborator
|
Please do not edit Localizable.strings — instead, add |
X-OrBit
force-pushed
the
feat/restricted-action-toasts
branch
from
October 27, 2026 18:05
4fdd44b to
2473860
Compare
X-OrBit
force-pushed
the
feat/restricted-action-toasts
branch
from
October 27, 2026 18:15
2473860 to
727d481
Compare
Contributor
Author
|
Fixed: members who unlocked restrictions with boosts could not use reactions. #83 ignored boosts when checking the permission (also broken on master). Now the check takes them into account, and the "cannot send reactions" toast shows only when reactions are really forbidden |
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.
Key change
Restricted actions now explain themselves, as on iOS:
Reason
displaySendReactionRestrictedToast).ChatPresentationInterfaceState.canSendReactionsmirrorscanSendReactionsToPeer(default and personalbanSendReactions, with the boost-to-unrestrict exception).ChatToasterViewgets an optional animated icon viachatInteraction.showAnimatedToaster. The icon isbanned.tgs, the gzipped iOSanim_banned.json(the same animation iOS uses for this toast), tinted with the text colour and played once. The onlyproject.pbxprojchange is the 4 lines that register this file.Screenshot/video result (before/after)
Restricted reactions
Before
restricted-reactions-before.mp4
After
restricted-reactions-after.mp4
Restricted copy/reply
Before
restricted-share-before.mp4
After
restricted-share-after.mp4
Star reaction
Before
After
Confirmation
Steps:
Expected: step 1 shows no reactions panel and the toast instead of a reaction; step 2 shows the restriction toast; step 3 shows a soft glow around the star without a square; step 4 works as before.
Actual: matches the expected behavior.
Environment: macOS 26.5.2 (25F84), Telegram for macOS 13.1.0 (283357), Debug build from Xcode, Apple Silicon.