Merge pull request #373 from matrix-org/dmr/fix-build

This commit is contained in:
David Robertson 2023-11-10 11:56:08 +00:00 committed by GitHub
commit 192099dab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -814,7 +814,7 @@ func (p *poller) parseRoomsResponse(ctx context.Context, res *SyncResponse) erro
if createEvent != nil {
roomData.State.Events = slices.Insert(roomData.State.Events, 0, createEvent)
// retry the processing of the room state
prependStateEvents, err = p.receiver.Initialise(ctx, roomID, roomData.State.Events)
err = p.receiver.Initialise(ctx, roomID, roomData.State.Events)
if err == nil {
const warnMsg = "parseRoomsResponse: m.room.create event was found in the timeline not state, info after moving create event"
logger.Warn().Str("user_id", p.userID).Str("room_id", roomID).Int(