From ca2e59be92ff7767e5c30f4d4d3035da522cce42 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 5 Jul 2020 18:44:32 +0200 Subject: webclient: Show inviter --- webclient/client.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webclient') diff --git a/webclient/client.html b/webclient/client.html index ab10cbc..61c7d4b 100644 --- a/webclient/client.html +++ b/webclient/client.html @@ -115,9 +115,10 @@ function reconnect(){ // Ignore msgid at word[5] addRoomEntry(r,"message",[u,t,spl.rest[6]]); } else if(type=="invite"){ - var r=spl.word[2]; + var r=spl.word[2],inviter=spl.word[3]; roomlist.push(r); roomlogs.set(r,[]); + addRoomEntry(r,"notice",[now(),"User '"+inviter+"' invited you to this room"]); fetchRoomHistory(r); updateRoomList(); } else if(type=="join"){ -- cgit v1.2.3-70-g09d2