mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/client/createroom: Abort room creation for DM's if error inviting counter-party.
This commit is contained in:
parent
f4600bb002
commit
ef670cc8b9
1 changed files with 5 additions and 0 deletions
|
@ -361,6 +361,11 @@ try
|
|||
e.errcode(),
|
||||
e.errstr()
|
||||
};
|
||||
|
||||
// For DM's if we can't invite the counter-party there's no point in
|
||||
// creating the room, we can just abort instead.
|
||||
if(json::get<"is_direct"_>(c))
|
||||
throw;
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue