diff --git a/src/chat_gui4.cpp b/src/chat_gui4.cpp index bf05c40..e089040 100644 --- a/src/chat_gui4.cpp +++ b/src/chat_gui4.cpp @@ -668,7 +668,7 @@ float ChatGui4::render(float time_delta) { // TODO: dedup? ImGui::TextDisabled("_"); } else { - const auto list = msg_reg.get(e).ts; + const auto& list = msg_reg.get(e).ts; // wrongly assumes contacts never get removed from a group if (sub_contacts != nullptr && list.size() < sub_contacts->size()) { // if partically delivered