diff --git a/src/include/thor.h b/src/include/thor.h index 649f5d23..06926992 100644 --- a/src/include/thor.h +++ b/src/include/thor.h @@ -251,7 +251,6 @@ public: void send_image(); void send_avatar(); void thor_send_avatar(); - void thor_send_image(); void thor_send_image(std::string s = ""); }; diff --git a/src/thor/thor.cxx b/src/thor/thor.cxx index 6d3dbf42..6c16d5a9 100644 --- a/src/thor/thor.cxx +++ b/src/thor/thor.cxx @@ -1358,8 +1358,10 @@ void thor::send_image() { } void thor::thor_send_image(std::string image_str) { - if (!image_str.empty()) hide_after_sending = true; - imageheader = image_str; + if (!image_str.empty()) { + hide_after_sending = true; + imageheader = image_str; + } if (txstate == TX_STATE_RECEIVE) start_tx(); }