forked from Green-Sky/tomato
fix taking as copy instead of ref
major cause for temporary allocations
This commit is contained in:
parent
1faa7e5510
commit
02600a3bc6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user