Regression: Status of Omnichannel's Icon isn't working in RoomsListView (#4356)
* Regression: Status of Omnichannel's Icon isn't working in RoomsListView * clean
This commit is contained in:
parent
dd48402214
commit
92d16b52e1
|
@ -85,6 +85,8 @@ const RoomItemContainer = React.memo(
|
||||||
accessibilityLabel = `, ${I18n.t('last_message')} ${date}`;
|
accessibilityLabel = `, ${I18n.t('last_message')} ${date}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const status = item.t === 'l' ? item.visitor?.status || item.v?.status : userStatus;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RoomItem
|
<RoomItem
|
||||||
name={name}
|
name={name}
|
||||||
|
@ -105,7 +107,7 @@ const RoomItemContainer = React.memo(
|
||||||
type={item.t}
|
type={item.t}
|
||||||
isFocused={isFocused}
|
isFocused={isFocused}
|
||||||
prid={item.prid}
|
prid={item.prid}
|
||||||
status={userStatus}
|
status={status}
|
||||||
hideUnreadStatus={item.hideUnreadStatus}
|
hideUnreadStatus={item.hideUnreadStatus}
|
||||||
hideMentionStatus={item.hideMentionStatus}
|
hideMentionStatus={item.hideMentionStatus}
|
||||||
alert={alert}
|
alert={alert}
|
||||||
|
|
Loading…
Reference in New Issue