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:
parent
ec78085e45
commit
4f924bd280
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue