This commit is contained in:
or-else
2021-06-09 11:26:32 -07:00
parent 42f2360c37
commit fbcf0683a6
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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
+6 -4
View File
@@ -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)