setInactive method
- {bool sendNonza = true}
Tells the server to optimize traffic following XEP-0352
If sendNonza
is false, then no nonza is sent. This is useful
for setting up the CSI manager for Bind2.
Implementation
Future<void> setInactive({bool sendNonza = true}) async {
_isActive = false;
if (sendNonza) {
final attrs = getAttributes();
if (await isSupported()) {
attrs.sendNonza(CSIInactiveNonza());
}
}
}