sort memberList

for better dedup
This commit is contained in:
Henry 2021-04-08 14:38:35 +02:00
parent 2007c73295
commit 1b6077e49d

View File

@ -2,6 +2,7 @@ package roomstate
import (
"context"
"sort"
"sync"
"time"
@ -73,6 +74,7 @@ func (rsm roomStateMap) AsList() []string {
for m := range rsm {
memberList = append(memberList, m)
}
sort.Strings(memberList)
return memberList
}