Skip to content

Commit

Permalink
fix some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
n1d3v committed Jun 20, 2024
1 parent a02a5a8 commit 2002790
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 20 deletions.
4 changes: 1 addition & 3 deletions Naticord/Classes/WebSocketClientDM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ private void SendIdentifyPayload()

private async Task HandleWebSocketMessage(string data)
{
Console.WriteLine($"WebSocket Received: {data}");

var json = JObject.Parse(data);
int opCode = (int)json["op"];

Expand All @@ -91,7 +89,7 @@ private async Task HandleWebSocketMessage(string data)
HandleTypingStopEvent(json["d"]);
break;
case "PRESENCE_UPDATE":
//HandlePresenceUpdateEvent(json["d"]);
// soon
break;
}
break;
Expand Down
3 changes: 0 additions & 3 deletions Naticord/Classes/WebSocketClientServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ private async void HandleMessageCreateEvent(JToken data)
List<Attachment> attachmentsFormed = new List<Attachment>();
List<Embed> embedsFormed = new List<Embed>();

// Form attachments
if (attachmentData != null)
{
foreach (var attachment in attachmentData)
Expand All @@ -182,7 +181,6 @@ private async void HandleMessageCreateEvent(JToken data)
}
}

// Form embeds
if (embedData != null)
{
foreach (var embed in embedData)
Expand All @@ -199,7 +197,6 @@ private async void HandleMessageCreateEvent(JToken data)
}
}

// Directly call AddMessage based on message type
switch ((int)eventData["type"].Value)
{
case 7:
Expand Down
2 changes: 1 addition & 1 deletion Naticord/Forms/DM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,4 @@ private void messageBox_KeyDown(object sender, KeyEventArgs e)
}
}
}
}
}
1 change: 1 addition & 0 deletions Naticord/Forms/Naticord.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Naticord/Forms/Naticord.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<data name="button1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAZCAYAAAArK+5dAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
EAAACxABrSO9dQAAAIBJREFUSEvtk9sJgDAQBFOKnWlnlmJpeqMchJDAeuTHmIHlHnjZPDBN/stmOk3r
DwAACw8BkvkDpQAAAIBJREFUSEvtk9sJgDAQBFOKnWlnlmJpeqMchJDAeuTHmIHlHnjZPDBN/stmOk3r
XT2oPYnxDHbTYaJHpIZuBuSlIGygEjJgqBQsJnKiQ/3awK8gF9QWCxnwMY/IINGHa4txGur8VBLddttC
MSAvJaMYtP4NCcUAaj2J7xtMhiGlC+g5VgAIs/GsAAAAAElFTkSuQmCC
</value>
Expand Down
13 changes: 3 additions & 10 deletions Naticord/Naticord.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,16 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup />
<PropertyGroup>
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'GitHub Release|AnyCPU'">
<OutputPath>bin\GitHub Release\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="DotNetZip, Version=1.16.0.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
<HintPath>packages\DotNetZip.1.16.0\lib\net40\DotNetZip.dll</HintPath>
Expand Down
8 changes: 6 additions & 2 deletions Naticord/Naticord.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
GitHub Release|Any CPU = GitHub Release|Any CPU
Release|Any CPU = Release|Any CPU
Testing|Any CPU = Testing|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1D209443-49D6-4E9D-AE19-E4990777B522}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D209443-49D6-4E9D-AE19-E4990777B522}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D209443-49D6-4E9D-AE19-E4990777B522}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D209443-49D6-4E9D-AE19-E4990777B522}.Release|Any CPU.Build.0 = Release|Any CPU
{1D209443-49D6-4E9D-AE19-E4990777B522}.GitHub Release|Any CPU.ActiveCfg = GitHub Release|Any CPU
{1D209443-49D6-4E9D-AE19-E4990777B522}.GitHub Release|Any CPU.Build.0 = GitHub Release|Any CPU
{1D209443-49D6-4E9D-AE19-E4990777B522}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{1D209443-49D6-4E9D-AE19-E4990777B522}.Testing|Any CPU.ActiveCfg = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 2002790

Please sign in to comment.