mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
compose: Prompt user to login when trying to compose.
This commit is contained in:
@@ -15,6 +15,7 @@ import * as compose_validate from "./compose_validate";
|
||||
import * as drafts from "./drafts";
|
||||
import * as hash_util from "./hash_util";
|
||||
import {$t} from "./i18n";
|
||||
import * as login_to_access from "./login_to_access";
|
||||
import * as message_lists from "./message_lists";
|
||||
import * as message_viewport from "./message_viewport";
|
||||
import * as narrow_state from "./narrow_state";
|
||||
@@ -214,6 +215,11 @@ export function update_placeholder_text() {
|
||||
}
|
||||
|
||||
export function start(msg_type, opts) {
|
||||
if (page_params.is_spectator) {
|
||||
login_to_access.show();
|
||||
return;
|
||||
}
|
||||
|
||||
autosize_message_content();
|
||||
|
||||
if (reload_state.is_in_progress()) {
|
||||
|
||||
Reference in New Issue
Block a user