mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
update posts list after vote
This commit is contained in:
parent
73279db2c5
commit
1089d1470e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user