mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
onboarding: Narrow new users in DMs with Welcome Bot.
Earlier, new users were narrowed to the interleaved DMs view on the first visit. This commit updates the behavior to narrow new users in DMs with Welcome Bot. Reason for the change: It makes more sense overall as an interleaved DMs view is a power user view and it would also prevent the message fading banner #29076 from showing up if the user DMs Welcome Bot right away.
This commit is contained in:
committed by
Tim Abbott
parent
c8aeff9a79
commit
caedcb8b8b
@@ -55,6 +55,7 @@ let duplicate_full_name_data: FoldDict<Set<number>>;
|
||||
let my_user_id: number;
|
||||
|
||||
export let INACCESSIBLE_USER_NAME: string;
|
||||
export let WELCOME_BOT: CrossRealmBot;
|
||||
|
||||
// We have an init() function so that our automated tests
|
||||
// can easily clear data.
|
||||
@@ -1390,6 +1391,9 @@ export function add_cross_realm_user(person: CrossRealmBot): void {
|
||||
_add_user(person);
|
||||
}
|
||||
cross_realm_dict.set(person.user_id, person);
|
||||
if (person.full_name === "Welcome Bot") {
|
||||
WELCOME_BOT = person;
|
||||
}
|
||||
}
|
||||
|
||||
export function deactivate(person: User): void {
|
||||
|
||||
Reference in New Issue
Block a user