Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

onboarding: Be consistent about channel name realm attr access.

Mateusz Mandera8378401205a6
diff --git a/zerver/lib/onboarding.py b/zerver/lib/onboarding.py
index 708c1f6ab6c..efc9bb5e170 100644
--- a/zerver/lib/onboarding.py
+++ b/zerver/lib/onboarding.py
@@ -368,7 +368,7 @@ This **greetings** topic is a great place to say “hi” :wave: to your teammat
# Dependency on knowing how to send messages.
welcome_messages += [
{
- "channel_name": str(realm.ZULIP_SANDBOX_CHANNEL_NAME),
+ "channel_name": str(Realm.ZULIP_SANDBOX_CHANNEL_NAME),
"topic_name": _("experiments"),
"content": content,
}
@@ -378,7 +378,7 @@ This **greetings** topic is a great place to say “hi” :wave: to your teammat
# Suggestion to start your first new conversation.
welcome_messages += [
{
- "channel_name": str(realm.ZULIP_SANDBOX_CHANNEL_NAME),
+ "channel_name": str(Realm.ZULIP_SANDBOX_CHANNEL_NAME),
"topic_name": _("start a conversation"),
"content": content,
}
@@ -402,7 +402,7 @@ This **greetings** topic is a great place to say “hi” :wave: to your teammat
# Main welcome message, this should be last.
welcome_messages += [
{
- "channel_name": str(realm.ZULIP_DISCUSSION_CHANNEL_NAME),
+ "channel_name": str(Realm.ZULIP_DISCUSSION_CHANNEL_NAME),
"topic_name": _("welcome to Zulip!"),
"content": content,
}