Quick chat FAB, active session indicators, memory tab counts, improved new session
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
export function timeAgo(ts: number): string {
|
||||
export function timeAgo(ts: number, active?: boolean): string {
|
||||
if (active) return "now";
|
||||
const now = Date.now() / 1000;
|
||||
const diff = now - ts;
|
||||
if (diff < 60) return "just now";
|
||||
|
||||
Reference in New Issue
Block a user