aboutsummaryrefslogtreecommitdiff
path: root/matrix
diff options
context:
space:
mode:
Diffstat (limited to 'matrix')
-rw-r--r--matrix/history.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix/history.go b/matrix/history.go
index 980b942..0cfb84e 100644
--- a/matrix/history.go
+++ b/matrix/history.go
@@ -185,7 +185,7 @@ func (hm *HistoryManager) Load(room *rooms.Room, num int) (events []*mautrix.Eve
}
ptrStart, ok := hm.historyLoadPtr[room]
if !ok {
- ptrStart = stream.Sequence()
+ ptrStart = stream.Sequence() + 1
}
c := stream.Cursor()
k, v := c.Seek(itob(ptrStart - uint64(num)))