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()
|
const out = await platform.acceptDmVoiceCall()
|
||||||
send({ type: 'dm-voice-call-accepted', ...out })
|
send({ type: 'dm-voice-call-accepted', ...out })
|
||||||
pushState()
|
pushState()
|
||||||
|
if (platform.mode === 'dm' && platform.activeChannelId) {
|
||||||
|
send({
|
||||||
|
type: 'composer-focus-channel',
|
||||||
|
channelId: platform.activeChannelId
|
||||||
|
})
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if (t === 'dismiss-dm-rekey-notice') {
|
if (t === 'dismiss-dm-rekey-notice') {
|
||||||
@@ -1874,6 +1880,7 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
if (t === 'start-dm-video') {
|
if (t === 'start-dm-video') {
|
||||||
const out = await platform.startDmVideoCall()
|
const out = await platform.startDmVideoCall()
|
||||||
send({ type: 'dm-video-call-started', ...out })
|
send({ type: 'dm-video-call-started', ...out })
|
||||||
|
pushState()
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if (t === 'create-group-dm') {
|
if (t === 'create-group-dm') {
|
||||||
|
|||||||
Reference in New Issue
Block a user