mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-29 08:37:36 -04:00
Enable Republish / Likes from new UI elements
Update interface to use groupId / msgId. Tweak PulseAddDialog for Republish & like. Hide Like messages from showing in UI. Wire up buttons from new UI elements.
This commit is contained in:
parent
8df5a886db
commit
f585b7a629
7 changed files with 148 additions and 65 deletions
|
@ -47,8 +47,12 @@ void PulseDataItem::actionReply()
|
|||
std::cerr << std::endl;
|
||||
|
||||
if (mHolder) {
|
||||
std::string groupName = "unknownGroupName";
|
||||
mHolder->PVHreply(*mPulse, groupName);
|
||||
if (mPulse->mPulseType & WIRE_PULSE_TYPE_REFERENCE) {
|
||||
std::cerr << "PulseDataItem::actionReply() NO ACTION FOR REF";
|
||||
std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
mHolder->PVHreply(mPulse->mMeta.mGroupId, mPulse->mMeta.mMsgId);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -58,8 +62,12 @@ void PulseDataItem::actionRepublish()
|
|||
std::cerr << std::endl;
|
||||
|
||||
if (mHolder) {
|
||||
std::string groupName = "unknownGroupName";
|
||||
mHolder->PVHrepublish(*mPulse, groupName);
|
||||
if (mPulse->mPulseType & WIRE_PULSE_TYPE_REFERENCE) {
|
||||
std::cerr << "PulseDataItem::actionRepublish() NO ACTION FOR REF";
|
||||
std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
mHolder->PVHrepublish(mPulse->mMeta.mGroupId, mPulse->mMeta.mMsgId);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -69,8 +77,12 @@ void PulseDataItem::actionLike()
|
|||
std::cerr << std::endl;
|
||||
|
||||
if (mHolder) {
|
||||
std::string groupName = "unknownGroupName";
|
||||
mHolder->PVHlike(*mPulse, groupName);
|
||||
if (mPulse->mPulseType & WIRE_PULSE_TYPE_REFERENCE) {
|
||||
std::cerr << "PulseDataItem::actionLike() NO ACTION FOR REF";
|
||||
std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
mHolder->PVHlike(mPulse->mMeta.mGroupId, mPulse->mMeta.mMsgId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue