mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Leave room for the user ID we'll no doubt append afterward
This commit is contained in:
parent
8da29403bd
commit
b845fe7c58
|
|
@ -267,7 +267,7 @@ func (n *Notifier) SharedUsers(userID string) []string {
|
|||
n._sharedUsers[userID] = struct{}{}
|
||||
}
|
||||
}
|
||||
sharedUsers := make([]string, 0, len(n._sharedUsers))
|
||||
sharedUsers := make([]string, 0, len(n._sharedUsers)+1)
|
||||
for userID := range n._sharedUsers {
|
||||
sharedUsers = append(sharedUsers, userID)
|
||||
delete(n._sharedUsers, userID)
|
||||
|
|
|
|||
Loading…
Reference in a new issue