From 2027103d23be307f8d387a0c097785e5aa0406ca Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 10 Mar 2024 23:08:09 +0200 Subject: [PATCH] better chat name --- files/routes/private_chats.py | 2 +- schema.sql | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/files/routes/private_chats.py b/files/routes/private_chats.py index f02bc8bfc..be7d123eb 100644 --- a/files/routes/private_chats.py +++ b/files/routes/private_chats.py @@ -30,7 +30,7 @@ def chat_user(v, username): if existing: return redirect(f"/chat/{existing.id}") - chat = Chat(owner_id=v.id, name=f"Chat with @{user.username}") + chat = Chat(owner_id=v.id, name=f"@{v.username}, @{user.username}") g.db.add(chat) g.db.flush() diff --git a/schema.sql b/schema.sql index cfaaaa811..2197b901b 100644 --- a/schema.sql +++ b/schema.sql @@ -457,7 +457,7 @@ CREATE TABLE public.chat_notifications ( CREATE TABLE public.chats ( id integer NOT NULL, owner_id integer NOT NULL, - name character varying(40) NOT NULL, + name character varying(54) NOT NULL, created_utc integer NOT NULL ); @@ -3549,4 +3549,3 @@ ALTER TABLE ONLY public.comments -- -- PostgreSQL database dump complete -- -