diff --git a/docs/API.md b/docs/API.md index 6ce94f67..c1188e08 100644 --- a/docs/API.md +++ b/docs/API.md @@ -1245,7 +1245,7 @@ pres: { clear: 15, // integer, "what" is "del", an update to the delete transaction ID. delseq: [{low: 123}, {low: 126, hi: 136}], // array of ranges, "what" is "del", // ranges of IDs of deleted messages, optional - ua: "Tinode/1.0 (Android 2.2)", // string, a User Agent string identifying client + ua: "Tinode/1.0 (Android 2.2)", // string, a User Agent string identifying the client // software if "what" is "on" or "ua", optional act: "usr2il9suCbuko", // string, user who performed the action, optional tgt: "usrRkDVe0PYDOo", // string, user affected by the action, optional diff --git a/server/db/mysql/adapter.go b/server/db/mysql/adapter.go index 9bf6a3c4..f69ebaa3 100644 --- a/server/db/mysql/adapter.go +++ b/server/db/mysql/adapter.go @@ -1463,10 +1463,12 @@ func (a *adapter) TopicsForUser(uid t.Uid, keepDeleted bool, opts *t.QueryOpt) ( limit := a.maxResults if opts != nil { - if opts.IfModifiedSince != nil { - q += " AND updatedat>?" - args = append(args, opts.IfModifiedSince) - } + /* + if opts.IfModifiedSince != nil { + q += " AND updatedat>?" + args = append(args, opts.IfModifiedSince) + } + */ if opts.Topic != "" { q += " AND topic=?" args = append(args, opts.Topic)