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:
Reinaldo Neto 2022-07-14 14:18:45 -03:00 committed by GitHub
parent dd48402214
commit 92d16b52e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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}