feat(desktop): port v0.11.4-v0.15.2 from Tauri to Electron + Discord-parity audio (v0.16.0)
Chronological port of every Tauri release commit (v0.11.4 -> v0.15.2)
into the Electron rebuild, plus Discord-style audio handling that goes
beyond the Tauri original.
Highlights:
- All 17 Tauri release commits ported (audio fixes, custom notification
sound, Discord-style chat UX, profile banner, changelog page,
Discord-parity call UX, screen-share echo + re-watch UX, audio-loop
fix).
- Native napi-rs audio-loopback addon with WASAPI process-loopback:
* EXCLUDE_TARGET_PROCESS_TREE for full-screen shares -> peers
never hear themselves echoed back through the capture.
* INCLUDE_TARGET_PROCESS_TREE for window shares -> only the
picked window's audio is captured, not the whole OS mixer
(Discord parity).
* HWND -> PID resolution via Win32 GetWindowThreadProcessId.
- Discord-style screen-source picker (thumbnail grid, screens vs
apps tabs, live-refreshing thumbnails).
- Hash routing fix for packaged builds (file:// can't resolve
BrowserRouter paths).
- Tauri sources removed (apps/desktop/src-tauri).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ export interface ProfileBrief {
|
||||
username: string;
|
||||
displayName: string;
|
||||
avatarUrl: string | null;
|
||||
bannerUrl: string | null;
|
||||
}
|
||||
|
||||
export type FriendDirection = 'outgoing' | 'incoming';
|
||||
@@ -19,19 +20,21 @@ export interface Friendship {
|
||||
acceptedAt: string | null;
|
||||
}
|
||||
|
||||
const PROFILE_BRIEF_COLS = 'user_id, username, display_name, avatar_url';
|
||||
const PROFILE_BRIEF_COLS = 'user_id, username, display_name, avatar_url, banner_url';
|
||||
|
||||
function mapProfileBrief(row: {
|
||||
user_id: string;
|
||||
username: string;
|
||||
display_name: string;
|
||||
avatar_url: string | null;
|
||||
banner_url: string | null;
|
||||
}): ProfileBrief {
|
||||
return {
|
||||
userId: row.user_id,
|
||||
username: row.username,
|
||||
displayName: row.display_name,
|
||||
avatarUrl: row.avatar_url,
|
||||
bannerUrl: row.banner_url,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -106,6 +109,7 @@ export async function listFriendships(client: AppSupabaseClient): Promise<Friend
|
||||
username: '?',
|
||||
displayName: '?',
|
||||
avatarUrl: null,
|
||||
bannerUrl: null,
|
||||
};
|
||||
return {
|
||||
peer,
|
||||
|
||||
Reference in New Issue
Block a user