Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch/fix current issues #37

Merged
merged 3 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Amino.NET/Amino.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<SignAssembly>true</SignAssembly>
<Copyright>FabioTheFox</Copyright>
<Title>Amino.NET</Title>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -38,6 +39,10 @@
</ItemGroup>

<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="Amino.Net-Logo-V2.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
Expand Down
6 changes: 3 additions & 3 deletions Amino.NET/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@

Dictionary<string, object> data = new Dictionary<string, object>()
{
{ "secret", $"12 {googleToken}" },
{ "secret", $"32 {googleToken}" },
{ "secret2", $"0 {password}" },
{ "deviceID", deviceId },
{ "clientType", 100 },
Expand Down Expand Up @@ -1130,7 +1130,7 @@
JObject data = new JObject()
{
{ "adminOpName", 102 },
{ "adminOpNote", new JObject() { "content", reason } },
{ "adminOpNote", new JObject() { { "content", reason } } },
{ "timestamp", helpers.GetTimestamp() * 1000 }
};
RestClient client = new RestClient(helpers.BaseUrl);
Expand Down Expand Up @@ -1328,7 +1328,7 @@
public Task flag_community(string communityId, string reason, Types.Flag_Types flagType, bool asGuest = false)
{
if (!asGuest) { if (SessionId == null) { throw new Exception("ErrorCode: 0: Client not logged in"); } }
int _flagType;

Check warning on line 1331 in Amino.NET/Client.cs

View workflow job for this annotation

GitHub Actions / test

The variable '_flagType' is declared but never used
string _flag = asGuest ? "g-flag" : "flag";
JObject data = new JObject()
{
Expand Down Expand Up @@ -2167,7 +2167,7 @@
data.Add("mediaType", 110);
break;
}
data.Add("mediaUploadValue", Encoding.UTF8.GetString(Convert.FromBase64String(Convert.ToBase64String(file))));
data.Add("mediaUploadValue", Convert.ToBase64String(file));


RestClient client = new RestClient(helpers.BaseUrl);
Expand Down
2 changes: 1 addition & 1 deletion Amino.NET/SubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ public Task send_file_message(string chatId, byte[] file, Types.upload_File_Type
data.Add("mediaType", 110);
break;
}
data.Add("mediaUploadValue", Encoding.UTF8.GetString(Convert.FromBase64String(Convert.ToBase64String(file))));
data.Add("mediaUploadValue", Convert.ToBase64String(file));


RestClient client = new RestClient(helpers.BaseUrl);
Expand Down
Loading