From 09967d12e00e5bc1b59281d70aeb8a280b8f150f Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Mon, 14 Feb 2022 08:44:20 +0100 Subject: [PATCH] Update comments --- clientapi/routing/server_notices.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clientapi/routing/server_notices.go b/clientapi/routing/server_notices.go index c4f783b55..1a5d2e8f9 100644 --- a/clientapi/routing/server_notices.go +++ b/clientapi/routing/server_notices.go @@ -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