(int myStatus, String myMessage, int myPriority)
| 1017 | |
| 1018 | //#ifndef WMUC |
| 1019 | public void multicastConferencePresence(int myStatus, String myMessage, int myPriority) { |
| 1020 | //if (!cf.autoJoinConferences) return; //requested to disable |
| 1021 | if (myStatus == Presence.PRESENCE_INVISIBLE) { |
| 1022 | return; //block multicasting presence invisible |
| 1023 | } |
| 1024 | synchronized (hContacts) { |
| 1025 | int j = hContacts.size(); |
| 1026 | for (int i = 0; i < j; i++) { |
| 1027 | Contact c = (Contact) hContacts.elementAt(i); |
| 1028 | if (c.origin != Contact.ORIGIN_GROUPCHAT) { |
| 1029 | continue; |
| 1030 | } |
| 1031 | if (!((MucContact) c).commonPresence) { |
| 1032 | continue; // stop if room left manually |
| 1033 | } |
| 1034 | ConferenceGroup confGroup = (ConferenceGroup) c.group; |
| 1035 | |
| 1036 | if (!confGroup.inRoom) { |
| 1037 | continue; // don`t reenter to leaved rooms |
| 1038 | } |
| 1039 | Contact myself = confGroup.selfContact; |
| 1040 | |
| 1041 | if (c.status == Presence.PRESENCE_OFFLINE) { |
| 1042 | Conference.join(confGroup.name, myself.getJid().toString(), confGroup.password, myself.nick, 20); |
| 1043 | continue; |
| 1044 | } |
| 1045 | Presence presence = new Presence(myStatus, myPriority, myMessage, null); |
| 1046 | presence.setTo(myself.jid.getBare()); |
| 1047 | sd.getTheStream().send(presence); |
| 1048 | } |
| 1049 | } |
| 1050 | } |
| 1051 | //#endif |
| 1052 | |
| 1053 | public void sendPresence(String to, String type, JabberDataBlock child, boolean conference) { //voffk: todo: check it! |
no test coverage detected