powered by Jive Software

How to disable or remove the "show empty groups" and "show offline users" in spark client?

Hi,

how to disable or remove the “show empty groups” and “show offline users” in spark client?

Any answers is very much appreciated.

Thanks

I don’t think you can. You would need to remove it from the Contacts Menu in the source code, then compile your own custom Spark.

1 Like

Jason,

What is the path location of the source code the you mentioned above? and would you mind give me some tips or steps on how to compile spark for starters. Thanks, Jason this will be a big help again…

Hi Jay, i’m looking for similar information and found this: http://community.igniterealtime.org/docs/DOC-1521

HTH

1 Like

yes, that guide looks good. there are many ways to compile spark, the guide uses the Netbeans IDE to help out.

@jay, regarding where to modify…

Spark source code is available at: https://github.com/igniterealtime/Spark

you can either download a zip of the latest source code by clicking the “Download Zip” button in the bottom right corner, or you can use git to clone the repo if you are familiar with git. All of Spark’s own source code is located in the src/java directory. Everything else in the repo is supporting stuff to either let spark run or help build it.

org.jivesoftware.spark.ui.ContactList class will have what you are looking for. Looks like around line 1992 through 2014 may be of interest to you.

You could just comment out the lines that add the options to that menu… such as lines 1993, 2002, 2011. Each line should be pretty explanatory of what it’s doing.

1 Like

Thanks a lot, Jason and Peter! Very well explained indeed…