FIX: user_id attribute not found in posters array

This commit is contained in:
Vinoth Kannan 2019-01-30 15:27:23 +05:30
parent 60c1cd9f81
commit 096974d178
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ const Topic = RestModel.extend({
}
}
const poster_ids = _.pluck(posters, "user_id");
const poster_ids = posters.map(p => p.user && p.user.id).filter(id => id);
participants.some(p => {
if (!poster_ids.includes(p.user_id)) {
users.splice(users.length - pushOffset, 0, p);