mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Fix variable shadowing on clang
This commit is contained in:
parent
e4dedbcaba
commit
00f99d9ae5
1 changed files with 3 additions and 3 deletions
|
@ -878,9 +878,9 @@ Cache::saveState(const mtx::responses::Sync &res)
|
||||||
txn.commit();
|
txn.commit();
|
||||||
|
|
||||||
for (const auto &room : res.rooms.join) {
|
for (const auto &room : res.rooms.join) {
|
||||||
auto txn = lmdb::txn::begin(env_);
|
auto tmpTxn = lmdb::txn::begin(env_);
|
||||||
notifyForReadReceipts(txn, room.first);
|
notifyForReadReceipts(tmpTxn, room.first);
|
||||||
txn.commit();
|
tmpTxn.commit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue