update posts list after vote

This commit is contained in:
csoler 2022-07-09 15:49:33 +02:00
parent 73279db2c5
commit 1089d1470e

View File

@ -1190,8 +1190,7 @@ void PostedListWidgetWithModel::subscribeGroup(bool subscribe)
RsThread::async([=]() RsThread::async([=]()
{ {
uint32_t token; rsPosted->subscribeToBoard(grpId, subscribe);
rsPosted->subscribeToGroup(token,grpId, subscribe);
} ); } );
} }
@ -1210,6 +1209,8 @@ void PostedListWidgetWithModel::voteMsg(RsGxsGrpMsgIdPair msg,bool up_or_down)
RsGxsMessageId vote_id; RsGxsMessageId vote_id;
if(!rsPosted->voteForPost(msg.first,msg.second,voter_id,tvote,vote_id,error_str)) if(!rsPosted->voteForPost(msg.first,msg.second,voter_id,tvote,vote_id,error_str))
QMessageBox::critical(nullptr,tr("Could not vote"), tr("Error occured while voting: ")+QString::fromStdString(error_str)); QMessageBox::critical(nullptr,tr("Could not vote"), tr("Error occured while voting: ")+QString::fromStdString(error_str));
else
updateDisplay(true);
} }
#ifdef TODO #ifdef TODO