Fix cursor not removed when another user leaves the kanban
This commit is contained in:
parent
1e877e1980
commit
2f80a32e15
@ -1127,9 +1127,12 @@ define([
|
|||||||
var id = data.id;
|
var id = data.id;
|
||||||
|
|
||||||
// Clear existing cursor
|
// Clear existing cursor
|
||||||
if (remoteCursors[id] && remoteCursors[id].clear) {
|
Object.keys(remoteCursors).forEach(function (_id) {
|
||||||
remoteCursors[id].clear();
|
if (_id.indexOf(id) === 0 && remoteCursors[_id].clear) {
|
||||||
|
remoteCursors[_id].clear();
|
||||||
|
delete remoteCursors[_id];
|
||||||
}
|
}
|
||||||
|
});
|
||||||
delete remoteCursors[id];
|
delete remoteCursors[id];
|
||||||
|
|
||||||
var cursor = data.cursor;
|
var cursor = data.cursor;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user