Message withdrawal method, apparatus and storage medium
AssigneeXiaomi Inc.
InventorsTiejun Liu, Pengfei Zhang, Xingsheng Lin
Life of this patent
Estimating the term…
Abstract
A message withdrawal method, apparatus and a storage medium are disclosed. The method includes receiving a message withdrawal instruction, where the message withdrawal instruction at least includes a message identifier of a target message to be withdrawn, determining a storage path of a target network resource according to a mapping relation between a storage location of a downloaded network resource and the message identifier, deleting the target message using the message identifier, and deleting the target network resource at the storage path of the target network resource.
Claims15
A message withdrawal method applied in a terminal, comprising:
- receiving a target message, wherein the target message comprises a target network resource;
- downloading the target network resource included in the target message according to a downloading operation of a user;
- establishing a mapping relation between a storage path of the target network resource and a message identifier of the target message;
- receiving, by the terminal, a message withdrawal instruction, wherein the message withdrawal instruction at least comprises the message identifier of a target message to be withdrawn;
- determining, by the terminal, the storage path of the target network resource according to the mapping relation between the storage path of the downloaded network resource and the message identifier, wherein the storage path identifies a storage position of the target network resource in the terminal;
- deleting, by the terminal, the target message in the terminal using the message identifier;
- and
- deleting, by the terminal, the target network resource at the storage position in the terminal;
- wherein the method further comprises interrupting a process of downloading the target network resource under the condition the message withdrawal instruction is received in the process of downloading.
A message withdrawal apparatus, comprising:
- a processor;
- and
- a memory for storing instructions executable by the processor,
- wherein the processor is configured to:
- receive a target message, wherein the target message comprises a target network resource;
- download the target network resource included in the target message according to a downloading operation of a user;
- establish a mapping relation between a storage path of the target network resource and a message identifier of the target message;
- receive a message withdrawal instruction, wherein the message withdrawal instruction at least comprises the message identifier of the target message to be withdrawn;
- determine the storage path of the target network resource according to the mapping relation between the storage path of the downloaded network resource and the message identifier, wherein the storage path identifies a storage position of the target network resource in the terminal;
- delete the target message using the message identifier;
- and
- delete the target network resource at the storage position in the terminal,
- wherein the processor is further configured to interrupt a process of downloading the target network resource under the condition the message withdrawal instruction is received in the process of downloading.
A non-transitory computer-readable storage medium having stored instructions therein, wherein the stored instructions, when executed by a processor of a mobile terminal, cause the mobile terminal to:
- receive a target message, wherein the target message comprises a target network resource;
- download the target network resource included in the target message according to a downloading operation of a user;
- establish a mapping relation between a storage path of the target network resource and a message identifier of the target message;
- receive a message withdrawal instruction, wherein the message withdrawal instruction at least comprises the message identifier of the target message to be withdrawn, determine the storage path of the target network resource according to the mapping relation between the storage path of the downloaded network resource and the message identifier, wherein the storage path identifies a storage position of the target network resource in the terminal, delete the target message using the message identifier, and delete the target network resource at the storage position in the terminal,
- wherein the stored instructions, when executed by a processor of a mobile terminal, further cause the mobile terminal to interrupt a process of downloading the target network resource under the condition the message withdrawal instruction is received in the process of downloading.
Dependencies are inferred from the claim text.