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:
Steve Howell
2018-11-10 21:50:28 +00:00
committed by Tim Abbott
parent aa4e9cec2d
commit 27d79352da
7 changed files with 50 additions and 11 deletions

View File

@@ -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":[