update messages paging for conduit.rs, which in turn doesnt work but thats future work
This commit is contained in:
@@ -71,12 +71,12 @@ func (m *Matrix) Receive() ([]Message, error) {
|
||||
return nil, err
|
||||
}
|
||||
messages := make([]Message, 0)
|
||||
result, err := c.Messages(m.room, "", m.continuation, 'b', 50)
|
||||
result, err := c.Messages(m.room, "999999999999999999", m.continuation, 'b', 50)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.Printf("%s => {Start:%s End:%v};; %v, (%d)", m.continuation, result.Start, result.End, err, len(result.Chunk))
|
||||
m.continuation = result.Start
|
||||
m.continuation = result.End
|
||||
for _, event := range result.Chunk {
|
||||
//log.Printf("%+v", event)
|
||||
if _, ok := matrixIDs[event.Sender]; !ok {
|
||||
|
||||
Reference in New Issue
Block a user