corrected bug in stashing saved topic list view values to session

This commit is contained in:
2026-01-15 23:08:29 -07:00
parent d0c84216c3
commit 64b2b06733
+3 -2
View File
@@ -77,10 +77,11 @@ func Topics(ctxt ui.AmContext) (string, any, error) {
v := ctxt.GetSession("topic.conf").(int32)
if v == conf.ConfId {
trustSessionValues = true
} else {
ctxt.SetSession("topic.conf", conf.ConfId)
}
}
if !trustSessionValues {
ctxt.SetSession("topic.conf", conf.ConfId)
}
view := database.TopicViewActive
if trustSessionValues && ctxt.IsSession("topic.view") {
view = ctxt.GetSession("topic.view").(int)