Icq message encoding.

cusax-fix
Damian Minkov 19 years ago
parent c15c15ae1e
commit 3d57bd8438

@ -12,6 +12,7 @@
import net.java.sip.communicator.service.protocol.Message; import net.java.sip.communicator.service.protocol.Message;
import net.java.sip.communicator.service.protocol.event.*; import net.java.sip.communicator.service.protocol.event.*;
import net.java.sip.communicator.util.*; import net.java.sip.communicator.util.*;
import net.kano.joscar.*;
import net.kano.joscar.flapcmd.*; import net.kano.joscar.flapcmd.*;
import net.kano.joscar.snac.*; import net.kano.joscar.snac.*;
import net.kano.joscar.snaccmd.error.*; import net.kano.joscar.snaccmd.error.*;
@ -402,7 +403,12 @@ public void registrationStateChanged(RegistrationStateChangeEvent evt)
if(icqProvider.USING_ICQ) if(icqProvider.USING_ICQ)
retreiveOfflineMessages(); retreiveOfflineMessages();
String customMessageEncoding = null;
if((customMessageEncoding =
System.getProperty("icq.custom.message.charset")) != null)
OscarTools.setDefaultCharset(customMessageEncoding);
// run keepalive thread // run keepalive thread
if(keepAliveSendTask == null) if(keepAliveSendTask == null)
{ {

@ -417,6 +417,14 @@ public void postTestSubscribe()
// remove it // remove it
operationSetPresence1.unsubscribe(subEvt.getSourceContact()); operationSetPresence1.unsubscribe(subEvt.getSourceContact());
// wait remove to be finished
Object lock = new Object();
synchronized(lock){
try{
lock.wait(3000);
}catch (Exception e){}
}
// add it // add it
operationSetPresence1.addSubsciptionListener(subEvtCollector); operationSetPresence1.addSubsciptionListener(subEvtCollector);
subEvtCollector.collectedEvents.clear(); subEvtCollector.collectedEvents.clear();

Loading…
Cancel
Save