mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd:Ⓜ️:room::origins: Fix bug causing repeated last result.
This commit is contained in:
parent
549e4df476
commit
10a1468676
1 changed files with 3 additions and 2 deletions
|
@ -269,10 +269,11 @@ const
|
|||
{
|
||||
assert(!last.empty());
|
||||
assert(last.size() < sizeof(lastbuf));
|
||||
repeat = 0;
|
||||
lastbuf[last.size() - 1]++;
|
||||
char keybuf[dbs::ROOM_JOINED_KEY_MAX_SIZE];
|
||||
seek(it, dbs::room_joined_key(keybuf, room.room_id, last));
|
||||
repeat = 0;
|
||||
if(!seek(it, dbs::room_joined_key(keybuf, room.room_id, last)))
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue