Replace hooks with CS version, part 1

This commit is contained in:
Infi
2024-05-24 21:43:50 +02:00
parent 8bbfba5a10
commit 0f6556472a
3 changed files with 13 additions and 41 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ internal class MessageManager : IAsyncDisposable
private ulong LastContentId { get; set; }
private ConcurrentQueue<PendingMessage> Pending { get; } = new();
private ulong LastMessageIndex { get; set; }
private int LastMessageIndex { get; set; }
private readonly Thread PendingMessageThread;
private readonly CancellationTokenSource PendingThreadCancellationToken = new();
@@ -181,7 +181,7 @@ internal class MessageManager : IAsyncDisposable
// index, and we can use that to get the sender's content ID. The
// content ID is used to show "invite to party" buttons in the context
// menu.
var idx = Plugin.Functions.GetCurrentChatLogEntryIndex() ?? 0;
var idx = Plugin.Functions.GetCurrentChatLogEntryIndex();
var shouldGetContentId = false;
if (idx > LastMessageIndex)
{