selectAccountDataByType shouldn't error when no rows
MODIFY
clientapi/auth/storage/accounts/account_data_table.go
clientapi/auth/storage/accounts/account_data_table.go
@@ -125,6 +125,10 @@ func (s *accountDataStatements) selectAccountDataByType(
var content []byte
if err = stmt.QueryRowContext(ctx, localpart, roomID, dataType).Scan(&content); err != nil {
+ if err == sql.ErrNoRows {
+ return nil, nil
+ }
+
return
}

selectAccountDataByType shouldn't error when no rows (#804)

Signed-off-by: Alex Chen <minecnly@gmail.com>