mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 01:13:10 -06:00
Correctly initialise slice
This commit is contained in:
parent
214d856674
commit
38024245e5
|
|
@ -48,7 +48,7 @@ func GetInitialSync(
|
||||||
}
|
}
|
||||||
|
|
||||||
func syncResponseToIntialSync(syncResponse *types.Response) initialSyncResponse {
|
func syncResponseToIntialSync(syncResponse *types.Response) initialSyncResponse {
|
||||||
var rooms []initialSyncRoomResponse
|
rooms := []initialSyncRoomResponse{}
|
||||||
|
|
||||||
for roomID, room := range syncResponse.Rooms.Join {
|
for roomID, room := range syncResponse.Rooms.Join {
|
||||||
rooms = append(rooms, initialSyncRoomResponse{
|
rooms = append(rooms, initialSyncRoomResponse{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue