Commit Graph

135 Commits

Author SHA1 Message Date
Gioacchino Mazzurco
7bf4da0691
Avoid JSON operations on RsGxsIdGroup::mPgpIdSign
The field is actually a raw memory chunk even if declared as an
  std::string as result the produced JSON is broken and JSON API clients
  cannot parse the output of methods like rsIdentity/getIdentitiesInfo
A proper fix would be refactoring the whole code to use a proper raw
  memory buffer for that field but given there is no usage for a raw PGP
  signature on a client app as RetroShare library already verify it internally
  workaround the issue by just ignoring that field in JSON serial operations.
2021-06-22 08:24:11 +02:00
Phenom
47ad48cafd Fix Uninitialised in RsNxsGrp 2021-02-10 19:45:45 +01:00
csoler
d842c6fe52 Merge remote-tracking branch 'upstream/master' into v0.6-BugFixing_4 2020-11-28 21:34:32 +01:00
jolavillette
9324d9de6c More optimization of priorities 2020-11-26 20:29:51 +01:00
jolavillette
e8691e9b0f Priority optimization and fixes 2020-11-26 20:29:51 +01:00
csoler
2c7ee7ebeb added logic to keep track of circles activity from friend nodes and the methods to estimate when circles are not used 2020-11-24 18:33:16 +01:00
csoler
c1c6d33add new experimental set of priorities accounting for more recent statistics 2020-11-21 15:57:45 +01:00
csoler
dc90d6f6dc renamed SSGXSChannelGroup to GxsChannelGroupInfo, mCount in RsGxsChannelPost to mAttachmentCount and added a mCommentCount member. Also added some missing override in p3gxschannels.cc 2020-11-06 23:08:18 +01:00
drbob
0522c7907a Merge branch 'master' into TheWire-rework-ui 2020-07-30 21:45:59 +10:00
csoler
9133adbde8
added anti-clogging strategy in GXS. To be tested. 2020-06-29 21:03:17 +02:00
drbob
bcaef29d49 Merge branch 'master' into TheWire-rework-ui 2020-06-02 22:33:33 +10:00
drbob
f4457b1331 Fixup how REF message are displayed
Ensure RefImageCount is correct.
Update docs on m(Ref)GroupPtr points to
fill-in GroupPtrs on Ref Msgs.
Remove mRefAuthorName as not so useful.
Add images into Response Msgs.
Display Headshot / Images on Ref Msgs - if possible.
2020-05-19 19:40:12 +10:00
csoler
d52d9c909b
Merge pull request #1875 from csoler/v0.6-GxsGroup
Add group change notifications (e.g. circle invites, forum moderation, etc)
2020-05-17 22:37:03 +02:00
drbob
8df5a886db Move createOriginalPulse / createReplyPulse to libretroshare
message creation logic moved to libretroshare
GUI classes cleaned up.
2020-05-16 22:35:32 +10:00
drbob
ccf849159a update libretroshare interface for TheWire
expanded groups and msgs with additional data and images.
new interfaces for improved ui display of message
start moving fetch logic to libretroshare with blocking APIs.
2020-05-15 12:58:27 +10:00
csoler
e6edae27be
Merge pull request #1922 from PhenomRetroShare/Fix_SomeWarnings
Fix some warnings
2020-05-12 23:05:34 +02:00
Phenom
b40ca53f13 Fix warning: ‘n’ may be used uninitialized in this function
../../../trunk/libretroshare/src/rsitems/rsmsgitems.cc: In member
function ‘virtual void
RsMsgTags::serial_process(RsGenericSerializer::SerializeJob,
RsGenericSerializer::SerializeContext&)’:
../../../trunk/libretroshare/src/rsitems/rsmsgitems.cc:93:22: warning:
‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   93 |             uint32_t n ;
      |                      ^
2020-05-09 14:32:48 +02:00
defnax
38af9244a6 added spam box 2020-05-08 23:21:38 +02:00
csoler
ce6abe5d66
made GxsNotify for messages with more granularity. Removed RsGxsCircleMsg class that was not used. 2020-05-03 23:20:13 +02:00
Gioacchino Mazzurco
5610cc8600
Fix memory management and deprecated removal from serialization
Fix missing RsDiscPgpKeyItem initialization
Fix inconsistent new[]/delete[] usage in RsDiscPgpKeyItem and
  PGPHandler::exportPublicKey which now consistently uses malloc/free
Remove deprecated RsGenericSerializer::FORMAT_*
Move from deprecated RsServiceSerializer::SERIALIZATION_FLAG_* to
  RsSerializationFlags
Solve a bunch of compiler warnings
Stricter checks in SerializeContext costructor
2020-04-14 12:17:01 +02:00
drbob
124781c1e0 Fixup PulseAddDialog and underlying datatypes
Cleaned up UI, removing unnecessary sidebar.
Added cleanup of Dialog to reset properly
Disabled URL adder, until it is complete
Added ComboBox for reply sentiment
Only enable Post button when length between 1 and 999 characters
Add Icon to WireGroup (future proofing datatype)
2020-04-11 12:55:04 +10:00
csoler
4031b081c5
Merge pull request #1824 from drbob/photos_improve_sharing
Updates to PhotoSharing service
2020-03-08 23:14:38 +01:00
drbob
88f76c5fbb Update the data in photoitems
Update PhotoItem members
 - remove excessive fields in Photo
 - add RsGxsFile to Photo
 - update ShareMode for Album
 - renamed photo.mThumbnail to mLowResImage
Update Photo GUI
 - enable setting of AlbumExtra parameters.
 - added data for Ordering of photos
 - stop showing duplicates in PhotoSlideShow
