forked from Green-Sky/tomato
prep message serl for file objects
This commit is contained in:
parent
92740c8dbe
commit
2d96139d4a
2
external/solanaceae_message_serializer
vendored
2
external/solanaceae_message_serializer
vendored
@ -1 +1 @@
|
||||
Subproject commit e574c4f7798ab8529879fb9f58795ac3c346daf6
|
||||
Subproject commit f83026beed88ef344ce5f59ea369eef152742e68
|
@ -1048,6 +1048,11 @@ void ChatGui4::renderMessageBodyText(Message3Registry& reg, const Message3 e) {
|
||||
|
||||
void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
||||
auto o = reg.get<Message::Components::MessageFileObject>(e).o;
|
||||
if (!o) {
|
||||
ImGui::TextDisabled("file message missing file object!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
!_show_chat_avatar_tf
|
||||
&& (
|
||||
@ -1457,7 +1462,7 @@ void ChatGui4::pasteFile(const char* mime_type) {
|
||||
size_t data_size = 0;
|
||||
void* data = SDL_GetClipboardData(mime_type, &data_size);
|
||||
|
||||
std::cout << "CG: pasted image of size " << data_size << " mime " << mime_type << "\n";
|
||||
std::cout << "CG: pasted image of size: " << data_size << " mimetype: " << mime_type << "\n";
|
||||
|
||||
_sip.sendMemory(
|
||||
static_cast<const uint8_t*>(data), data_size,
|
||||
|
@ -20,7 +20,7 @@ MainScreen::MainScreen(SimpleConfigModel&& conf_, SDL_Renderer* renderer_, Theme
|
||||
renderer(renderer_),
|
||||
conf(std::move(conf_)),
|
||||
rmm(cr),
|
||||
msnj{cr, {}, {}},
|
||||
msnj{cr, os, {}, {}},
|
||||
mts(rmm),
|
||||
sm(os),
|
||||
tc(save_path, save_password),
|
||||
|
Loading…
Reference in New Issue
Block a user