Skip to content

Commit

Permalink
Remove invalid cleanup calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Apr 10, 2024
1 parent 57348d0 commit d946571
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,6 @@ func (portal *Portal) applySignalGroupChange(ctx context.Context, source *User,
log.Err(err).Msg("Failed to save portal in database after processing group change")
}
portal.UpdateBridgeInfo(ctx)
portal.CleanupIfEmpty(ctx)
}

func (portal *Portal) sendMembershipForPuppetAndUser(ctx context.Context, sender *Puppet, target uuid.UUID, membership event.Membership, action string) (puppet *Puppet, err error) {
Expand Down Expand Up @@ -2453,7 +2452,6 @@ func (portal *Portal) SyncParticipants(ctx context.Context, source *User, info *
}
}
}
portal.CleanupIfEmpty(ctx)
return userIDs
}

Expand Down

0 comments on commit d946571

Please sign in to comment.