The behavior where alias errors are ignored is kinda coincidental here, but it's desirable so putting it in a test prevents us from breaking it later.
31 lines
790 B
Text
31 lines
790 B
Text
// The "leave" setting is enabled, but we have an error migrating the global
|
|
// 'm.direct' account data event. Because leaving rooms may change 'm.direct'
|
|
// on the old user, we don't want to leave any rooms.
|
|
{
|
|
"settings": {
|
|
"leave": true
|
|
},
|
|
"rooms": {
|
|
"!room:example.com": [
|
|
{
|
|
"type": "m.room.member",
|
|
"state_key": "@old:example.com",
|
|
"content": {
|
|
"membership": "join"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"old_user": {
|
|
"user_id": "@old:example.com",
|
|
|
|
"global_account_data": {
|
|
"m.direct": {
|
|
"@user-a:example.com": "a string",
|
|
}
|
|
}
|
|
},
|
|
"new_user": {
|
|
"user_id": "@new:example.com"
|
|
}
|
|
}
|