Updates to Gab Deck
• Updates: - to Gab Deck
This commit is contained in:
@@ -18,7 +18,7 @@ const makeMapStateToProps = () => {
|
||||
const isReposts = !!props.notification.get('repost')
|
||||
const isGrouped = isFollows || isLikes || isReposts
|
||||
const lastReadId = state.getIn(['notifications', 'lastReadId'])
|
||||
const isCompact = state.getIn(['settings', 'isCompact'])
|
||||
const isDeckConnected = state.getIn(['deck', 'connected'], false)
|
||||
|
||||
if (isFollows) {
|
||||
let lastUpdated
|
||||
@@ -41,7 +41,7 @@ const makeMapStateToProps = () => {
|
||||
createdAt: lastUpdated,
|
||||
isUnread: isUnread,
|
||||
statusId: undefined,
|
||||
isCompact,
|
||||
isDeckConnected,
|
||||
}
|
||||
} else if (isLikes || isReposts) {
|
||||
const theType = isLikes ? 'like' : 'repost'
|
||||
@@ -64,7 +64,7 @@ const makeMapStateToProps = () => {
|
||||
createdAt: lastUpdated,
|
||||
isUnread: isUnread,
|
||||
statusId: list.get('status'),
|
||||
isCompact,
|
||||
isDeckConnected,
|
||||
}
|
||||
} else if (!isGrouped) {
|
||||
const notification = getNotification(state, props.notification, props.notification.get('account'))
|
||||
@@ -77,7 +77,7 @@ const makeMapStateToProps = () => {
|
||||
createdAt: notification.get('created_at'),
|
||||
isUnread: lastReadId < notification.get('id'),
|
||||
statusId: statusId || undefined,
|
||||
isCompact,
|
||||
isDeckConnected,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user