mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-05 19:43:40 +00:00
Make it build
This commit is contained in:
parent
ed375d1d76
commit
1dcc896893
1 changed files with 5 additions and 2 deletions
|
@ -57,16 +57,19 @@ func (e *EventSender) Send(
|
|||
func (e *EventSender) SendMany(
|
||||
ctx context.Context,
|
||||
roomNID types.RoomNID,
|
||||
roomID string,
|
||||
events []EventSenderValue,
|
||||
) (err error) {
|
||||
e.linearizer.Await(event.RoomID(), func() {
|
||||
e.linearizer.Await(roomID, func() {
|
||||
for i := range events {
|
||||
err = updateLatestEvents(ctx, e.db, e.outputWriter, roomNID, stateAtEvent, event, sendAsServer, transactionID)
|
||||
err = updateLatestEvents(ctx, e.db, e.outputWriter, roomNID, events[i].stateAtEvent, events[i].event, events[i].sendAsServer, events[i].transactionID)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// updateLatestEvents updates the list of latest events for this room in the database and writes the
|
||||
|
|
Loading…
Reference in a new issue