Commit 013e101
committed
helper: Index case insensitive topic names by narrowed topic.
Currently, the topic indexing conditional in index_messages does case
sensitive comparison with narrowed topic and msg_topic which results in
similar topic names (case insensitive) not getting indexed at all.
This performs lowercase comparison and indexes messages by the narrowed
topic. For the latter part, if it finds a similar topic name already
indexed, it updates that topic name (key) with the matching [lowercase]
narrowed topic.
Consequently, topic narrow from the topic list (for the latest topic
name) or from 'All Messages'/stream narrow (for any of the similar topic
name), contains all the messages.1 parent c51de88 commit 013e101
1 file changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
410 | 412 | | |
411 | | - | |
412 | | - | |
413 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
414 | 430 | | |
415 | 431 | | |
416 | 432 | | |
| |||
0 commit comments