version v0.6 bugfixes
This commit is contained in:
parent
8482bde3ed
commit
8b58785517
13 changed files with 36 additions and 75 deletions
|
@ -135,7 +135,7 @@ void UPDATENEWS::login()
|
|||
}
|
||||
|
||||
void UPDATENEWS::startsync()
|
||||
{ qDebug()<<"Friendiqa start syncing "<<syncindex <<" of "<<synclist.length();
|
||||
{ qDebug()<<"Friendiqa start syncing "<<syncindex <<" of "<<synclist.length(); //<< "Type "<<synclist[syncindex];
|
||||
//QObject::connect(&xhr,SIGNAL(success(QByteArray,QString)),this,SLOT(store(QByteArray,QString)));
|
||||
//QObject::connect(&xhr,SIGNAL(error(QString,QString,QString,int)),this,SLOT(showError(QString,QString,QString,int)));
|
||||
if (syncindex<synclist.length()){
|
||||
|
@ -351,6 +351,7 @@ void UPDATENEWS::store(QByteArray serverreply,QString apiname)
|
|||
if (apiname == "/api/direct_messages/all"){
|
||||
query.bindValue(1,"1");
|
||||
query.bindValue(5,"Friendica");
|
||||
query.bindValue(6,newsitem["id"].toString().toInt());
|
||||
if(newsitem["recipient"]["id"]!=QJsonValue::Null){ query.bindValue(7,newsitem["recipient"]["id"].toInt());}
|
||||
query.bindValue(10, newsitem["sender_id"].toInt());
|
||||
query.bindValue(11, newsitem["text"].toString().toUtf8().toBase64());
|
||||
|
@ -431,7 +432,6 @@ void UPDATENEWS::updateImageLocation(QString downloadtype,QString imageurl, QStr
|
|||
newcontactnames.clear();
|
||||
newcontactimagelinks.clear();
|
||||
if(m_updateInterval!=0){
|
||||
qDebug()<< "contactdownload finished!";
|
||||
syncindex+=1;
|
||||
startsync();
|
||||
}
|
||||
|
@ -446,7 +446,6 @@ void UPDATENEWS::updateImageLocation(QString downloadtype,QString imageurl, QStr
|
|||
newcontactnames.clear();
|
||||
newcontactimagelinks.clear();
|
||||
if(m_updateInterval!=0){
|
||||
qDebug()<< "friendrequests finished!";
|
||||
syncindex+=1;
|
||||
startsync();
|
||||
}
|
||||
|
@ -714,8 +713,13 @@ void UPDATENEWS::storeFriendrequests(QByteArray serverreply,QString apiname)
|
|||
|
||||
}
|
||||
if (newcontactimagelinks.length()>0){
|
||||
qDebug() << "start Friendrequests imagedownload";
|
||||
//qDebug() << "start Friendrequests imagedownload";
|
||||
startImagedownload("friendrequests");
|
||||
}else{
|
||||
if(m_updateInterval!=0){
|
||||
syncindex+=1;
|
||||
startsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue