|
|
@ -209,7 +209,9 @@ static void gone_secure(void *opdata, ConnContext *context){
|
|
|
|
OTRPlugin::plugin()->emitGoneSecure( ((Kopete::ChatSession*)opdata), 1 );
|
|
|
|
OTRPlugin::plugin()->emitGoneSecure( ((Kopete::ChatSession*)opdata), 1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBOTR_0400
|
|
|
|
session->setProperty("otr-instag", QString::number(context->their_instance));
|
|
|
|
session->setProperty("otr-instag", QString::number(context->their_instance));
|
|
|
|
|
|
|
|
#endif // HAVE_LIBOTR_0400
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Actually I've never seen this event but its implemented in case someone should receive it
|
|
|
|
/* Actually I've never seen this event but its implemented in case someone should receive it
|
|
|
@ -578,11 +580,13 @@ OtrlChatInterface::OtrlChatInterface(){
|
|
|
|
|
|
|
|
|
|
|
|
otrl_privkey_read_fingerprints(userstate, TQString(TDEGlobal::dirs()->saveLocation("data", "kopete_otr/", true )) + "fingerprints", NULL, NULL);
|
|
|
|
otrl_privkey_read_fingerprints(userstate, TQString(TDEGlobal::dirs()->saveLocation("data", "kopete_otr/", true )) + "fingerprints", NULL, NULL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBOTR_0400
|
|
|
|
otrl_instag_read(userstate, TQString(TDEGlobal::dirs()->saveLocation("data", "kopete_otr/", true )) + "instags");
|
|
|
|
otrl_instag_read(userstate, TQString(TDEGlobal::dirs()->saveLocation("data", "kopete_otr/", true )) + "instags");
|
|
|
|
|
|
|
|
|
|
|
|
unsigned int interval = otrl_message_poll_get_default_interval(userstate);
|
|
|
|
unsigned int interval = otrl_message_poll_get_default_interval(userstate);
|
|
|
|
forwardSecrecyTimerStart(interval);
|
|
|
|
forwardSecrecyTimerStart(interval);
|
|
|
|
connect(&m_forwardSecrecyTimer, SIGNAL(timeout()), this, SLOT(otrlMessagePoll()));
|
|
|
|
connect(&m_forwardSecrecyTimer, SIGNAL(timeout()), this, SLOT(otrlMessagePoll()));
|
|
|
|
|
|
|
|
#endif // HAVE_LIBOTR_0400
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -607,7 +611,9 @@ void OtrlChatInterface::forwardSecrecyTimerStop(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void OtrlChatInterface::otrlMessagePoll(){
|
|
|
|
void OtrlChatInterface::otrlMessagePoll(){
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBOTR_0400
|
|
|
|
otrl_message_poll(userstate, 0, 0);
|
|
|
|
otrl_message_poll(userstate, 0, 0);
|
|
|
|
|
|
|
|
#endif // HAVE_LIBOTR_0400
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/********************* Chat section ***************************/
|
|
|
|
/********************* Chat section ***************************/
|
|
|
|