Skip to content

feat: show info message for unpinning - #8852

Open
r10s wants to merge 7 commits into
mainfrom
r10s/unpin-info-message
Open

r10s wants to merge 7 commits into
mainfrom
r10s/unpin-info-message

Conversation

@r10s

@r10s r10s commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

as recently discussed with @adbenitez and @Amzd, it is better to add an info message also for unpinning a message:

otherwise the message "Alice pinned a message" may look like a bug if there is nothing actually pinned as Bob unpinned for whatever reason afterwards.

technically, this is a simple change (famous last words) as a messages were always sent on pinning as well as on unpinning, but for unpinning, they were additionally hidden.

now the "unpin" info message is visible, however, still tuned down: it is not notified and it does not bubble up in the chatlist (both similar to many info messages about group changes)

ftr, this is a minor change, and it should not block ongoing releases wrt pinned messages

r10s added 5 commits October 20, 2026 17:02
without the "USER unpinned a message",
it looks like a bug if the last message reads "USER pinned a message",
but actually nothing is pinned.

the situation may easily happen,
if Alice pins a message,
and Bob unpins it, for whatever reason.
@r10s
r10s requested review from Hocuri and link2xt October 20, 2026 17:40
Comment thread src/stock_str.rs Outdated
Comment thread src/pinned_messages/pinned_messages_tests.rs Outdated
@link2xt link2xt changed the title show info message for unpinning feat: show info message for unpinning Oct 21, 2026
r10s added 2 commits October 21, 2026 17:04
the "Bar" message was needed to unsure _no_ unpin info mesage is added;
with this PR we actually want one, so the "Bar" message is no longer needed for testing.
@r10s
r10s enabled auto-merge (squash) October 21, 2026 15:09
// Bob receives message "Bar" and hidden message to unpin message "Foo"
bob.recv_msg(&sent3).await;
bob.recv_msg_trash(&sent4).await;
// Bob receives message "Bar" and the info message to unpin message "Foo"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is no message "Bar" anymore

@link2xt

link2xt commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

as for cargo-deny failure, the "fix" is at #8853

This branch has not been deployed

No deployments
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.

2 participants