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.

keyboard_shortcut: Add feedback for N/P shortcut after no more message.

Pratik Chandad6a2bbc2efb1
diff --git a/web/src/narrow.js b/web/src/narrow.js
index 83938ff143d..ed7cc9a36a4 100644
--- a/web/src/narrow.js
+++ b/web/src/narrow.js
@@ -815,6 +815,12 @@ export function narrow_to_next_topic(opts = {}) {
}
if (!next_narrow) {
+ feedback_widget.show({
+ populate($container) {
+ $container.text($t({defaultMessage: "You have no more unread topics."}));
+ },
+ title_text: $t({defaultMessage: "You're done!"}),
+ });
return;
}
@@ -832,6 +838,12 @@ export function narrow_to_next_pm_string(opts = {}) {
const next_direct_message = topic_generator.get_next_unread_pm_string(current_direct_message);
if (!next_direct_message) {
+ feedback_widget.show({
+ populate($container) {
+ $container.text($t({defaultMessage: "You have no more unread direct messages."}));
+ },
+ title_text: $t({defaultMessage: "You're done!"}),
+ });
return;
}