"new" flag on conference hotlist sidebox works (it's a bell)

This commit is contained in:
2026-01-26 16:26:51 -07:00
parent c83ac65f7e
commit 58aa01361d
4 changed files with 20 additions and 2 deletions
+8 -1
View File
@@ -133,13 +133,20 @@ func buildFeaturedConferences(ctxt ui.AmContext, uid int32, out *RenderedSidebox
lk := fmt.Sprintf("/comm/%s/conf/%s", comm.Alias, alias[0])
out.Items[i].Link = &lk
out.Items[i].Flags = make(map[string]bool)
// TODO: add "New" indicator
out.Items[i].Flags["new"] = false
if !user.IsAnon {
nnew, err := conf.UnreadMessages(ctxt.Ctx(), user)
if err == nil {
out.Items[i].Flags["new"] = (nnew > 0)
}
}
}
out.Flags = make(map[string]bool)
out.Flags["canManage"] = !(user.IsAnon)
out.TemplateName = "sb_ftrconf.jet"
}
}
_ = in
return err
}