fix reply-to marker, also whoops console log
This commit is contained in:
parent
690c1dcd7a
commit
fe624f6114
2 changed files with 4 additions and 5 deletions
|
@ -145,11 +145,11 @@ const Status = {
|
||||||
return !!(this.status.in_reply_to_status_id && this.status.in_reply_to_user_id)
|
return !!(this.status.in_reply_to_status_id && this.status.in_reply_to_user_id)
|
||||||
},
|
},
|
||||||
replyToName () {
|
replyToName () {
|
||||||
const user = this.$store.state.users.usersObject[this.status.in_reply_to_user_id]
|
const user = this.$store.getters.findUser(this.status.in_reply_to_user_id)
|
||||||
if (user) {
|
if (this.status.in_reply_to_screen_name) {
|
||||||
return user.screen_name
|
|
||||||
} else {
|
|
||||||
return this.status.in_reply_to_screen_name
|
return this.status.in_reply_to_screen_name
|
||||||
|
} else {
|
||||||
|
return user.screen_name
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hideReply () {
|
hideReply () {
|
||||||
|
|
|
@ -135,7 +135,6 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
||||||
// This makes sure that user timeline won't get data meant for other
|
// This makes sure that user timeline won't get data meant for other
|
||||||
// user. I.e. opening different user profiles makes request which could
|
// user. I.e. opening different user profiles makes request which could
|
||||||
// return data late after user already viewing different user profile
|
// return data late after user already viewing different user profile
|
||||||
console.log('TIMEINLINE', timelineObject.userId)
|
|
||||||
if ((timeline === 'user' || timeline === 'media') && timelineObject.userId !== userId) {
|
if ((timeline === 'user' || timeline === 'media') && timelineObject.userId !== userId) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue