mirror of
https://github.com/tinode/chat.git
synced 2026-05-07 20:12:42 +00:00
wip
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user