mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
topic -> subject: Extract get_topic_from_message_info().
This changes files where it's safe to just assume caller may use either "topic" or "subject", and we prefer "topic" but support "subject".
This commit is contained in:
16
zerver/tests/fixtures/narrow.json
vendored
16
zerver/tests/fixtures/narrow.json
vendored
@@ -36,7 +36,14 @@
|
||||
{
|
||||
"message":{
|
||||
"type":"stream",
|
||||
"subject":"bark"
|
||||
"subject":"BarK"
|
||||
},
|
||||
"flags":null
|
||||
},
|
||||
{
|
||||
"message":{
|
||||
"type":"stream",
|
||||
"topic":"bark"
|
||||
},
|
||||
"flags":null
|
||||
}
|
||||
@@ -54,6 +61,13 @@
|
||||
"subject":"play with tail"
|
||||
},
|
||||
"flags":null
|
||||
},
|
||||
{
|
||||
"message":{
|
||||
"type":"stream",
|
||||
"topic":"play with tail"
|
||||
},
|
||||
"flags":null
|
||||
}
|
||||
],
|
||||
"narrow":[
|
||||
|
||||
Reference in New Issue
Block a user