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.

hash_util: Make it clear that the function doesn't work for all views.

Aman Agrawal478a4a59bc91
diff --git a/web/src/hash_util.ts b/web/src/hash_util.ts
index a2fd3bc2ce2..3d57a149cbd 100644
--- a/web/src/hash_util.ts
+++ b/web/src/hash_util.ts
@@ -87,6 +87,8 @@ export function by_stream_topic_url(stream_id: number, topic: string): string {
// corresponding hash: the # component
// of the narrow URL
export function search_terms_to_hash(terms?: NarrowTerm[]): string {
+ // Note: This does not return the correct hash for combined feed, recent and inbox view.
+ // These views can have multiple hashes that lead to them, so this function cannot support them.
let hash = "#";
if (terms !== undefined) {