mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 22:02:46 +00:00
Tweak messages
This commit is contained in:
parent
10f2e8d92f
commit
9ee4ca0088
2 changed files with 75 additions and 0 deletions
|
@ -517,6 +517,9 @@ func (d *Database) MostRecentMembership(
|
|||
if err != nil {
|
||||
return nil, 0, fmt.Errorf("d.CurrentRoomState.SelectStateEvent: %w", err)
|
||||
}
|
||||
if event == nil {
|
||||
return nil, 0, nil
|
||||
}
|
||||
pos, err := d.OutputEvents.SelectPositionInStream(ctx, nil, event.EventID())
|
||||
if err != nil {
|
||||
return nil, 0, fmt.Errorf("d.OutputEvents.SelectPositionInStream: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue