From 2cebe3b5dc0a17f46cb5e4122a16ed73e9e90d97 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 10 May 2020 02:28:32 +0300 Subject: Move loaded history pointer to message view When it was in the history manager, it wouldn't get unloaded when the room was unloaded. Hopefully fixes #136 --- interface/matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interface') diff --git a/interface/matrix.go b/interface/matrix.go index 122757f..15bd733 100644 --- a/interface/matrix.go +++ b/interface/matrix.go @@ -55,7 +55,7 @@ type MatrixContainer interface { CreateRoom(req *mautrix.ReqCreateRoom) (*rooms.Room, error) FetchMembers(room *rooms.Room) error - GetHistory(room *rooms.Room, limit int) ([]*muksevt.Event, error) + GetHistory(room *rooms.Room, limit int, dbPointer uint64) ([]*muksevt.Event, uint64, error) GetEvent(room *rooms.Room, eventID id.EventID) (*muksevt.Event, error) GetRoom(roomID id.RoomID) *rooms.Room GetOrCreateRoom(roomID id.RoomID) *rooms.Room -- cgit v1.2.3