fix loading group

This commit is contained in:
defnax 2025-12-24 22:13:35 +01:00
parent 94846a7c2a
commit 5684cd1831

View file

@ -527,14 +527,14 @@ void PostedListWidgetWithModel::copyMessageLink()
void PostedListWidgetWithModel::editPost()
{
QModelIndex index = ui->postsTree->selectionModel()->currentIndex();
QModelIndex index = ui->postsTree->selectionModel()->currentIndex();
RsPostedPost post = index.data(Qt::UserRole).value<RsPostedPost>() ;
RsGxsId author_id;
ui->idChooser->getChosenId(author_id);
PostedCreatePostDialog *msgDialog = new PostedCreatePostDialog(rsPosted,post.mMeta.mGroupId,author_id, post.mMeta.mMsgId);
msgDialog->show();
PostedCreatePostDialog *msgDialog = new PostedCreatePostDialog(rsPosted, groupId(),author_id, post.mMeta.mMsgId);
msgDialog->show();
}
void PostedListWidgetWithModel::handleEvent_main_thread(std::shared_ptr<const RsEvent> event)