[mobile] Fix comments
This commit is contained in:
parent
e8749b09d6
commit
0f2a4d8138
|
@ -113,9 +113,9 @@ class CommentsController extends Component {
|
|||
let user = this.usersStore.searchUserById(data.asc_getUserId());
|
||||
|
||||
comment.comment = data.asc_getText();
|
||||
comment.userid = data.asc_getUserId();
|
||||
comment.userId = data.asc_getUserId();
|
||||
comment.userName = data.asc_getUserName();
|
||||
comment.usercolor = (user) ? user.asc_getColor() : null;
|
||||
comment.userColor = (user) ? user.asc_getColor() : null;
|
||||
comment.resolved = data.asc_getSolved();
|
||||
comment.quote = data.asc_getQuoteText();
|
||||
comment.time = date.getTime();
|
||||
|
|
|
@ -45,10 +45,12 @@ export class storeUsers {
|
|||
}
|
||||
|
||||
searchUserById (id) {
|
||||
let user = null;
|
||||
this.users.forEach((item) => {
|
||||
if (item.asc_getIdOriginal() === id) {
|
||||
return item;
|
||||
user = item;
|
||||
}
|
||||
});
|
||||
return user;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue