Fix unpinning of pinned messages

pull/21833/head
Michael Telatynski 2021-06-04 11:34:54 +01:00
parent 12e013508d
commit 48bd6583ed
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ const PinnedMessagesCard = ({ room, onClose }: IProps) => {
// show them in reverse, with latest pinned at the top
content = pinnedEvents.filter(Boolean).reverse().map(ev => (
<PinnedEventTile key={ev.getId()} room={room} event={ev} onUnpinClicked={onUnpinClicked} />
<PinnedEventTile key={ev.getId()} room={room} event={ev} onUnpinClicked={() => onUnpinClicked(ev)} />
));
} else {
content = <div className="mx_RightPanel_empty mx_PinnedMessagesCard_empty">