Skip to content
Snippets Groups Projects
Unverified Commit 963e78e8 authored by Éloïs's avatar Éloïs
Browse files

[fix] freeRooms view undefined

parent 3bd28df9
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -155,12 +155,13 @@ module.exports = {
if (data.ws2p !== undefined) {
co(function*() {
if (data.ws2p === 'heads') {
for (const head of data.added) {
for (let head of data.added) {
const headInfos = head.message.split(':')
let posPubkey = 3;
// Gestion des différents formats
if (head.messageV2 && head.messageV2.match(/:2:/)) {
head.freeRooms = headInfos[9] + "/" + headInfos[10]
const headV2Infos = head.message.split(':')
head.freeRooms = headV2Infos[9] + "/" + headV2Infos[10]
}
if (head.message.match(/:1:/)) {
posPubkey = 3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment