Fixed Wire counts to use own Wire Page

* Disabled unfinished feeds
This commit is contained in:
defnax 2026-01-12 21:51:33 +01:00
parent 4d1de11905
commit bcaca4ca2d
4 changed files with 17 additions and 14 deletions

View File

@ -531,14 +531,14 @@ void NewsFeed::handleWireEvent(std::shared_ptr<const RsEvent> event)
case RsWireEventCode::NEW_POST:
addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
break;
case RsWireEventCode::NEW_REPLY:
addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
break;
case RsWireEventCode::NEW_REPUBLISH:
addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
break;
case RsWireEventCode::NEW_LIKE:
addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
// case RsWireEventCode::NEW_REPLY:
// addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
// break;
// case RsWireEventCode::NEW_REPUBLISH:
// addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
// break;
// case RsWireEventCode::NEW_LIKE:
// addFeedItem( new WireNotifyPostItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, pe->mWireMsgId, false, true));
break;
case RsWireEventCode::WIRE_UPDATED:
addFeedItem( new WireNotifyGroupItem(this, NEWSFEED_WIRELIST, pe->mWireGroupId, false, true));

View File

@ -166,7 +166,7 @@ private:
virtual void loadRequest(const TokenQueue *queue, const TokenRequest &req) override;
virtual QString settingsGroupName() override{ return "PostedDialog"; }
virtual QString settingsGroupName() override{ return "WireDialog"; }
virtual GxsMessageFrameWidget *messageWidget(const RsGxsGroupId &groupId) override;
int mGroupSet;

View File

@ -46,17 +46,17 @@ QIcon WireUserNotify::getMainIcon(bool hasNew)
return hasNew ? FilesDefs::getIconFromQtResourcePath(":/icons/png/wire-notify.png") : FilesDefs::getIconFromQtResourcePath(":/icons/png/wire-circle.png");
}
//QString PostedUserNotify::getTrayMessage(bool plural)
//QString WireUserNotify::getTrayMessage(bool plural)
//{
// return plural ? tr("You have %1 new board posts") : tr("You have %1 new board post");
// return plural ? tr("You have %1 new wire pulse") : tr("You have %1 new wire pulse");
//}
//QString PostedUserNotify::getNotifyMessage(bool plural)
//QString WireUserNotify::getNotifyMessage(bool plural)
//{
// return plural ? tr("%1 new board post") : tr("%1 new board post");
// return plural ? tr("%1 new wire pulse") : tr("%1 new wire pulse");
//}
void WireUserNotify::iconClicked()
{
MainWindow::showWindow(MainWindow::Wire);
}
}

View File

@ -36,6 +36,9 @@ private:
virtual QIcon getIcon() override;
virtual QIcon getMainIcon(bool hasNew) override;
//virtual QString getTrayMessage(bool plural) override;
//virtual QString getNotifyMessage(bool plural) override;
virtual void iconClicked() override;
};