mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Implement audio calls
This commit is contained in:
@@ -263,6 +263,16 @@ export class DMPanel extends MessagePanel {
|
||||
this.currentUser.authToken = authToken;
|
||||
}
|
||||
|
||||
// Get DM user ID for call functionality
|
||||
getDMUserId(): number | null {
|
||||
return this.dmData?.userId || null;
|
||||
}
|
||||
|
||||
// Get DM username for call functionality
|
||||
getDMUsername(): string | null {
|
||||
return this.dmData?.username || null;
|
||||
}
|
||||
|
||||
// Helper functions for localStorage
|
||||
private getLastReadId(userId: number): number {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user