Prevent new packs from overwriting the default pack by accident
This commit is contained in:
parent
4bf725379a
commit
7fab9a1d73
3 changed files with 47 additions and 1 deletions
|
|
@ -82,8 +82,10 @@ SingleImagePackModel *
|
|||
ImagePackListModel::newPack(bool inRoom)
|
||||
{
|
||||
ImagePackInfo info{};
|
||||
if (inRoom)
|
||||
if (inRoom) {
|
||||
info.source_room = room_id;
|
||||
info.state_key = SingleImagePackModel::unconflictingStatekey(room_id, "");
|
||||
}
|
||||
return new SingleImagePackModel(info);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue