Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(notifications) Show correct info on updated notification (#13607)
Robert Pintiliif3670ce86d9b
diff --git a/react/features/notifications/components/NotificationsTransition.tsx b/react/features/notifications/components/NotificationsTransition.tsxindex 98a3a0a312..bd5c803fcb 100644--- a/react/features/notifications/components/NotificationsTransition.tsx+++ b/react/features/notifications/components/NotificationsTransition.tsx@@ -16,6 +16,19 @@ const NotificationsTransition = ({ children }: { children: ReactElement[]; }) =>const toMount = children?.filter(child =>childrenToRender.findIndex(c => c.props.uid === child.props.uid) === -1) ?? [];+ /**+ * Update current notifications.+ * In some cases the UID is the same but the other props change.+ * This way we make sure the notification displays the latest info.+ */+ children.forEach(child => {+ const index = childrenToRender.findIndex(c => c.props.uid === child.props.uid);++ if (index !== -1) {+ childrenToRender[index] = child;+ }+ });+if (toUnmount.length > 0) {const ids = new Map(timeoutIds);