message_edit: Display GIF button when Giphy is enabled.

CZO discussion:
https://chat.zulip.org/#narrow/stream/9-issues/topic/no.20GIF.20button.20when.20editing/near/1639551
This commit is contained in:
Karl Stolley
2023-09-14 09:33:45 -05:00
committed by Tim Abbott
parent 72fa8b568c
commit 5737c558cb

View File

@@ -20,6 +20,7 @@ import * as condense from "./condense";
import * as confirm_dialog from "./confirm_dialog";
import * as dialog_widget from "./dialog_widget";
import * as echo from "./echo";
import * as giphy from "./giphy";
import {$t, $t_html} from "./i18n";
import * as keydown_util from "./keydown_util";
import * as loading from "./loading";
@@ -445,6 +446,7 @@ function edit_message($row, raw_content) {
is_editable,
content: raw_content,
file_upload_enabled,
giphy_enabled: giphy.is_giphy_enabled(),
minutes_to_edit: Math.floor(page_params.realm_message_content_edit_limit_seconds / 60),
max_message_length: page_params.max_message_length,
}),