Type the crypto, settings, and component any sites. [skip build]
This commit is contained in:
1 parent
6c8a085ae1
commit
9d17b14a9e
26 files changed
+68
-49
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable react/destructuring-assignment */
|
||||
import React, { forwardRef, MouseEventHandler, useCallback, useMemo, useRef } from 'react';
|
||||
import { MatrixEvent, Room } from 'matrix-js-sdk';
|
||||
import { EventType, MatrixEvent, Room } from 'matrix-js-sdk';
|
||||
import { RoomPinnedEventsEventContent } from 'matrix-js-sdk/lib/types';
|
||||
import {
|
||||
Avatar,
|
||||
@@ -123,7 +123,7 @@ function PinnedMessage({
|
||||
pinned: content.pinned.filter((id) => id !== eventId),
|
||||
};
|
||||
|
||||
return mx.sendStateEvent(room.roomId, StateEvent.RoomPinnedEvents as any, newContent);
|
||||
return mx.sendStateEvent(room.roomId, EventType.RoomPinnedEvents, newContent);
|
||||
}, [room, eventId, mx]),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user