aboutsummaryrefslogtreecommitdiff
path: root/webclient
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-07-05 18:44:32 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-07-05 18:44:32 +0200
commitca2e59be92ff7767e5c30f4d4d3035da522cce42 (patch)
tree5dfed9bab023f652d3b805989be90396b95551de /webclient
parent19ceccdab1cb11f74d8f402429cea54ddcb183d6 (diff)
webclient: Show inviter
Diffstat (limited to 'webclient')
-rw-r--r--webclient/client.html3
1 files changed, 2 insertions, 1 deletions
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"){