Esempio n. 1
0
 def serializeSenderKeyDistributionMessageToProtobuf(self, groupId, senderKeyDistributionMessage, message = None):
     m = message or Message()
     sender_key_distribution_message = ProtoSenderKeyDistributionMessage()
     sender_key_distribution_message.groupId = groupId
     sender_key_distribution_message.axolotl_sender_key_distribution_message = senderKeyDistributionMessage.serialize()
     m.sender_key_distribution_message.MergeFrom(sender_key_distribution_message)
     # m.conversation = text
     return m
 def serializeSenderKeyDistributionMessageToProtobuf(self, groupId, senderKeyDistributionMessage, message = None):
     m = message or Message()
     sender_key_distribution_message = ProtoSenderKeyDistributionMessage()
     sender_key_distribution_message.groupId = groupId
     sender_key_distribution_message.axolotl_sender_key_distribution_message = senderKeyDistributionMessage.serialize()
     m.sender_key_distribution_message.MergeFrom(sender_key_distribution_message)
     # m.conversation = text
     return m