mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
modules/media: Purge the file room after creation if operation does not complete.
Related to #86.
This commit is contained in:
parent
864cdd6405
commit
e3acf68bf2
1 changed files with 4 additions and 0 deletions
|
@ -248,6 +248,10 @@ try
|
|||
};
|
||||
|
||||
create(room, user_id, "file");
|
||||
const unwind::exceptional purge{[&room]
|
||||
{
|
||||
m::room::purge(room);
|
||||
}};
|
||||
|
||||
const size_t written
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue