mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-31 02:33:09 -06:00
Update comments
This commit is contained in:
parent
11cab9c469
commit
09967d12e0
|
|
@ -187,6 +187,7 @@ func SendServerNotice(
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
// if we didn't get a createRoomResponse, we probably received an error, so return that.
|
||||||
return roomRes
|
return roomRes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -267,7 +268,7 @@ func (r sendServerNoticeRequest) valid() (ok bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// getSenderDevice creates a user account to be used when sending server notices.
|
// getSenderDevice creates a user account to be used when sending server notices.
|
||||||
// It returns an userapi.Device, which is used for building the
|
// It returns an userapi.Device, which is used for building the event
|
||||||
func getSenderDevice(ctx context.Context, userAPI userapi.UserInternalAPI, cfg *config.ClientAPI) (*userapi.Device, error) {
|
func getSenderDevice(ctx context.Context, userAPI userapi.UserInternalAPI, cfg *config.ClientAPI) (*userapi.Device, error) {
|
||||||
var accRes userapi.PerformAccountCreationResponse
|
var accRes userapi.PerformAccountCreationResponse
|
||||||
// create account if it doesn't exist
|
// create account if it doesn't exist
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue