mirror of
https://github.com/matrix-construct/construct
synced 2025-04-12 04:51:07 +02:00
modules/console: Improve UX for room events with missing depth=0.
This commit is contained in:
parent
1babba0e98
commit
d2744f02c9
1 changed files with 4 additions and 3 deletions
|
@ -7687,9 +7687,10 @@ console_cmd__room__events(opt &out, const string_view &line)
|
||||||
room_id
|
room_id
|
||||||
};
|
};
|
||||||
|
|
||||||
m::room::messages it{room};
|
m::room::messages it
|
||||||
if(depth >= 0 && depth < std::numeric_limits<int64_t>::max())
|
{
|
||||||
it.seek(depth);
|
room, uint64_t(depth >= 0? depth : -1)
|
||||||
|
};
|
||||||
|
|
||||||
for(; it && limit >= 0; order == 'b'? --it : ++it, --limit)
|
for(; it && limit >= 0; order == 'b'? --it : ++it, --limit)
|
||||||
if(roots)
|
if(roots)
|
||||||
|
|
Loading…
Add table
Reference in a new issue