mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-29 09:18:45 -04:00
added items for encoding subscription requests and the logic to create them from GUI calls
This commit is contained in:
parent
2591e3ff25
commit
d01c61fde8
6 changed files with 203 additions and 43 deletions
|
@ -621,10 +621,14 @@ void IdDialog::acceptCircleSubscription()
|
|||
if (!item)
|
||||
return ;
|
||||
|
||||
#warning we have to find a way to get the correct own id here.
|
||||
|
||||
RsGxsId own_id ;
|
||||
|
||||
QString coltext = item->text(CIRCLEGROUP_CIRCLE_COL_GROUPID);
|
||||
RsGxsCircleId circle_id ( coltext.toStdString()) ;
|
||||
|
||||
rsGxsCircles->requestCircleMembership(circle_id) ;
|
||||
rsGxsCircles->requestCircleMembership(own_id,circle_id) ;
|
||||
}
|
||||
|
||||
void IdDialog::refuseCircleSubscription()
|
||||
|
@ -633,11 +637,15 @@ void IdDialog::refuseCircleSubscription()
|
|||
|
||||
if (!item)
|
||||
return ;
|
||||
|
||||
#warning we have to find a way to get the correct own id here.
|
||||
RsGxsId own_id ;
|
||||
|
||||
|
||||
QString coltext = item->text(CIRCLEGROUP_CIRCLE_COL_GROUPID);
|
||||
RsGxsCircleId circle_id ( coltext.toStdString()) ;
|
||||
|
||||
rsGxsCircles->cancelCircleMembership(circle_id) ;
|
||||
rsGxsCircles->cancelCircleMembership(own_id,circle_id) ;
|
||||
}
|
||||
|
||||
void IdDialog::CircleListCustomPopupMenu( QPoint )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue