This commit is contained in:
AlacrisDevs
2026-02-07 23:10:10 +02:00
parent 23693db9ec
commit 75a2aefadb
25 changed files with 457 additions and 679 deletions

View File

@@ -3,6 +3,9 @@
import { createDirectMessage } from '$lib/matrix';
import { userPresence } from '$lib/stores/matrix';
import { toasts } from '$lib/stores/ui';
import { createLogger } from '$lib/utils/logger';
const log = createLogger('matrix:profile');
import type { RoomMember } from '$lib/matrix/types';
interface Props {
@@ -35,7 +38,7 @@
onStartDM?.(roomId);
onClose();
} catch (e) {
console.error('Failed to start DM:', e);
log.error('Failed to start DM', { error: e });
toasts.error('Failed to start direct message');
} finally {
isStartingDM = false;