Skip to content

Commit

Permalink
fix title not being evaluated when checking if embed is image-only
Browse files Browse the repository at this point in the history
  • Loading branch information
ouwou committed Sep 9, 2023
1 parent e3ad25f commit 67b23ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/chatmessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ Gtk::Widget *ChatMessageItemContainer::CreateReplyComponent(const Message &data)

bool ChatMessageItemContainer::IsEmbedImageOnly(const EmbedData &data) {
if (!data.Thumbnail.has_value()) return false;
if (data.Title.has_value()) return false;
if (data.Author.has_value()) return false;
if (data.Description.has_value()) return false;
if (data.Fields.has_value()) return false;
Expand Down

0 comments on commit 67b23ab

Please sign in to comment.