gxsforums: enable next unread button even for blank (missing) post

This commit is contained in:
chelovechishko 2020-07-06 03:59:21 +09:00
parent ee967c2bc0
commit 98cf944f92

View File

@ -1126,6 +1126,7 @@ void GxsForumThreadWidget::insertMessage()
/* blank text, incase we get nothing */
blankPost();
ui->nextUnreadButton->setEnabled(true);
// We use this instead of getCurrentIndex() because right here the currentIndex() is not set yet.
@ -1242,6 +1243,7 @@ void GxsForumThreadWidget::insertMessageData(const RsGxsForumMsg &msg)
bool redacted =
(overall_reputation == RsReputationLevel::LOCALLY_NEGATIVE);
// TODO enabled even when there are no new message
ui->nextUnreadButton->setEnabled(true);
ui->lineLeft->show();
ui->time_label->setText(DateTime::formatLongDateTime(msg.mMeta.mPublishTs));