More debugging

This commit is contained in:
Eugen Rochko
2016-10-18 00:59:18 +02:00
parent 4baca34a45
commit 6611e3a2ef
3 changed files with 4 additions and 2 deletions

View File

@ -45,6 +45,8 @@ const Status = React.createClass({
var { status, ...other } = this.props;
console.log(status, this.props);
if (status.get('reblog') !== null) {
let displayName = status.getIn(['account', 'display_name']);

View File

@ -129,7 +129,7 @@ function updateTimeline(state, timeline, status) {
if (reblogOfId !== null) {
const otherReblogs = state.get('statuses').filter(item => item.get('reblog') === reblogOfId).map((_, itemId) => itemId);
list = list.filterNot(itemId => itemId === reblogOfId || otherReblogs.includes(itemId));
list = list.filterNot(itemId => (itemId === reblogOfId || otherReblogs.includes(itemId)));
}
return list.unshift(status.get('id'));