Working on profile
This commit is contained in:
parent
ec32643407
commit
0aeed5578e
17
src/sbot.rs
17
src/sbot.rs
|
@ -153,6 +153,23 @@ impl Sbot {
|
|||
self.publish(msg).await
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// Get the about messages for a particular user.
|
||||
pub async fn get_about_messages(&mut self, ssb_id: String) -> Result<String, GolgiError> {
|
||||
let req_id = self.client.getsubset_req_send(query).await?;
|
||||
|
||||
utils::get_async_until_eof(&mut self.rpc_reader, req_id, utils::kvt_res_parse).await
|
||||
}
|
||||
|
||||
|
||||
/// Get the latest description for a particular user from their about messages.
|
||||
pub async fn get_description(&mut self, ssb_id: String) -> Result<String, GolgiError> {
|
||||
let req_id = self.client.getsubset_req_send(query).await?;
|
||||
|
||||
utils::get_async_until_eof(&mut self.rpc_reader, req_id, utils::kvt_res_parse).await
|
||||
}
|
||||
|
||||
/// Call the `createHistoryStream` RPC method and return a vector
|
||||
/// of SsbMessageValue.
|
||||
pub async fn create_history_stream(
|
||||
|
|
Loading…
Reference in New Issue