mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Prevent warning on empty user requests
This commit is contained in:
parent
a402e85a0f
commit
1b0af04cc8
1 changed files with 3 additions and 0 deletions
|
@ -2414,6 +2414,9 @@ Cache::joinedRooms()
|
|||
std::optional<MemberInfo>
|
||||
Cache::getMember(const std::string &room_id, const std::string &user_id)
|
||||
{
|
||||
if (user_id.empty())
|
||||
return std::nullopt;
|
||||
|
||||
try {
|
||||
auto txn = lmdb::txn::begin(env_, nullptr, MDB_RDONLY);
|
||||
|
||||
|
|
Loading…
Reference in a new issue