ab4661b5c6
The "Unpin all" button called deactivate_active_pinned_message() first, then looped over users to unpin. If Telegram API calls failed or timed out, the message was already marked inactive in the DB with no way to retry. Now: get active message → unpin from all chats → deactivate in DB.