Method and device for transferring messages
AssigneeXiaomi Inc.
InventorGuoming Liu
Life of this patent
Estimating the term…
Abstract
A method for transferring a message includes receiving a message passing request. The message passing request includes a message to be passed, first information regarding a source account generating the message to be passed, and second information regarding a target account of the message to be passed. The method also includes determining a message passing path from the source account to the target account according to stored association relationships between user accounts. The message passing path includes at least one relay user account. The method further includes transferring the message to be passed to the target account through the message passing path.
Claims15
A method implemented by a processor to transfer a message, comprising:
- receiving, by the processor, a message passing request from a terminal, the message passing request including:
- a message to be passed,
- first information regarding a source account generating the message to be passed, and
- second information regarding a target account of the message to be passed to,
- wherein the source account and the target account are user accounts in a messaging application;
- determining, by the processor, a message passing path from the source account to the target account according to stored association relationships between the user accounts in the messaging application, the message passing path including at least one relay user account;
- and
- transferring, by the processor, the message to be passed to the target account through the message passing path,
- wherein transferring the message to be passed to the target account through the message passing path includes:
- sending a message relay request to a terminal in which one of the at least one relay user account is logged,
- sending, when the terminal in which the one of the at least one relay user account is logged returns a first agreement message and if a next user account in the message passing path that follows the one of the at least one relay user account is another one of the at least one relay user account, the relay message passing request to a terminal in which the another one of the at least one relay user account is logged, and
- sending, when the terminal in which the one of the at least one relay user account is logged returns the agreement message and if the next user account in the message passing path that follows the one of the at least one relay user account is the target account, a session message including the message to be passed to a terminal in which the target account is logged.
A method implemented by a processor to transfer a message, comprising:
- sending, by the processor, information regarding a target account to a server through a logged-in account, wherein the logged-in account and the target account are user accounts in a messaging application;
- receiving, by the processor, a message passing path from the logged-in account to the target account determined by the server according to stored association relationships between user accounts in the messaging application, the message passing path including at least one relay user account;
- and
- transferring, by the processor, a message to be passed to the target account through the message passing path,
- wherein transferring the message to be passed to the target account through the message passing path includes:
- sending a message relay request to a terminal in which one of the at least one relay user account or the target account is logged, the relay message passing request including information regarding the message passing path and the message to be passed;
- the method further including:
- when a receiver account that receives the message relay request is one of the relay user accounts and if the receiver account agrees to the message relay request, sending, by the receiver account, the message relay request to a terminal in which a user account next to the receiver account in the message passing path is logged, and
- when the receiver account is the target account, displaying the information regarding the message passing path and the message to be passed on a terminal in which the target account is logged.
An electronic apparatus, comprising:
- a processor;
- and
- a non-transitory computer-readable storage medium storing instructions that, when executed by the processor, cause the processor to:
- receive a message passing request from a terminal, the message passing request including:
- a message to be passed,
- first information regarding a source account generating the message to be passed, and
- second information regarding a target account of the message to be passed to,
- wherein the source account and the target account are user accounts in a messaging application,
- determine a message passing path from the source account to the target account according to stored association relationships between the user accounts in the messaging application, the message passing path including at least one relay user account, and
- transfer the message to be passed to the target account through the message passing path,
- wherein in transferring the message to be passed to the target account through the message passing path, the instructions further cause the processor to:
- send a message relay request to a terminal in which one of the at least one relay user account is logged,
- send, when the terminal in which the one of the at least one relay user account is logged returns a first agreement message and if a next user account in the message passing path that follows the one of the at least one relay user account is another one of the at least one relay user account, the relay message passing request to a terminal in which the another one of the at least one relay user account is logged, and
- send, when the terminal in which the one of the at least one relay user account is logged returns the agreement message and if the next user account in the message passing path that follows the one of the at least one relay user account is the target account, a session message including the message to be passed to a terminal in which the target account is logged.
An electronic apparatus, comprising:
- a processor;
- and
- a non-transitory computer-readable storage medium storing instructions that, when executed by the processor, cause the processor to:
- send information regarding a target account to a server through a logged-in account,
- receive a message passing path from the logged-in account to the target account determined by the server according to stored association relationships between user accounts, the message passing path including at least one relay user account, and
- transfer a message to be passed to the target account through the message passing path,
- wherein in transferring the message to be passed to the target account through the message passing path, the instructions further cause the processor to:
- send a message relay request to a terminal in which one of the at least one relay user account or the target account is logged, the relay message passing request including information regarding the message passing path and the message to be passed;
- when a receiver account that receives the message relay request is one of the relay user accounts and if the receiver account agrees to the message relay request, send, by the receiver account, the message relay request to a terminal in which a user account next to the receiver account in the message passing path is logged, and
- when the receiver account is the target account, display the information regarding the message passing path and the message to be passed on a terminal in which the target account is logged.
A non-transitory computer-readable storage medium storing instructions that, when executed by a processor in a device, cause the device to:
- receive a message passing request, the message passing request including:
- a message to be passed,
- first information regarding a source account generating the message to be passed, and
- second information regarding a target account of the message to be passed to,
- wherein the source account and the target account are user accounts in a messaging application;
- determine a message passing path from the source account to the target account according to stored association relationships between the user accounts in the messaging application, the message passing path including at least one relay user account;
- and
- transfer the message to be passed to the target account through the message passing path,
- wherein in transferring the message to be passed to the target account through the message passing path, the instructions further cause the processor to:
- send a message relay request to a terminal in which one of the at least one relay user account is logged,
- send, when the terminal in which the one of the at least one relay user account is logged returns a first agreement message and if a next user account in the message passing path that follows the one of the at least one relay user account is another one of the at least one relay user account, the relay message passing request to a terminal in which the another one of the at least one relay user account is logged, and
- send, when the terminal in which the one of the at least one relay user account is logged returns the agreement message and if the next user account in the message passing path that follows the one of the at least one relay user account is the target account, a session message including the message to be passed to a terminal in which the target account is logged.
Dependencies are inferred from the claim text.