community: the library overlap shelf, their share folders against your albums on this device after a browse
This commit is contained in:
1 parent
d7bc92fda7
commit
0846b39d45
6 files changed
+451
-7
No files matched your search
@@ -1182,6 +1182,7 @@ pub async fn slsk_similar_users(state: State<'_, AppState>) -> Result<Vec<Simila
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn slsk_browse_user(
|
||||
app: tauri::AppHandle,
|
||||
state: State<'_, AppState>,
|
||||
username: String,
|
||||
) -> Result<Vec<BrowseDirDto>, String> {
|
||||
@@ -1191,6 +1192,9 @@ pub async fn slsk_browse_user(
|
||||
client.browse(&username)
|
||||
};
|
||||
let dirs = fut.await.map_err(|e| e.to_string())?;
|
||||
// The library overlap rides along: their folders against your albums,
|
||||
// on this device, and the Discover shelf hears about it by event.
|
||||
crate::overlap::note_browse(&app, &username, &dirs);
|
||||
Ok(dirs
|
||||
.into_iter()
|
||||
.map(|d| {
|
||||
|
||||
Reference in new issue
Block a user