-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
トピック編集 #539
トピック編集 #539
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
src/lib/websocket/channel.ts
Outdated
@@ -21,6 +21,7 @@ export const onChannelDeleted = ({ id }: ChannelDeletedEvent['body']) => { | |||
export const onChannelUpdated = async ({ id }: ChannelUpdatedEvent['body']) => { | |||
const res = await apis.getChannel(id) | |||
store.commit.entities.extendChannels({ [id]: res.data }) | |||
store.commit.domain.messagesView.setTopic(res.data.topic) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
見てるチャンネル以外も流れてくるのでその判定が必要そうです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あるチャンネルでトピック書き換える→別のチャンネルに行く
をすると移動先のチャンネルのトピックの編集前の文字列が移動前の編集後トピックのものになるみたいです
なおしました(実装がちょっとアだけど |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.