0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-01 00:08:22 +02:00

modules/client/createroom: Abort room creation for DM's if error inviting counter-party.

This commit is contained in:
Jason Volk 2019-07-11 20:02:16 -07:00
parent f4600bb002
commit ef670cc8b9

View file

@ -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)
{