Merge branch 'kb_development' into kb_migration
This commit is contained in:
commit
1cc70b5d93
21 changed files with 211 additions and 19 deletions
|
@ -106,6 +106,7 @@ class Status extends ImmutablePureComponent {
|
|||
inUse: PropTypes.bool,
|
||||
available: PropTypes.bool,
|
||||
}),
|
||||
withoutEmojiReactions: PropTypes.bool,
|
||||
};
|
||||
|
||||
// Avoid checking props that are functions (and whose equality will always
|
||||
|
@ -512,7 +513,7 @@ class Status extends ImmutablePureComponent {
|
|||
const visibilityIcon = visibilityIconInfo[status.get('visibility')];
|
||||
|
||||
let emojiReactionsBar = null;
|
||||
if (status.get('emoji_reactions')) {
|
||||
if (!this.props.withoutEmojiReactions && status.get('emoji_reactions')) {
|
||||
const emojiReactions = status.get('emoji_reactions');
|
||||
emojiReactionsBar = <StatusEmojiReactionsBar emojiReactions={emojiReactions} status={status} onEmojiReact={this.props.onEmojiReact} onUnEmojiReact={this.props.onUnEmojiReact} />;
|
||||
}
|
||||
|
|
|
@ -179,6 +179,7 @@ class Notification extends ImmutablePureComponent {
|
|||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
unread={this.props.unread}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
@ -209,6 +210,7 @@ class Notification extends ImmutablePureComponent {
|
|||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
|
@ -216,7 +218,6 @@ class Notification extends ImmutablePureComponent {
|
|||
}
|
||||
|
||||
renderEmojiReaction (notification, link) {
|
||||
console.dir(notification)
|
||||
const { intl, unread } = this.props;
|
||||
const emoji_reaction = notification.get('emoji_reaction');
|
||||
|
||||
|
@ -243,6 +244,7 @@ class Notification extends ImmutablePureComponent {
|
|||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
|
@ -275,6 +277,7 @@ class Notification extends ImmutablePureComponent {
|
|||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
|
@ -312,6 +315,7 @@ class Notification extends ImmutablePureComponent {
|
|||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
|
@ -349,6 +353,7 @@ class Notification extends ImmutablePureComponent {
|
|||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
|
@ -392,6 +397,7 @@ class Notification extends ImmutablePureComponent {
|
|||
updateScrollBottom={this.props.updateScrollBottom}
|
||||
cachedMediaWidth={this.props.cachedMediaWidth}
|
||||
cacheMediaWidth={this.props.cacheMediaWidth}
|
||||
withoutEmojiReactions={true}
|
||||
/>
|
||||
</div>
|
||||
</HotKeys>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue