feat(ui-flow): composer focus after accept-dm-voice, video pushState
This commit is contained in:
@@ -1864,6 +1864,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
const out = await platform.acceptDmVoiceCall()
|
||||
send({ type: 'dm-voice-call-accepted', ...out })
|
||||
pushState()
|
||||
if (platform.mode === 'dm' && platform.activeChannelId) {
|
||||
send({
|
||||
type: 'composer-focus-channel',
|
||||
channelId: platform.activeChannelId
|
||||
})
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (t === 'dismiss-dm-rekey-notice') {
|
||||
@@ -1874,6 +1880,7 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
if (t === 'start-dm-video') {
|
||||
const out = await platform.startDmVideoCall()
|
||||
send({ type: 'dm-video-call-started', ...out })
|
||||
pushState()
|
||||
return true
|
||||
}
|
||||
if (t === 'create-group-dm') {
|
||||
|
||||
Reference in New Issue
Block a user