Skip to content

Commit 39ea84d

Browse files
committed
Fix option name.
1 parent ad25dc7 commit 39ea84d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

td/telegram/DialogActionManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void DialogActionManager::on_dialog_action(DialogId dialog_id, MessageId top_thr
201201
{
202202
auto rich_message_draft_info = action.get_rich_message_draft_info();
203203
if (rich_message_draft_info.message_ != nullptr) {
204-
auto period = td_->option_manager_->get_option_integer("pending_rich_message_message_period", 0);
204+
auto period = td_->option_manager_->get_option_integer("pending_text_message_period", 0);
205205
if (date > G()->unix_time() - period && dialog_type == DialogType::User && dialog_id == typing_dialog_id) {
206206
send_closure(G()->td(), &Td::send_update,
207207
td_api::make_object<td_api::updatePendingMessage>(

0 commit comments

Comments
 (0)