0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd:Ⓜ️:room::head: Add condition to fix duplicate append.

This commit is contained in:
Jason Volk 2020-02-19 12:45:04 -08:00
parent ec78085e45
commit 4f924bd280

View file

@ -142,6 +142,8 @@ try
this->depth[1] = std::get<1>(top_head); this->depth[1] = std::get<1>(top_head);
need_top_head = false; need_top_head = false;
--limit; --limit;
if(need_my_head && event::my(std::get<event::idx>(top_head)))
need_my_head = false;
} }
// If the iteration did not provide us with any heads from this origin // If the iteration did not provide us with any heads from this origin