Commit 1ab25e2b authored by Simon Esposito's avatar Simon Esposito
Browse files

Fix js runtime matchmaker matched

parent 52040709
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
### Changed
- Sort match listings to show newer created matches first by default.

### Fixed
- Fix an issue in the js runtime that would prevent the matchmaker matched callback to function correctly.

## [3.1.1] - 2021-02-15
### Changed
- Go runtime logger now identifies the file/line in the runtime as the caller rather than the logger.
+1 −1
Original line number Diff line number Diff line
@@ -1571,7 +1571,7 @@ func (rp *RuntimeProviderJS) MatchmakerMatched(ctx context.Context, entries []*M
		return "", false, nil
	}

	retString, ok := retValue.(goja.Value).Export().(string)
	retString, ok := retValue.(string)
	if ok {
		matchIDComponents := strings.SplitN(retString, ".", 2)
		if len(matchIDComponents) != 2 {