2020-03-07 00:13:25 +11:00
csoler
ae932b605a
fixed 2 bugs causing forums and channels to be notified when already known and added notification list for posted 2020-03-04 19:17:09 +01:00
csoler
97e7df82c5
Merge pull request #1816 from csoler/v0.6-FT4
TokenQueue cleanup
2020-03-01 17:29:44 +01:00
csoler
4124585b55
removed unused print methods in some RsItems since now print is handled by serializer 2020-02-29 12:14:37 +01:00
drbob
24fd4ae3e7 Get the basics of TheWire service working
Added REF fields to Wire Msgs to allow replys to work well.
Added description of how the Message fields should be used.
Added WireGroupDialog for creation of WireGroups.
Updated PulseAddDialog to support publishing Pulses and Replies.
Added classes to display Pulses / Groups.
Added single selection point of WireGroup for publishing.
Added basic "refresh" to reload new GXS data.
2020-02-29 11:47:00 +11:00
drbob
fe62dc1345 Switch PhotoService to use GxsComments
WIP improvements to PhotoService:
 - switch p3photoservice to use gxcommentservice
 - clean out old RsPhotoComment classes
 - redesign PhotoDialog to use standard GxsCommentService classes
 - remove unneeded old Comment classes from GUI
 - fix indenting for PhotoDialog and p3photoservice.h
 - fix layout issue in Extra Widgets for GxsGroupDialog
2020-02-16 15:21:20 +11:00
drbob
1baa92f60c fixup serialisation and indentation 2020-02-15 11:39:29 +11:00
drbob
d04518fd55 Update RsPhotoItems and switch to GxsGroupDialog.
WIP improvements to PhotoService:
 - Switch from custom image to use RsGxsImage
 - Update classes for new Image class
 - fix serialiser for photos
 - switch group creation to use GxGroupDialog
 - tweak GxsGroupDialog to display extra Widgets
 - add AlbumExtra widget
2020-02-15 01:01:19 +11:00
drbob
d748278637 update code to get Wiki / Wire and PhotoShare compiling again 2020-02-10 22:24:47 +11:00
csoler
c544b1da7c
changed RsEvents so that it takes event types when registering handlers, which limits the number of handlers called for each event 2019-12-29 13:50:54 +01:00
Gioacchino Mazzurco
13ba26251c
Add support for GxsChanges as RsEvents 2019-05-03 16:57:38 +02:00
Gioacchino Mazzurco
de0dd63e3f
Remove a bunch of deadcode
RsSerializable already provide std::ostream &operator<<
Add deprecation notice for RsNotify
2019-05-03 16:55:57 +02:00
Gioacchino Mazzurco
b1285a5de7
Gossip discovery refinement
Rename from RsDisc to more descriptive RsGossipDiscovery
Keep full retrocompatibility suggesting usage of RsGossipDiscovery
Add capability to send and receive full RetroShare invitation
Emit event when receiving a full invitation
Start using new debug utilities
Use enum class instead of defines and constant where appropriate
2019-05-03 16:54:16 +02:00
csoler
bc8adb74c4
Merge pull request #1502 from defnax/added-group-icons-for-posted-links
Added group icons for posted links
2019-04-18 21:56:07 +02:00
csoler
3f75bff48b
first branch of faster turtle track for distant chat 2019-04-11 23:57:18 +02:00
G10h4ck
f4e13975b0
Merge pull request #1478 from G10h4ck/jsonapi
extend JSON API to identities, circles and reputation
2019-03-23 09:11:05 -03:00
defnax
b6c7afe989 Added for posted links group icons 2019-03-22 11:13:07 +01:00
defnax
c7e4986710 fixed serialization of posts with images
fix by cyril
2019-03-19 23:23:49 +01:00
Gioacchino Mazzurco
ea7773f86d
Refactor RsReputations for compatibility with JSON API 2019-02-15 15:29:36 -03:00
defnax
7cf17569c5 Added attach picture for posted links 2019-01-30 14:33:50 +01:00
G10h4ck
03cdd6c7b6
Merge pull request #1363 from G10h4ck/jsonapi
New cross-platform target retroshare-service
2018-10-16 16:06:09 +02:00
sehraf
e6febe0297
remove debug output 2018-10-12 18:20:55 +02:00
G10h4ck
047ae7f723
Merge branch 'master' into jsonapi 2018-10-10 22:23:28 +02:00
Gioacchino Mazzurco
329050a9c2
Use safer rstime_t instead of time_t
Avoid problems to serialization on different platforms, without breaking
nested STL containers serialization.

The conversion have been made with sed, and checked with grep, plus
kdiff3 visual ispection, plus rutime tests, so it should be fine.
2018-10-07 13:07:06 +02:00
Gioacchino Mazzurco
7cc15c703c
Fix forward declarations class struct missmatch 2018-10-03 19:07:46 +02:00
Gioacchino Mazzurco
eb77f921ec
Implement JSON API HTTP Basic authentication
jsonapi-generator is now capable of generating API for headers outside
  retroshare/ directory
jsonapi-generator do a bit of methods parameter sanity check
JsonApiServer is now integrated in the rsinit hell like other services
Add *::exportGPGKeyPairToString to a bunch of classes in cascade
RsControl is now capable of calling back a function when retroshare is almost
  completely stopped, this is useful when running retroshare toghether with
  externally managed runloop such as QCoreApplication
Expose a bunch of methods through JSON API
retroshare-nogui remove some dead code and fix stopping from the RetroShare API
2018-09-19 21:28:26 +02:00
csoler
b138263878
Merge pull request #1323 from csoler/v0.6-ForumAdmin
V0.6 forum admin
2018-09-11 15:17:33 +02:00
csoler
2b80c23f6a
fixed according to comments on PR 1334 2018-09-10 20:03:47 +02:00