Skip to content

Commit 36651e5

Browse files
authored
Merge pull request #280 from jolavillette/ImproveWebui
exposed RsHistory service in rshistory.h to JSON API to allow fetching chat history
2 parents 8f1fc30 + f806073 commit 36651e5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/retroshare/rshistory.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
class RsHistory;
2626
class ChatId;
2727

28+
/**
29+
* @jsonapi{development}
30+
*/
2831
extern RsHistory *rsHistory;
2932

3033
#include <string>
@@ -112,7 +115,7 @@ class RsHistory
112115
/*!
113116
* @brief clears the message history for a given chat peer
114117
* @jsonapi{development}
115-
* @param[in] chatPeerID Id of the chat/peer for which the history needs to be wiped
118+
* @param[in] chatPeerId Id of the chat/peer for which the history needs to be wiped
116119
*/
117120
virtual void clear(const ChatId &chatPeerId) = 0;
118121

@@ -128,7 +131,7 @@ class RsHistory
128131
* @brief Set whether chat history is enabled or not
129132
* @jsonapi{development}
130133
* @param[in] chat_type Type of chat (see list of constants above)
131-
* @param[in] enabled Desired state of the variable
134+
* @param[in] enable Desired state of the variable
132135
*/
133136
virtual void setEnable(uint32_t chat_type, bool enable) = 0;
134137

@@ -152,6 +155,7 @@ class RsHistory
152155

153156
/*!
154157
* @brief Sets the maximum number of messages to save
158+
* @jsonapi{development}
155159
* @param[in] chat_type Type of chat for that number limit
156160
* @param[in] count Max umber of messages, 0 meaning indefinitely
157161
*/

0 commit comments

Comments
 (0)