fix(settings): store url display name and email.
This commit is contained in:
parent
eb8b730227
commit
4ded94d130
|
@ -9,6 +9,7 @@ import { MiddlewareRegistry } from '../redux';
|
||||||
import { parseURLParams } from '../util';
|
import { parseURLParams } from '../util';
|
||||||
|
|
||||||
import { SETTINGS_UPDATED } from './actionTypes';
|
import { SETTINGS_UPDATED } from './actionTypes';
|
||||||
|
import { updateSettings } from './actions';
|
||||||
import { handleCallIntegrationChange, handleCrashReportingChange } from './functions';
|
import { handleCallIntegrationChange, handleCrashReportingChange } from './functions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -160,10 +161,18 @@ function _updateLocalParticipantFromUrl({ dispatch, getState }) {
|
||||||
const localParticipant = getLocalParticipant(getState());
|
const localParticipant = getLocalParticipant(getState());
|
||||||
|
|
||||||
if (localParticipant) {
|
if (localParticipant) {
|
||||||
|
const displayName = _.escape(urlDisplayName);
|
||||||
|
const email = _.escape(urlEmail);
|
||||||
|
|
||||||
dispatch(participantUpdated({
|
dispatch(participantUpdated({
|
||||||
...localParticipant,
|
...localParticipant,
|
||||||
email: _.escape(urlEmail),
|
email,
|
||||||
name: _.escape(urlDisplayName)
|
name: displayName
|
||||||
|
}));
|
||||||
|
|
||||||
|
dispatch(updateSettings({
|
||||||
|
displayName,
|
||||||
|
email
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue