mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 06:51:21 +02:00
Merge pull request #1029 from matrix-org/luke/fix-multi-welcome-user
Don't do a deferred start chat if user is welcome user
This commit is contained in:
commit
cdd8cc41e2
@ -721,6 +721,9 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
// Use a deferred action to reshow the dialog once the user has registered
|
// Use a deferred action to reshow the dialog once the user has registered
|
||||||
if (MatrixClientPeg.get().isGuest()) {
|
if (MatrixClientPeg.get().isGuest()) {
|
||||||
|
// No point in making 2 DMs with welcome bot. This assumes view_set_mxid will
|
||||||
|
// result in a new DM with the welcome user.
|
||||||
|
if (userId !== this.props.config.welcomeUserId) {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'do_after_sync_prepared',
|
action: 'do_after_sync_prepared',
|
||||||
deferred_action: {
|
deferred_action: {
|
||||||
@ -728,6 +731,7 @@ module.exports = React.createClass({
|
|||||||
user_id: userId,
|
user_id: userId,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'view_set_mxid',
|
action: 'view_set_mxid',
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user