mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 09:43:10 -06:00
Update comments
This commit is contained in:
parent
11cab9c469
commit
09967d12e0
|
|
@ -187,6 +187,7 @@ func SendServerNotice(
|
|||
}
|
||||
|
||||
default:
|
||||
// if we didn't get a createRoomResponse, we probably received an error, so return that.
|
||||
return roomRes
|
||||
}
|
||||
|
||||
|
|
@ -267,7 +268,7 @@ func (r sendServerNoticeRequest) valid() (ok bool) {
|
|||
}
|
||||
|
||||
// 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) {
|
||||
var accRes userapi.PerformAccountCreationResponse
|
||||
// create account if it doesn't exist
|
||||
|
|
|
|||
Loading…
Reference in a new issue