Fix typescript types
This commit is contained in:
parent
3b7c92fd9e
commit
0ae4e7b11d
8 changed files with 44 additions and 41 deletions
|
@ -15,6 +15,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import { RoomMember } from "matrix-js-sdk/src/models/room-member";
|
||||
import { User } from "matrix-js-sdk/src/models/user";
|
||||
import { ActionPayload } from "../payloads";
|
||||
import { Action } from "../actions";
|
||||
|
||||
|
@ -25,5 +26,5 @@ export interface ViewUserPayload extends ActionPayload {
|
|||
* The member to view. May be null or falsy to indicate that no member
|
||||
* should be shown (hide whichever relevant components).
|
||||
*/
|
||||
member?: RoomMember;
|
||||
member?: RoomMember | User;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue