mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Use getInt() in a couple more places.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user