You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Expand timeline in situations when _getIndicator not null
The status bar will now be expanded when: - props.numUnreadMessages - !props.atEndOfLiveTimeline - props.hasActiveCall
This commit is contained in:
@ -135,7 +135,11 @@ module.exports = React.createClass({
|
|||||||
// changed - so we use '0' to indicate normal size, and other values to
|
// changed - so we use '0' to indicate normal size, and other values to
|
||||||
// indicate other sizes.
|
// indicate other sizes.
|
||||||
_getSize: function(state, props) {
|
_getSize: function(state, props) {
|
||||||
if (state.syncState === "ERROR" || state.whoisTypingString) {
|
if (state.syncState === "ERROR" ||
|
||||||
|
state.whoisTypingString ||
|
||||||
|
props.numUnreadMessages ||
|
||||||
|
!props.atEndOfLiveTimeline ||
|
||||||
|
props.hasActiveCall) {
|
||||||
return STATUS_BAR_EXPANDED;
|
return STATUS_BAR_EXPANDED;
|
||||||
} else if (props.tabCompleteEntries) {
|
} else if (props.tabCompleteEntries) {
|
||||||
return STATUS_BAR_HIDDEN;
|
return STATUS_BAR_HIDDEN;
|
||||||
|
Reference in New Issue
Block a user