Skip to content

Commit

Permalink
feat: handle text type system messages (#305)
Browse files Browse the repository at this point in the history
* feat: handle text type system messages

Signed-off-by: 2t34lth <[email protected]>

* revert lockfile

Signed-off-by: 2t34lth <[email protected]>

---------

Signed-off-by: 2t34lth <[email protected]>
  • Loading branch information
2t34lth authored Sep 5, 2024
1 parent 10b51c5 commit eb28560
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
ChannelOwnershipChangeSystemMessage,
ChannelRenamedSystemMessage,
SystemMessage as SystemMessageClass,
TextSystemMessage,
User,
UserModeratedSystemMessage,
UserSystemMessage,
Expand Down Expand Up @@ -155,6 +156,9 @@ export function SystemMessage(props: Props) {
}
/>
</Match>
<Match when={props.systemMessage.type === "text"}>
{(props.systemMessage as TextSystemMessage).content}
</Match>
</Switch>
</Typography>
</Base>
Expand Down

0 comments on commit eb28560

Please sign in to comment.