Handle ids of OO read only users correctly

This commit is contained in:
Wolfgang Ginolas 2024-07-08 14:49:43 +02:00 committed by wginolas
parent 8d0c411a38
commit 6638c4cc49

View file

@ -919,7 +919,10 @@ define([
};
const getMyOOIndex = function() {
return findUserByOOId(myOOId).index;
const user = findUserByOOId(myOOId);
return user
? user.index
: content.ids.length; // Assign an unused id to read-only users
};
var getParticipants = function () {