Request message-tags cap

This commit is contained in:
Simon Ser 2020-06-12 18:56:08 +02:00
parent d4394498a2
commit 336ff377c3
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -223,8 +223,12 @@ function handleCap(msg) {
capEnd = false;
}
if (availableCaps["message-tags"] !== undefined) {
reqCaps.push("message-tags");
}
if (reqCaps.length > 0) {
sendMessage({ command: "CAP", params: ["REQ"].concat(reqCaps) });
sendMessage({ command: "CAP", params: ["REQ", reqCaps.join(" ")] });
}
if (!registered && capEnd) {