join and invited count were mixed up... oops

This commit is contained in:
Bruno Windels 2020-08-21 18:11:26 +02:00
parent e5cdf061cb
commit d5d0154873

View File

@ -97,8 +97,8 @@ function processTimelineEvent(data, event, isInitialSync, isTimelineOpen, ownUse
function updateSummary(data, summary) { function updateSummary(data, summary) {
const heroes = summary["m.heroes"]; const heroes = summary["m.heroes"];
const inviteCount = summary["m.joined_member_count"]; const joinCount = summary["m.joined_member_count"];
const joinCount = summary["m.invited_member_count"]; const inviteCount = summary["m.invited_member_count"];
if (heroes && Array.isArray(heroes)) { if (heroes && Array.isArray(heroes)) {
data = data.cloneIfNeeded(); data = data.cloneIfNeeded();