fix: uint
Build Release / check-version (push) Canceled after 0s
Build Release / build-linux (arm64, linux) (push) Canceled after 0s
Build Release / build-linux (x64, linux) (push) Canceled after 0s
Build Release / build-win32 (ia32, win32) (push) Canceled after 0s
Build Release / build-win32 (x64, win32) (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
Build Release / check-version (push) Canceled after 0s
Build Release / build-linux (arm64, linux) (push) Canceled after 0s
Build Release / build-linux (x64, linux) (push) Canceled after 0s
Build Release / build-win32 (ia32, win32) (push) Canceled after 0s
Build Release / build-win32 (x64, win32) (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
This commit is contained in:
1 parent
1dc844435a
commit
9685931694
1 file changed
+1
-1
@@ -74,7 +74,7 @@ class MessageUniqueWrapper {
|
||||
createMsg(peer: Peer, msgId: string): number | undefined {
|
||||
const key = `${msgId}|${peer.chatType}|${peer.peerUid}`;
|
||||
const hash = crypto.createHash('sha1').update(key);
|
||||
const shortId = parseInt(hash.digest('hex').slice(0, 8), 16);
|
||||
const shortId = Buffer.from(hash.digest('hex').slice(0, 8),'hex').readInt32BE();
|
||||
const isExist = this.msgIdMap.getKey(shortId);
|
||||
//console.log(`${peer.peerUid} ${msgId} ------- ${shortId}`);
|
||||
if (isExist && isExist === msgId) {
|
||||
|
||||
Reference in new issue
Block a user