Merged
Conversation
- introduce `PollComposerSheet` and `PollDraft` to support creating and sending polls with options for quiz mode, anonymity, multiple answers, and scheduling - add document attachment support by implementing `copyUriToTempDocumentPath` and updating `ChatInputBar` to handle file selection - update `ChatInputBar` and `InputPreviewSection` to display previews for pending document attachments with file size and name metadata - extend `MessageRepository` and `MessageRemoteDataSource` with `sendPoll` and `sendDocument` functionality using TDLib - refine `GalleryScreen` and `AttachBotsSection` to include quick action buttons for "File" and "Create poll" - adjust `SettingsTextField` and `PollSwitchRow` to improve UI consistency in the poll composer and chat creation screens - enhance `InputBarSendButton` logic to correctly handle the send/record state when files or polls are pending - add necessary string resources for poll configuration and file attachment labels
- replace `ModalBottomSheet` with a custom `Dialog` implementation to provide better control over drag-to-dismiss behavior and layout - implement drag-and-drop reordering for poll options using `detectDragGesturesAfterLongPress` and `graphicsLayer` transformations - add `PollOptionInputRow` component to handle individual option inputs with integrated drag handles and removal actions - ensure `correctOptionIds` are automatically remapped when poll options are moved to maintain quiz integrity - enhance the UI with smoother animations for vertical dragging and dismissal - refine `poll_multiple_choice` string resource by removing the leading bullet point separator
…alization - update `Poll` and `PollType.Quiz` models to support optional descriptions, multiple correct answers, revoting, and shuffled options - redesign `PollMessageBubble` with a more modern "Hero" header, detailed metadata pills, and improved option cards with animations - implement a comprehensive `PollComposerSheet` featuring drag-and-drop reordering, interactive quiz mode settings, and a deadline picker - add localized strings for poll creation and metadata across multiple languages (pt-rBR, hy, ru-rRU, sk, es, tr, uk, zh-rCN) - enhance `MessageContentMapper` to handle multiple correct option IDs for quiz-type polls - improve poll UI feedback with specialized "Correct" and "Wrong" state indicators and animated content transitions - fix poll closing logic with real-time countdown timers and "results hidden until close" status indicators
…tion - convert `chats_selected_format` from a static string to a `<plurals>` resource across multiple locales (English, Portuguese, Armenian, Russian, Slovak, Spanish, Ukrainian, and Chinese) - update `ChatListContent.kt` to use `pluralStringResource` for the selection counter in the UI - fix character escaping in Ukrainian localization for poll creation labels
- add missing localized strings for poll creation (questions, options, quiz mode, and expiration settings) across multiple languages including pt-BR, hy, ru, sk, es, tr, uk, and zh-CN
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.
No description provided.