Commit Graph

6 Commits

Author SHA1 Message Date
Anna Schumaker 1e767dbfe9 Implement a single fetch_info() function
This already existed, so I just had to define the api calls to use.
Unfortunately, groups return a similar group object so I also have to
define what return object needs to be looked up.  Additionally, IMs have
an extra "return_im" object that needs to be passed to get the full
channel info.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-11-22 10:18:16 -05:00
Anna Schumaker 53d9aa4e3d Implement a single mark_messages() function
Rather than having each thread type define its own mark method, let's
instead have them tell us what api call to use to avoid duplicating
work.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-11-22 09:18:29 -05:00
Anna Schumaker f517f8c391 Implement a single fetch_messages() function
Rather than having each thread type define its own fetch history method,
let's instead have them tell us what api call to use to avoid
duplicating work

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-11-22 08:47:03 -05:00
Anna Schumaker 265522cb17 Set "oldest" timestamp when reading IMs
Otherwise we will send all messages in the thread

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-11-16 16:16:41 -05:00
Anna Schumaker 1d6764564d Properly format IM urls
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-11-16 16:06:54 -05:00
Anna Schumaker 3027ec5ba7 Add support for fetching direct messages
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-11-16 15:52:42 -05:00