mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
Allow empty last sent ID for the first event
This commit is contained in:
parent
fb9243b4ed
commit
9bb33c4d24
|
|
@ -87,7 +87,7 @@ func (d *Database) UpdateRoom(
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if lastSentEventID != oldEventID {
|
if lastSentEventID != "" && lastSentEventID != oldEventID {
|
||||||
return types.EventIDMismatchError{
|
return types.EventIDMismatchError{
|
||||||
DatabaseID: lastSentEventID, RoomServerID: oldEventID,
|
DatabaseID: lastSentEventID, RoomServerID: oldEventID,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue