Commit 8d495d30 authored by rlanvin's avatar rlanvin

Fix #487

Emptying the resources array when the resource is null
parent 226e2e91
......@@ -4192,6 +4192,13 @@
this.save({'resources': resources});
}
}
else {
// if there is no resource (resource is null), it probably
// means that the user is now completely offline. To make sure
// that there isn't any "ghost" resources left, we empty the array
this.save({'resources': []});
return 0;
}
return resources.length;
},
......
......@@ -15,6 +15,7 @@
- #547 By default the `offline` state is no longer choosable.
See [include_offline_state](https://conversejs.org/docs/html/configuration.html#include_offline_state) for details. [jcbrand]
- A chatroom invite might come from someone not in your roster list. [ben]
- #487 Empty the resources array when the resource is null [rlanvin]
## 0.10.0 (2015-11-05)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment