Skip to content

Feat - Hide voice video button - #190

Open
crazypeace wants to merge 3 commits into
forkgram:devfrom
crazypeace:feat-hide-voice-video-button-for-pr-validate
Open

Feat - Hide voice video button#190
crazypeace wants to merge 3 commits into
forkgram:devfrom
crazypeace:feat-hide-voice-video-button-for-pr-validate

Conversation

@crazypeace

Copy link
Copy Markdown

This feat is to hide voice video button in message window.

Fork Settings
image

Effect
Whatever textarea is empty or not, the voice video button don't display.
image

To be honest, I know that my fork is not a perfect practice.
But I think the core code logic is done.
I already tested the win10 amd64 compile result.

You can just pick the code you need.
Or, please tell me where I need to improve, I will try my best.
But, to be honest, I just said human language to agent to develop the code.

Add a new ForkSettings boolean 'hideVoiceVideoButton' (default false) that,
when enabled, hides the voice/video message record button in the compose bar.

- core/fork_settings.{h,cpp}: serialize/read/reset/getter/setter
- settings/sections/settings_fork.cpp: toggle row in Fork settings
- history/history_widget.cpp: gate in HistoryWidget::showRecordButton()
  (main chat window) plus reactive refresh subscription
- history_view_compose_controls.cpp: reactive refresh subscription
  (scheduled section / replies / shortcut message editor)
- langs/lang.strings: lng_settings_hide_voice_video_button key

Based on upstream forkgram/tdesktop dev (0c13bf6).
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.

1 participant