mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Removed transcribe buttons from scheduled messages.
This commit is contained in:
@@ -440,6 +440,7 @@ QSize Document::countOptimalSize() {
|
|||||||
const auto session = &history->session();
|
const auto session = &history->session();
|
||||||
const auto transcribes = &session->api().transcribes();
|
const auto transcribes = &session->api().transcribes();
|
||||||
if (_parent->data()->media()->ttlSeconds()
|
if (_parent->data()->media()->ttlSeconds()
|
||||||
|
|| _realParent->isScheduled()
|
||||||
|| (!session->premium()
|
|| (!session->premium()
|
||||||
&& !transcribes->freeFor(_realParent)
|
&& !transcribes->freeFor(_realParent)
|
||||||
&& !transcribes->trialsSupport())) {
|
&& !transcribes->trialsSupport())) {
|
||||||
|
@@ -2063,6 +2063,7 @@ bool Gif::needCornerStatusDisplay() const {
|
|||||||
void Gif::ensureTranscribeButton() const {
|
void Gif::ensureTranscribeButton() const {
|
||||||
if (_data->isVideoMessage()
|
if (_data->isVideoMessage()
|
||||||
&& !_parent->data()->media()->ttlSeconds()
|
&& !_parent->data()->media()->ttlSeconds()
|
||||||
|
&& !_parent->data()->isScheduled()
|
||||||
&& (_data->session().premium()
|
&& (_data->session().premium()
|
||||||
|| _data->session().api().transcribes().trialsSupport())) {
|
|| _data->session().api().transcribes().trialsSupport())) {
|
||||||
if (!_transcribe) {
|
if (!_transcribe) {
|
||||||
|
Reference in New Issue
Block a user