forked from cadence/out-of-your-element
remember any room avatars set on matrix-side
This commit is contained in:
parent
bfe9efe62e
commit
92cd628a6c
5 changed files with 40 additions and 7 deletions
|
@ -42,6 +42,7 @@ function diffKState(actual, target) {
|
|||
const diff = {}
|
||||
// go through each key that it should have
|
||||
for (const key of Object.keys(target)) {
|
||||
if (!key.includes("/")) throw new Error(`target kstate's key "${key}" does not contain a slash separator; if a blank state_key was intended, add a trailing slash to the kstate key.`)
|
||||
if (key in actual) {
|
||||
// diff
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue