Skip to content

Commit

Permalink
Add iv to message class
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePinkUnicorn6 committed Nov 9, 2023
1 parent 09a9bd9 commit e5df9ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,12 @@ ELSE false
LIMIT 50;";
cmd.Parameters.AddWithValue("AfterMessageID", afterMessageID);
cmd.Parameters.AddWithValue("ChannelID", channelID);
byte iv =

using (SQLiteDataReader reader = cmd.ExecuteReader())
{
while (reader.Read()) // Loops through each message and adds it to the message list
{
byte[]? iv = reader[5] == null ? null : (byte[])reader[5];
Message responseRow = new Message
{
UserID = reader.GetString(0),
Expand Down

0 comments on commit e5df9ba

Please sign in to comment.