"use strict";

require('../stanza/visibility');


module.exports = function (client) {
    client.goInvisible = function (cb) {
        return this.sendIq({
            type: 'set',
            invisible: true
        });
    };

    client.goVisible = function (cb) {
        return this.sendIq({
            type: 'set',
            visible: true
        });
    };
};

@@ -204,32 +204,36 @@
 : true%0A        %7D
+, cb
 );%0A    %7D;%0A%0A    c
@@ -355,16 +355,20 @@
        %7D
+, cb
 );%0A    %7D

Call callbacks for invisible commands