fix taking as copy instead of ref

major cause for temporary allocations
This commit is contained in:
Green Sky 2024-11-30 16:01:29 +01:00
parent 1faa7e5510
commit 02600a3bc6
No known key found for this signature in database

View File

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