Use getInt() in a couple more places.

This commit is contained in:
akwizgran
2023-02-20 11:33:48 +00:00
parent 98064e9efe
commit 0ced10b3a9
4 changed files with 4 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ class AvatarValidator implements MessageValidator {
// 0.0: Message Type, Version, Content-Type
checkSize(body, 3);
// Message Type
long messageType = body.getLong(0);
long messageType = body.getInt(0);
if (messageType != MSG_TYPE_UPDATE) throw new FormatException();
// Version
long version = body.getLong(1);

View File

@@ -366,7 +366,7 @@ class PrivateGroupManagerImpl extends BdfIncomingMessageHook
// parse the metadata
for (Entry<MessageId, BdfDictionary> entry : metadata.entrySet()) {
BdfDictionary meta = entry.getValue();
if (meta.getLong(KEY_TYPE) == JOIN.getInt()) {
if (meta.getInt(KEY_TYPE) == JOIN.getInt()) {
headers.add(getJoinMessageHeader(txn, g, entry.getKey(),
meta, authorInfos));
} else {