mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05: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([=]()
|
||||
{
|
||||
uint32_t token;
|
||||
rsPosted->subscribeToGroup(token,grpId, subscribe);
|
||||
rsPosted->subscribeToBoard(grpId, subscribe);
|
||||
} );
|
||||
}
|
||||
|
||||
@ -1210,6 +1209,8 @@ void PostedListWidgetWithModel::voteMsg(RsGxsGrpMsgIdPair msg,bool up_or_down)
|
||||
RsGxsMessageId vote_id;
|
||||
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));
|
||||
else
|
||||
updateDisplay(true);
|
||||
}
|
||||
|
||||
#ifdef TODO
|
||||
|
Loading…
Reference in New Issue
Block a user