Add favorites as contact field (dug)

This commit is contained in:
Jack Kingsman
2026-04-05 20:50:27 -07:00
parent c2e1a3cbe6
commit a351c86ccb
55 changed files with 482 additions and 466 deletions
-18
View File
@@ -1,18 +0,0 @@
/**
* Favorites utilities.
*
* Favorites are stored server-side in the database.
*/
import type { Favorite } from '../types';
/**
* Check if a conversation is favorited (from provided favorites array)
*/
export function isFavorite(
favorites: Favorite[],
type: 'channel' | 'contact',
id: string
): boolean {
return favorites.some((f) => f.type === type && f.id === id);
}