Skip to content

Commit

Permalink
update subs
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Dec 12, 2023
1 parent 4248d1d commit 1cdde51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/message_image_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "./image_loader_sdl_bmp.hpp"
#include "./image_loader_stb.hpp"
#include "./image_loader_webp.hpp"
#include "./media_meta_info_loader.hpp"

#include <solanaceae/message3/components.hpp>

Expand All @@ -22,6 +23,10 @@ std::optional<TextureEntry> MessageImageLoader::load(TextureUploaderI& tu, Messa
return std::nullopt;
}

if (m.all_of<Message::Components::TagNotImage>()) {
return std::nullopt;
}

if (m.all_of<Message::Components::Transfer::FileInfoLocal>()) {
const auto& file_list = m.get<Message::Components::Transfer::FileInfoLocal>().file_list;
assert(!file_list.empty());
Expand Down

0 comments on commit 1cdde51

Please sign in to comment.