diff --git a/find.js b/find.js new file mode 100644 index 00000000..695558b4 --- /dev/null +++ b/find.js @@ -0,0 +1,23 @@ +import fs from 'fs'; + +const files = fs.readdirSync('lib/', { + recursive: true +}); + +const q = process.argv[2]; + +var total = 0; + +for (const f of files) { + try { + const b = fs.readFileSync(`lib/${f}`, 'utf-8'); + if (b.includes(q) || f.includes(q)) { + total ++; + console.log(f); + } + } catch (error) { + + } +} + +console.log(`${total} files in total`); \ No newline at end of file diff --git a/lib/src/client.dart b/lib/src/client.dart index f63e1817..7c1878ff 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -585,6 +585,7 @@ class Client extends MatrixApi { /// The result of this call is stored in [wellKnown] for later use at runtime. @override Future getWellknown() async { + Logs().v(userID!); final wellKnownResponse = await httpClient.get( Uri.https(userID!.domain!, '/.well-known/matrix/client'), );