bfe23d86aa
Ground work for a smoother registration flow. Overall UX still needs some polish but at least now we can have a progress gif or animation or whatever. Also adds the phonenumber-confirmation step as a simple alert box, which will be replaced with a nice dialogue in a later commit.
23 lines
1.1 KiB
JavaScript
23 lines
1.1 KiB
JavaScript
;(function() {
|
|
|
|
function loadProtoBufs(filename) {
|
|
return dcodeIO.ProtoBuf.loadProtoFile({root: '/protos', file: filename}).build('textsecure');
|
|
};
|
|
|
|
var pushMessages = loadProtoBufs('IncomingPushMessageSignal.proto');
|
|
var subProtocolMessages = loadProtoBufs('SubProtocol.proto');
|
|
var deviceMessages = loadProtoBufs('DeviceMessages.proto');
|
|
|
|
window.textsecure = window.textsecure || {};
|
|
window.textsecure.protobuf = {
|
|
IncomingPushMessageSignal : pushMessages.IncomingPushMessageSignal,
|
|
PushMessageContent : pushMessages.PushMessageContent,
|
|
ProvisioningUuid : deviceMessages.ProvisioningUuid,
|
|
ProvisionEnvelope : deviceMessages.ProvisionEnvelope,
|
|
ProvisionMessage : deviceMessages.ProvisionMessage,
|
|
DeviceControl : deviceMessages.DeviceControl,
|
|
WebSocketResponseMessage : subProtocolMessages.WebSocketResponseMessage,
|
|
WebSocketRequestMessage : subProtocolMessages.WebSocketRequestMessage,
|
|
WebSocketMessage : subProtocolMessages.WebSocketMessage
|
|
};
|
|
})();
|