You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
957 B
JavaScript
22 lines
957 B
JavaScript
;(function() {
|
|
|
|
function loadProtoBufs(filename) {
|
|
return dcodeIO.ProtoBuf.loadProtoFile({root: 'protos', file: filename}).build('textsecure');
|
|
};
|
|
|
|
var pushMessages = loadProtoBufs('IncomingPushMessageSignal.proto');
|
|
var protocolMessages = loadProtoBufs('WhisperTextProtocol.proto');
|
|
var deviceMessages = loadProtoBufs('DeviceMessages.proto');
|
|
|
|
window.textsecure = window.textsecure || {};
|
|
window.textsecure.protobuf = {
|
|
IncomingPushMessageSignal : pushMessages.IncomingPushMessageSignal,
|
|
PushMessageContent : pushMessages.PushMessageContent,
|
|
WhisperMessage : protocolMessages.WhisperMessage,
|
|
PreKeyWhisperMessage : protocolMessages.PreKeyWhisperMessage,
|
|
DeviceInit : deviceMessages.DeviceInit,
|
|
IdentityKey : deviceMessages.IdentityKey,
|
|
DeviceControl : deviceMessages.DeviceControl
|
|
};
|
|
})();
|