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 -- -