WO2017088377A1 - 消息撤回方法和装置 - Google Patents

消息撤回方法和装置 Download PDF

Info

Publication number
WO2017088377A1
WO2017088377A1 PCT/CN2016/082690 CN2016082690W WO2017088377A1 WO 2017088377 A1 WO2017088377 A1 WO 2017088377A1 CN 2016082690 W CN2016082690 W CN 2016082690W WO 2017088377 A1 WO2017088377 A1 WO 2017088377A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
network resource
target
target network
storage path
Prior art date
Application number
PCT/CN2016/082690
Other languages
English (en)
French (fr)
Inventor
刘铁俊
张鹏飞
林形省
Original Assignee
小米科技有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to JP2016549452A priority Critical patent/JP6461173B2/ja
Priority to KR1020167021378A priority patent/KR102531466B1/ko
Priority to RU2016134410A priority patent/RU2660948C2/ru
Publication of WO2017088377A1 publication Critical patent/WO2017088377A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the present invention relates to the field of network technologies, and in particular, to a message withdrawal method and apparatus.
  • a rich message interaction service For example, users can interact with messages through some IM (Instant Messaging) chat software.
  • IM Instant Messaging
  • a network resource message class including a picture message, a video message, a file message, and the like is included.
  • a user sends this type of message other users can download the message.
  • the user has a need to withdraw the uploaded message because of some wrong operations or other reasons.
  • some IM chat software can provide a message revocation function, by which the user can withdraw the sent message within a preset time.
  • a message revocation function by which the user can withdraw the sent message within a preset time.
  • WeChat provides a message revocation function, and the user can withdraw the sent message by clicking the button with a quick click.
  • the embodiment of the invention provides a message withdrawal method and device.
  • the technical solution is as follows:
  • a message revocation method comprising:
  • the message revocation instruction carrying at least a message identifier of the target message to be revoked;
  • the method before the receiving the message revocation instruction, the method further includes:
  • the method further includes:
  • the storage path of the target network resource is changed, the storage path of the target network resource is updated in a mapping relationship between the storage path of the downloaded network resource and the message identifier.
  • the method further includes:
  • the target storage path corresponding to the arbitrary copy and paste operation and the storage path of the target network resource are both stored as corresponding to the message identifier of the target message. path.
  • the message revocation instruction is triggered by the message server when receiving a revocation request of the message sender to the target message.
  • the downloading, by the download operation of the user, the target network resource carried by the target message include:
  • the download process is interrupted.
  • the method further includes:
  • the deletion prompt information is displayed, and the deletion prompt information is used to prompt that the target network resource and the target message have been deleted from the local.
  • the target network resource is a picture, a video, an audio, an animation, or a document.
  • a message retrieving apparatus comprising:
  • a first receiving module configured to receive a message revocation instruction, where the message revocation instruction at least carries a message identifier of the target message to be revoked;
  • a determining module configured to determine, according to a mapping relationship between a storage path of the downloaded network resource and a message identifier, a storage path of the target network resource, where the target network resource is a message identifier received by the first receiving module The network resource downloaded in the indicated target message;
  • a deleting module configured to delete a target message indicated by the message identifier received by the first receiving module
  • the deleting module is further configured to delete the target network resource from a storage path of the target network resource determined by the determining module.
  • the device further includes: a second receiving module, a downloading module, and an establishing module;
  • the second receiving module is configured to receive the target message, where the target message carries the target network resource;
  • the downloading module is configured to download, according to a download operation of the user, a target network resource carried by the target message received by the second receiving module;
  • the establishing module is configured to establish a mapping relationship between a storage path of the target network resource that is downloaded by the downloading module and a message identifier of the target message that is received by the second receiving module.
  • the apparatus further includes: an update module;
  • the update module is configured to: when detecting a change in a storage path of the target network resource that is downloaded by the download module, in a mapping relationship between a storage path of the downloaded network resource and a message identifier, update the location The storage path of the target network resource.
  • the apparatus further includes: a configuration module
  • the configuration module is configured to: when detecting any copy-and-paste operation of the target network resource downloaded by the download module, storing the target storage path corresponding to the arbitrary copy-and-paste operation and the target network resource The path is used as the storage path corresponding to the message identifier of the target message.
  • the message revocation instruction received by the first receiving module is triggered by the message server when receiving a revocation request of the message sender to the target message .
  • the downloading module includes an interrupt submodule:
  • the interrupt submodule is configured to interrupt the download process when receiving the message revocation instruction during the downloading of the target network resource.
  • the device further includes:
  • a display module configured to display deletion prompt information, where the deletion prompt information is used to prompt that the target network resource and the target message have been deleted from the local.
  • the target network resource deleted by the deleting module is a picture, a video, an audio, an animation, or a document.
  • a message retrieving apparatus including:
  • a memory for storing executable instructions of the processor
  • processor is used to:
  • the message revocation instruction carrying at least a message identifier of the target message to be revoked;
  • the receiving the message revocation instruction determining the storage path of the network resource to be deleted, and deleting the target network resource according to the mapping relationship between the message identifier and the storage path of the downloaded target network resource and the message identifier of the target message. And the target message to be withdrawn. In this way, even if the user downloads the target network resource to the local, the terminal can automatically delete it, avoiding the problem of network resource leakage and ensuring the integrity of the message withdrawal.
  • FIG. 1 is a flowchart of a message revocation method according to an exemplary embodiment.
  • FIG. 2 is a flowchart of a message revocation method according to another exemplary embodiment.
  • FIG. 3 is a block diagram of a message retrieving apparatus, according to an exemplary embodiment.
  • FIG. 4 is a block diagram of a message retrieving apparatus, according to another exemplary embodiment.
  • FIG. 5 is a block diagram of a message retrieving apparatus, according to another exemplary embodiment.
  • FIG. 6 is a block diagram of a message retrieving apparatus, according to another exemplary embodiment.
  • FIG. 7 is a block diagram of a device of a download module 350, according to an exemplary embodiment.
  • FIG. 8 is a block diagram of a message retrieving apparatus, according to another exemplary embodiment.
  • FIG. 9 is a block diagram of a terminal 900, according to an exemplary embodiment.
  • the message revocation method provided by the embodiment of the present invention is executed by the terminal, and the terminal runs a social application client, such as IM (Instant Messaging) chat software, and the client is used for message interaction and network resource downloading.
  • the terminal may be a device such as a mobile phone, a tablet computer or a computer.
  • FIG. 1 is a flowchart of a message revocation method according to an exemplary embodiment. The embodiment is illustrated by the terminal by using the message revocation method.
  • the message withdrawal method can include the following steps:
  • step 101 a message revocation instruction is received, the message revocation instruction carrying at least a message identifier of the target message to be revoked.
  • step 102 the storage path of the target network resource is determined according to the mapping relationship between the storage path of the downloaded network resource and the message identifier, and the target network resource is the network resource downloaded from the target message.
  • step 103 the target message is deleted.
  • step 104 the target network resource is deleted from the storage path of the target network resource.
  • the method provided by the embodiment of the present invention determines the storage path of the network resource to be deleted by receiving the message revocation instruction, according to the message identifier carried by the message identifier and the mapping relationship between the storage path of the downloaded target network resource and the message identifier of the target message. And remove the target network resource and the target message to be revoked from it. In this way, even if the user downloads the target network resource to the local, the terminal can automatically delete it, avoiding the problem of network resource leakage and ensuring the integrity of the message withdrawal.
  • the method before the receiving the message revocation instruction, the method further includes:
  • the terminal After receiving the message and downloading the target network resource carried by the terminal, the terminal establishes a mapping relationship between the storage path of the target network resource and the message identifier of the message, so that the terminal can determine the target network resource according to the message identifier of the message. Store paths so you can be sure to find the target network resources.
  • the method further includes:
  • the storage path of the target network resource is changed, the storage path of the target network resource is updated in a mapping relationship between the storage path of the downloaded network resource and the message identifier.
  • the terminal can determine the storage path of the target network resource through the updated mapping relationship, thereby improving the reliability of the message withdrawal.
  • the method further includes:
  • the target storage path corresponding to the arbitrary copy and paste operation and the storage path of the target network resource are both stored as corresponding to the message identifier of the target message. path.
  • the target storage path corresponding to the arbitrary copy-and-paste operation is also used as the storage path corresponding to the message identifier of the target message, thereby ensuring the integrity of the message withdrawal.
  • the message revocation instruction is triggered by the message server upon receiving a revocation request of the message sender for the target message.
  • the server When receiving the request for revocation of the target message by the sender of the message, the server sends a message revocation instruction to the terminal to ensure the accuracy of the message revocation.
  • the downloading the target network resource carried by the target message according to the download operation of the user includes:
  • the download process is interrupted.
  • the method further includes:
  • the deletion prompt information is displayed, and the deletion prompt information is used to prompt that the target network resource and the target message have been deleted from the local.
  • the terminal When the terminal deletes the target network resource and the target message, the user is prompted by the display mode to avoid the trouble caused by the automatic deletion to the user, thereby improving the user experience.
  • the target network resource is a picture, a video, an audio, an animation, or a document.
  • the target network resource may include the foregoing network resources, enriching the types of network resources to be withdrawn, thereby improving the applicability of message withdrawal.
  • FIG. 2 is a flowchart of a message revocation method according to another exemplary embodiment. This embodiment is exemplified by the terminal revocation method.
  • the message withdrawal method can include the following steps:
  • step 201 a message is received that carries the target network resource.
  • the target network resource is determined. After receiving the target message and downloading the target network resource, the terminal needs to establish a mapping relationship between the message identifier of the target message and the local storage path of the target network resource, so that the terminal is in the Upon receiving the revocation instruction of the target message, the target network resource is determined according to the message identifier carried by the revocation instruction and the mapping relationship.
  • the message received by the terminal may be sent by any other terminal, and the message carries network resources.
  • the message may include only network resources.
  • the message is a picture message sent by another user during an instant messaging session.
  • the message may also include network resources and other content.
  • the message may include a picture and A piece of text information.
  • the target network resource may be a picture, a video, an audio, an animation, or a document.
  • the target network resource may also refer to a compressed file of any of the above-mentioned forms of resources.
  • the target network resource includes a compressed file M, and the compressed file M is compressed by the document m1 and the document m2.
  • step 202 the target network resource carried by the target message is downloaded according to the download operation of the user.
  • the terminal receives the target message sent by any other terminal, and the user can download the target network resource carried in the target message.
  • the terminal can download the target network resource to the user.
  • the terminal can obtain the storage path of the target network resource.
  • the terminal can obtain the storage path of the document resourceA as E: ⁇ document. ⁇ resourceA.doc.
  • the terminal can also download the target network resource to the default storage location of the system. For example, if the default storage location of the system is C: ⁇ , the terminal downloads the document resourceA to the C: ⁇ storage location, and at this time, obtains the document.
  • the storage path of resourceA is C: ⁇ resourceA.doc.
  • the terminal receives a certain target message
  • the target network resource carried in the target message is the document resourceA
  • the storage location specified by the user is E: ⁇ document
  • the terminal detects the download operation of the document resourceA by the user, Download the resourceA of the document to the E: ⁇ document storage location, and obtain the storage path of the resourceA of the document as E: ⁇ document ⁇ resourceA.doc.
  • the terminal may prohibit the user from performing any operation on the target message, that is, in the currently displayed interactive interface, the terminal does not allow the user to perform any operation until the target message is revoked, and the operations that are not allowed to be performed may include However, it is not limited to operations such as forwarding, collection, or copying.
  • step 203 a mapping relationship between the storage path of the target network resource and the message identifier of the target message is established.
  • the message identifier of the target message is used to uniquely identify the target message, so that the terminal can uniquely determine the target message according to the message identifier.
  • the terminal can maintain a database for indexing the target network resources by using the message identifier as an index.
  • the mapping relationship between the path and the message identifier of the target message is stored. Based on the foregoing mapping relationship, the terminal can uniquely determine the storage path of the target network resource according to the message identifier of the target message.
  • the terminal After downloading the document resourceA, the terminal establishes the storage path E: ⁇ document ⁇ resourceA.doc and the message identifier of the target message, message ID A.
  • the mapping relationship between the two is stored in the database.
  • the user may also copy and paste the downloaded target network resource.
  • the target network resource after copying and pasting corresponds to the new storage path, in order to ensure the deletion of the target network resource. Integrity, you also need to delete the target network resources after copying and pasting.
  • the target storage path corresponding to the copy-and-paste operation and the storage path of the target network resource are both used as the storage path corresponding to the message identifier of the target message, that is, the terminal
  • the mapping relationship between the storage path of the target network resource and the message identifier of the target message is established, and the mapping relationship between the target storage path corresponding to the copy and paste operation and the message identifier of the target message needs to be established.
  • the target storage path corresponding to the arbitrary copy-and-paste operation is also used as the storage path corresponding to the message identifier of the target message, thereby ensuring the integrity of the message withdrawal.
  • the storage location of the document resourceA is E: ⁇ document
  • the storage path of the document resourceA is E: ⁇ document ⁇ resourceA.doc
  • the user copies and pastes the document resourceA, and saves the copied and pasted document resourceA.
  • the copy and paste document resourceA is stored in D: ⁇ document ⁇ resourceA.doc
  • the terminal uses E: ⁇ document ⁇ resourceA.doc and D: ⁇ document ⁇ resourceA.doc as messages.
  • the storage path corresponding to the message ID A is identified, that is, the terminal establishes a mapping relationship between the storage path F: ⁇ document ⁇ resourceA.doc, E: ⁇ document ⁇ resourceA.doc, and the message identifier message ID A.
  • step 204 when it is detected that the storage path of the target network resource changes, the storage path of the target network resource is updated in the mapping relationship between the storage path of the downloaded network resource and the message identifier.
  • the user can change the storage location of the target network resource, and accordingly, the storage path of the target network resource changes.
  • the changing operation of the storage location of the target network resource may include: renaming the last folder name in the storage location of the target network resource, for example, re-creating the document folder in the storage location of the document resourceA E: ⁇ document Named folder, the changed file resourceA is stored in E: ⁇ folder.
  • the storage path of the document resourceA is changed from E: ⁇ document ⁇ resourceA.doc to E: ⁇ folder ⁇ resourceA.doc; or,
  • the change operation of the storage location of the target network resource may also refer to moving the target network resource to another storage location different in the root directory, for example, moving the document resourceA stored in the E: ⁇ document storage location to F: ⁇ In the document storage location, correspondingly, the storage path of the document resourceA is changed from E: ⁇ document ⁇ resourceA.doc to F: ⁇ document ⁇ resourceA.doc.
  • the terminal When the terminal detects that the storage path of the target network resource changes, obtains the changed storage path, and updates the original storage path to the mapping relationship between the storage path of the downloaded network resource and the message identifier stored in the database.
  • the changed storage path When the terminal detects that the storage path of the target network resource changes, obtains the changed storage path, and updates the original storage path to the mapping relationship between the storage path of the downloaded network resource and the message identifier stored in the database.
  • the changed storage path When the terminal detects that the storage path of the target network resource changes, obtains the changed storage path, and updates the original storage path to the mapping relationship between the storage path of the downloaded network resource and the message identifier stored in the database.
  • the terminal may update the storage path of the target network resource in the mapping relationship by acquiring the changed storage path, and determine the target network resource according to the updated mapping relationship.
  • the storage path improves the reliability of deleting target network resources.
  • the original storage location of the document resourceA is E: ⁇ document. Now the user moves the document resourceA to the F: ⁇ document storage location. At this time, the storage path of the document resourceA changes from the original E: ⁇ document ⁇ resourceA.doc to F. : ⁇ document ⁇ resourceA.doc.
  • the terminal detects the change, it updates E: ⁇ document ⁇ resourceA.doc to F: ⁇ document ⁇ resourceA in the mapping relationship between the E: ⁇ document ⁇ resourceA.doc stored in the database and the message ID of the message ID. Doc, that is, the terminal re-establishes the mapping relationship between the message identifier message ID A and F: ⁇ document ⁇ resourceA.doc.
  • step 205 a message revocation instruction is received, and the message revocation instruction carries at least the message identifier of the target message to be revoked.
  • the message revocation instruction is triggered by the message server upon receiving the revocation request of the message sender to the target message.
  • the message can be withdrawn by the client, and the target message revocation request can be submitted to the server.
  • the target message revocation request can carry the message identifier of the target message, and the server receives the target message.
  • the request is withdrawn, and a message revocation instruction is sent to the target message receiving terminal, where the message revocation instruction carries the message identifier of the target message, so that the target message receiving terminal deletes the target message and the network resource belonging to the target message.
  • the terminal When the terminal receives the target message revocation instruction pushed by the server, the terminal obtains the message identifier carried by the target message revocation instruction.
  • step 206 the storage path of the target network resource is determined according to the mapping relationship between the storage path of the downloaded network resource and the message identifier, and the target network resource is the network resource downloaded from the target message.
  • the terminal can determine the storage path of the target network resource from the database according to the message identifier carried in the revocation message instruction and the mapping relationship between the storage path of the downloaded network resource and the message identifier stored in the database, thereby finding the target network resource.
  • the message identifier carried in the revocation message instruction is message ID A
  • the terminal identifies the message ID A according to the message, and determines the message from the database based on the mapping relationship between the storage path of the downloaded network resource and the message ID of the message ID.
  • the target network resource resourceA can be found.
  • step 207 the target message is deleted.
  • the terminal deletes the target message according to the carried message identifier in the message revocation instruction.
  • the terminal identifies the target message according to the message ID of the message carried by the message revocation instruction, and deletes it from the terminal.
  • the message can be stored in a specified folder, and the terminal deletes the target message to be withdrawn from the specified folder.
  • step 208 the target network resource is deleted from the storage path of the target network resource.
  • the storage path of the target network resource is determined by the message identifier, and the terminal deletes the target network resource from the storage path.
  • the terminal determines that the storage path of the document resourceA is E: ⁇ document ⁇ resourceA.doc according to the message identifier message ID A, and deletes the document resourceA from the storage path.
  • the terminal may further display the deletion prompt information, where the deletion prompt information is used to prompt that the target network resource and the target message have been deleted from the local.
  • the terminal deletes the target network resource and the target message, the user is prompted by the display mode to avoid the trouble caused by the automatic deletion to the user, thereby improving the user experience.
  • the method provided by the embodiment of the present invention determines the storage path of the network resource to be deleted by receiving the message revocation instruction, according to the message identifier carried by the message identifier and the mapping relationship between the storage path of the downloaded target network resource and the message identifier of the target message. And remove the target network resource and the target message to be revoked from it. In this way, even if the user downloads the target network resource to the local, the terminal can automatically delete it, avoiding the problem of network resource leakage and ensuring the integrity of the message withdrawal.
  • FIG. 3 is a block diagram of a message revocation device, which may be implemented as part or all of a terminal by software, hardware, or a combination of both, according to an exemplary embodiment.
  • the message retracting device can include:
  • the first receiving module 310 is configured to receive a message revocation instruction, where the message revocation instruction carries at least a message identifier of the target message to be revoked;
  • the determining module 320 is configured to determine a storage path of the target network resource according to a mapping relationship between the storage path of the downloaded network resource and the message identifier, where the target network resource is a message received from the first receiving module 310 Identifying network resources downloaded in the indicated target message;
  • the deleting module 330 is configured to delete the target message indicated by the message identifier received by the first receiving module 310.
  • the deleting module 330 is further configured to delete the target network resource from a storage path of the target network resource determined by the determining module 320.
  • the device provided by the embodiment of the present invention receives the message withdrawal instruction, according to the message identifier carried by the message, and The mapping relationship between the storage path of the target network resource and the message identifier of the target message is downloaded, the storage path of the network resource to be deleted is determined, and the target network resource and the target message to be revoked are deleted therefrom. In this way, even if the user downloads the target network resource to the local, the terminal can automatically delete it, avoiding the problem of network resource leakage and ensuring the integrity of the message withdrawal.
  • the device further includes: a second receiving module 340, a downloading module 340, and an establishing module 360;
  • the second receiving module 340 is configured to receive the target message, where the target message carries the target network resource;
  • the downloading module 350 is configured to download, according to a download operation of the user, a target network resource carried by the target message received by the second receiving module;
  • the establishing module 360 is configured to establish a mapping relationship between a storage path of the target network resource that is downloaded by the downloading module 350 and a message identifier of the target message that is received by the second receiving module 340.
  • the device further includes: an update module 370;
  • the update module 370 is configured to: in the mapping relationship between the storage path of the downloaded network resource and the message identifier, when the storage path of the target network resource downloaded by the downloading module 350 is detected to be changed, Updating the storage path of the target network resource.
  • the device further includes: a configuration module 380;
  • the configuration module 380 is configured to: when detecting any copy and paste operation of the target network resource downloaded by the download module 350, the target storage path corresponding to the arbitrary copy and paste operation and the target network resource The storage path is used as the storage path corresponding to the message identifier of the target message.
  • the message revocation instruction received by the first receiving module 310 is triggered by the message server upon receiving a revocation request of the message sender to the target message.
  • the download module 350 includes an interrupt submodule 350a:
  • the interrupt sub-module 350a is configured to interrupt the download process when the message revocation instruction is received during the downloading of the target network resource.
  • the device further includes:
  • the display module 390 is configured to display deletion prompt information, where the deletion prompt information is used to prompt that the target network resource and the target message have been deleted from the local.
  • the target network resource deleted by the deleting module 330 is a picture, a video, an audio, an animation, or a document.
  • the terminal Before performing the operation of deleting the target network resource, the terminal determines the target network resource according to the message withdrawal instruction, and after receiving the target message and downloading the target network resource carried by the terminal, the terminal needs to establish the message identifier and the target network resource of the target message. a mapping relationship between local storage paths so that the terminal receives the target When the message is retracted, the target network resource is determined according to the message identifier carried by the revocation instruction and the mapping relationship.
  • the message received by the terminal may be sent by any other terminal, and the message may only include the target network resource.
  • the message may also include network resources and other content.
  • the above target network resource may also refer to a compressed file of any of the above-mentioned forms of resources.
  • the terminal receives the target message sent by any other terminal, and the user can download the target network resource carried in the target message.
  • the terminal detects the download operation of the target network resource, the terminal can download the target network resource to the target network resource.
  • the terminal In the storage location specified by the user, the terminal can obtain the storage path of the target network resource accordingly.
  • the terminal can also download the target network resource to the default storage location of the system.
  • the terminal may prohibit the user from performing any operation on the target message, that is, in the currently displayed interaction interface, the terminal does not allow the user to perform any operation until the target Messages are withdrawn, and operations that are not allowed to be performed may include, but are not limited to, operations such as forwarding, collection, or copying.
  • the message identifier of the target message is used to uniquely identify the target message, so that the terminal can uniquely determine the target message according to the message identifier.
  • the terminal can maintain a database for storing the mapping relationship between the storage path of the target network resource and the message identifier of the target message by using the message identifier as an index. Based on the foregoing mapping relationship, the terminal can uniquely determine the storage path of the target network resource according to the message identifier of the target message.
  • the above user may also copy and paste the downloaded target network resource.
  • the target network resource after copying and pasting corresponds to the new storage path.
  • the copy and paste need to be deleted.
  • the terminal After the target network resource, the terminal not only establishes a mapping relationship between the storage path of the target network resource and the message identifier of the target message, but also needs to establish a target storage path corresponding to the copy and paste operation and the message identifier of the target message. Mapping relationship.
  • the above message revocation instruction is triggered by the message server upon receiving a revocation request of the message sender for the target message.
  • the message can be withdrawn by the client, and the target message revocation request can be submitted to the server.
  • the target message revocation request can carry the message identifier of the target message, and the server receives the target message.
  • the request is withdrawn, and a message revocation instruction is sent to the target message receiving terminal, where the message revocation instruction carries the message identifier of the target message, so that the target message receiving terminal deletes the target message and the network resource belonging to the target message.
  • the terminal When the terminal receives the target message revocation instruction pushed by the server, the terminal obtains the message identifier carried by the target message revocation instruction.
  • the terminal may determine the storage path of the target network resource from the database according to the message identifier carried in the revocation message instruction and the mapping relationship between the storage path of the downloaded network resource and the message identifier stored in the database, thereby finding the target network resource. .
  • the message After receiving the message, the message may be stored in a specified folder, and the terminal deletes the target message to be withdrawn from the specified folder.
  • the terminal When the terminal deletes the target network resource and the target message, the user is prompted by the display mode to avoid the trouble caused by the automatic deletion to the user, thereby improving the user experience.
  • the embodiment provides a terminal, and the terminal can be used to execute the message revocation method provided in the foregoing embodiments.
  • the terminal 900 includes:
  • the terminal 900 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi (Wireless Fidelity, wireless).
  • the fidelity module 170 includes a processor 180 having one or more processing cores, and a power supply 190 and the like. It will be understood by those skilled in the art that the terminal structure shown in FIG. 9 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or combine some components, or different component arrangements. among them:
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting signals. Specifically, after receiving downlink information of the base station, the downlink information is processed by one or more processors 180. In addition, the data related to the uplink is sent to the base station. .
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 900 (such as audio data, phone book, etc.) and the like.
  • the memory 120 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state. Storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 may include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of the terminal 900, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal 900 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal 900 moves to the ear. And / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal 900 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal 900.
  • Audio The circuit 160 can transmit the converted electrical data of the audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160.
  • the audio data is then converted to audio data, processed by the audio data output processor 180, sent via RF circuitry 110 to, for example, another terminal, or the audio data is output to memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal 900.
  • WiFi is a short-range wireless transmission technology
  • the terminal 900 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users.
  • FIG. 9 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal 900, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the terminal 900 that connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the terminal 900 are performed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; optionally, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and an application. Etc.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal 900 further includes a power source 190 (such as a battery) for supplying power to the various components.
  • a power source 190 such as a battery
  • the power source can be logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal 900 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal is a touch screen display
  • the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more Execution.
  • the one or more programs include a message revocation method for performing the embodiment as shown in FIG. 1 or FIG. 2 above.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明是关于一种消息撤回方法和装置,属于网络技术领域。本发明通过接收消息撤回指令,消息撤回指令至少携带待撤回的目标消息的消息标识;根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径;删除该目标消息;从目标网络资源的存储路径中,删除目标网络资源。通过接收消息撤回指令,根据其携带的消息标识、以及已下载目标网络资源的存储路径与目标消息的消息标识之间的映射关系,确定待删除网络资源的存储路径,并从中删除该目标网络资源和待撤回的目标消息。如此,即使用户将目标网络资源下载至本地,终端也可以将其自动删除,避免了网络资源泄露的问题,保证了消息撤回的完整性。

Description

消息撤回方法和装置
本申请基于申请号为201510822615.7、申请日为2015年11月24日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明涉及网络技术领域,特别涉及一种消息撤回方法和装置。
背景技术
随着网络技术的快速发展,基于巨大的网络载体,提供了丰富的消息交互服务,例如,用户可以通过一些IM(Instant Messaging,即时通讯)聊天软件进行消息的交互。在这些交互的消息中,包括了网络资源消息类,该类消息包括图片消息、视频消息和文件消息等。当用户发送该类消息时,其他用户可以对该类消息进行下载。在实际应用过程中,往往因为一些错误操作或其它原因,用户对上传的消息有撤回的需求。
在相关技术中,一些IM聊天软件可以提供消息撤回功能,通过该功能,用户可以在预设时间内,将发送出去的消息撤回。例如,微信即提供了消息撤回功能,用户可以通过快速点击撤回按键,将发送出去的消息撤回。
发明内容
本发明实施例提供了一种消息撤回方法和装置。所述技术方案如下:
根据本发明实施例的第一方面,提供了一种消息撤回方法,所述方法包括:
接收消息撤回指令,所述消息撤回指令至少携带待撤回的目标消息的消息标识;
根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径,所述目标网络资源为从所述目标消息中下载的网络资源;
删除所述目标消息;
从所述目标网络资源的存储路径中,删除所述目标网络资源。
在本发明实施例的第一方面的第一种可能实现方式中,所述接收消息撤回指令之前,所述方法还包括:
接收所述目标消息,所述目标消息携带所述目标网络资源;
根据用户的下载操作,下载所述目标消息携带的目标网络资源;
建立所述目标网络资源的存储路径与所述目标消息的消息标识之间的映射关系。
结合本发明实施例的第一方面和第一方面的第一种可能实现方式,在第二种可能实现方式中,所述建立所述目标网络资源的存储路径与所述目标消息的消息标识之间的映射关系之后,所述方法还包括:
当检测到所述目标网络资源的存储路径发生变化时,在所述已下载网络资源的存储路径与消息标识之间的映射关系中,更新所述目标网络资源的存储路径。
结合本发明实施例的第一方面和第一方面的第一种可能实现方式,在第三种可能实现方式中,所述建立所述目标网络资源的存储路径与所述目标消息的消息标识之间的映射关系之后,所述方法还包括:
当检测到对所述目标网络资源的任意复制粘贴操作时,将所述任意复制粘贴操作所对应的目标存储路径和所述目标网络资源的存储路径均作为所述目标消息的消息标识对应的存储路径。
在本发明实施例的第一方面的第四种可能实现方式中,所述消息撤回指令由消息服务器在接收到消息发送方对所述目标消息的撤回请求时触发。
结合本发明实施例的第一方面和第一方面的第一种可能实现方式,在第五种可能的实现方式中,所述根据用户的下载操作,下载所述目标消息携带的目标网络资源,包括:
若在所述目标网络资源的下载过程中,接收到所述消息撤回指令,则中断所述下载过程。
在本发明实施例的第一方面的第六种可能实现方式中,所述从所述目标网络资源的存储路径中,删除所述目标网络资源之后,所述方法还包括:
显示删除提示信息,所述删除提示信息用于提示已经从本地删除所述目标网络资源和所述目标消息。
在本发明实施例的第一方面的第七种可能实现方式中,所述目标网络资源为图片、视频、音频、动画或文档。
根据本发明实施例的第二方面,提供了一种消息撤回装置,所述装置包括:
第一接收模块,用于接收消息撤回指令,所述消息撤回指令至少携带待撤回的目标消息的消息标识;
确定模块,用于根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径,所述目标网络资源为从所述第一接收模块所接收到的消息标识所指示的目标消息中下载的网络资源;
删除模块,用于删除所述第一接收模块所接收到的消息标识所指示的目标消息;
所述删除模块还用于从所述确定模块确定的所述目标网络资源的存储路径中,删除所述目标网络资源。
在本发明实施例的第二方面的第一种可能实现方式中,所述装置还包括:第二接收模块、下载模块、建立模块;
所述第二接收模块,用于接收所述目标消息,所述目标消息携带所述目标网络资源;
所述下载模块,用于根据用户的下载操作,下载所述第二接收模块接收到的目标消息所携带的目标网络资源;
所述建立模块,用于建立所述下载模块下载的所述目标网络资源的存储路径与所述第二接收模块接收到的所述目标消息的消息标识之间的映射关系。
结合本发明实施例的第二方面和第二方面的第一种可能实现方式,在第二种可能实现方式中,所述装置还包括:更新模块;
所述更新模块,用于当检测到所述下载模块下载的所述目标网络资源的存储路径发生变化时,在所述已下载网络资源的存储路径与消息标识之间的映射关系中,更新所述目标网络资源的存储路径。
结合本发明实施例的第二方面和第二方面的第一种可能实现方式,在第三种可能实现方式中,所述装置还包括:配置模块;
所述配置模块,用于当检测到对所述下载模块下载的所述目标网络资源的任意复制粘贴操作时,将所述任意复制粘贴操作所对应的目标存储路径和所述目标网络资源的存储路径均作为所述目标消息的消息标识对应的存储路径。
在本发明实施例的第二方面的第四种可能实现方式中,所述第一接收模块接收的所述消息撤回指令由消息服务器在接收到消息发送方对所述目标消息的撤回请求时触发。
结合本发明实施例的第二方面和第二方面的第一种可能实现方式,在第五种可能实现方式中,所述下载模块包括中断子模块:
所述中断子模块,用于在所述目标网络资源的下载过程中,接收到所述消息撤回指令时,中断所述下载过程。
在本发明实施例的第二方面的第六种可能实现方式中,所述装置还包括:
显示模块,用于显示删除提示信息,所述删除提示信息用于提示已经从本地删除所述目标网络资源和所述目标消息。
在本发明实施例的第二方面的第七种可能实现方式中,所述删除模块删除的所述目标网络资源为图片、视频、音频、动画或文档。
根据本发明实施例的第三方面,提供了一种消息撤回装置,包括:
处理器;
用于存储所述处理器的可执行指令的存储器;
其中,所述处理器用于:
接收消息撤回指令,所述消息撤回指令至少携带待撤回的目标消息的消息标识;
根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径,所述目标网络资源为从所述目标消息中下载的网络资源;
删除所述目标消息;
从所述目标网络资源的存储路径中,删除所述目标网络资源。
本发明实施例提供的技术方案可以包括以下有益效果:
通过接收消息撤回指令,根据其携带的消息标识、以及已下载目标网络资源的存储路径与目标消息的消息标识之间的映射关系,确定待删除网络资源的存储路径,并从中删除该目标网络资源和待撤回的目标消息。如此,即使用户将目标网络资源下载至本地,终端也可以将其自动删除,避免了网络资源泄露的问题,保证了消息撤回的完整性。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
图1是根据一示例性实施例示出的一种消息撤回方法的流程图。
图2是根据另一示例性实施例示出的一种消息撤回方法的流程图。
图3是根据一示例性实施例示出的一种消息撤回装置的框图。
图4是根据另一示例性实施例示出的一种消息撤回装置的框图。
图5是根据另一示例性实施例示出的一种消息撤回装置的框图。
图6是根据另一示例性实施例示出的一种消息撤回装置的框图。
图7是根据一示例性实施例示出的一种下载模块350的装置框图。
图8是根据另一示例性实施例示出的一种消息撤回装置的框图。
图9是根据一示例性实施例示出的一种终端900的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
本发明实施例提供的消息撤回方法由终端执行,终端中运行有社交应用客户端,例如IM(Instant Messaging,即时通讯)聊天软件,客户端用于消息交互、以及网络资源下载。其中,终端可以是诸如手机、平板电脑或者计算机等设备。
图1是根据一示例性实施例示出的一种消息撤回方法的流程图,本实施例以该消息撤回方法由终端执行来举例说明。该消息撤回方法可以包括如下几个步骤:
在步骤101中,接收消息撤回指令,该消息撤回指令至少携带待撤回的目标消息的消息标识。
在步骤102中,根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径,目标网络资源为从目标消息中下载的网络资源。
在步骤103中,删除目标消息。
在步骤104中,从目标网络资源的存储路径中,删除目标网络资源。
本发明实施例提供的方法,通过接收消息撤回指令,根据其携带的消息标识、以及已下载目标网络资源的存储路径与目标消息的消息标识之间的映射关系,确定待删除网络资源的存储路径,并从中删除该目标网络资源和待撤回的目标消息。如此,即使用户将目标网络资源下载至本地,终端也可以将其自动删除,避免了网络资源泄露的问题,保证了消息撤回的完整性。
基于上述提供的方式实施例,在一种可能的实现方式中,所述接收消息撤回指令之前,所述方法还包括:
接收所述目标消息,所述目标消息携带所述目标网络资源;
根据用户的下载操作,下载所述目标消息携带的目标网络资源;
建立所述目标网络资源的存储路径与所述目标消息的消息标识之间的映射关系。
终端在接收消息并下载其携带的目标网络资源后,通过建立该目标网络资源的存储路径与该消息的消息标识之间的映射关系,使得终端根据该消息的消息标识,能够确定目标网络资源的存储路径,从而可以确保找到目标网络资源。
在另一种可能的实现方式中,所述建立所述目标网络资源的存储路径与所述目标消息的消息标识之间的映射关系之后,所述方法还包括:
当检测到所述目标网络资源的存储路径发生变化时,在所述已下载网络资源的存储路径与消息标识之间的映射关系中,更新所述目标网络资源的存储路径。
如此,即使用户对目标网络资源的存储位置进行了更改,终端也可以通过更新后的映射关系,确定目标网络资源的存储路径,从而提高了消息撤回的可靠性。
在另一个可能的实现方式中,所述建立所述目标网络资源的存储路径与所述目标消息 的消息标识之间的映射关系之后,所述方法还包括:
当检测到对所述目标网络资源的任意复制粘贴操作时,将所述任意复制粘贴操作所对应的目标存储路径和所述目标网络资源的存储路径均作为所述目标消息的消息标识对应的存储路径。
上述当检测到目标网络资源的任意复制粘贴操作时,将任意复制粘贴操作所对应的目标存储路径也作为目标消息的消息标识对应的存储路径,保证了消息撤回的完整性。
在另一个可能的实现方式中,所述消息撤回指令由消息服务器在接收到消息发送方对所述目标消息的撤回请求时触发。
上述服务器在接收到消息发送方对所述目标消息的撤回请求时,向终端发送消息撤回指令,保证了消息撤回的准确性。
在另一种可能的实现方式中,所述根据用户的下载操作,下载所述目标消息携带的目标网络资源,包括:
若在所述目标网络资源的下载过程中,接收到所述消息撤回指令,则中断所述下载过程。
上述在下载过程中,若接收到消息撤回指令,则中断下载过程,从而提高了消息撤回的灵活性。
在另一种可能的实现方式中,所述从所述目标网络资源的存储路径中,删除所述目标网络资源之后,所述方法还包括:
显示删除提示信息,所述删除提示信息用于提示已经从本地删除所述目标网络资源和所述目标消息。
上述在终端将目标网络资源和目标消息删除时,通过显示的方式提示用户,避免自动删除给用户造成的困扰,提高了用户体验。
在另一种可能的实现方式中,所述目标网络资源为图片、视频、音频、动画或文档。
目标网络资源可以包括上述网络资源,丰富了待撤回网络资源的种类,从而提高了消息撤回的适用性。
上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。
图2是根据另一示例性实施例示出的一种消息撤回方法的流程图,本实施例以该消息撤回方法由终端执行来举例说明。该消息撤回方法可以包括如下几个步骤:
在步骤201中,接收消息,该消息携带目标网络资源。
本发明实施例提供的方法,终端在执行删除目标网络资源操作之前,为了能够根据消 息撤回指令,确定目标网络资源,终端在接收目标消息并下载其携带的目标网络资源之后,需要建立该目标消息的消息标识与目标网络资源在本地的存储路径之间的映射关系,以便终端在接收到该目标消息的撤回指令时,根据撤回指令携带的消息标识和该映射关系,确定目标网络资源。
终端所接收到的消息可以是由其它任一终端发送,消息中携带有网络资源。该消息可以只包括网络资源,例如,该消息为其他用户在即时通讯对话时发送的一条图片消息,当然,该消息也可以包括网络资源和其它内容,例如,该消息可以包括了一张图片和一段文字信息。
其中,上述目标网络资源可以是图片、视频、音频、动画或文档等。当然,目标网络资源也可以是指上述任一种形式资源的压缩文件,例如,目标网络资源为包括压缩文件M,该压缩文件M由文档m1和文档m2压缩而成。
在步骤202中,根据用户的下载操作,下载目标消息携带的目标网络资源。
终端接收到其它任一终端发送的目标消息,用户可以对该目标消息中携带的目标网络资源进行下载,当终端检测到用户对目标网络资源的下载操作时,可以将该目标网络资源下载至用户指定的存储位置中,相应地,终端可以得到目标网络资源的存储路径,例如,终端将文档resourceA下载至E:\document存储位置中,则终端可以得到该文档resourceA的存储路径为E:\document\resourceA.doc。当然,终端也可以将该目标网络资源下载至系统默认的存储位置中,例如,系统默认的存储位置为C:\,则终端将文档resourceA下载至C:\存储位置中,此时,得到文档resourceA的存储路径为C:\resourceA.doc。
例如,若终端接收到某一目标消息,该目标消息中携带的目标网络资源为文档resourceA,用户指定的存储位置为E:\document,则当终端检测到用户对该文档resourceA的下载操作时,将该文档resourceA下载至E:\document存储位置中,并得到该文档resourceA的存储路径为E:\document\resourceA.doc。
在一种可能的实现方式中,若在目标网络资源的下载过程中,接收到消息撤回指令,则中断下载过程,在本实施例中,将不再执行后续步骤。在这种情况下,终端可以禁止用户对该目标消息执行任何操作,也即在当前显示的交互界面中,终端不允许用户执行任何操作,直到该目标消息被撤回,不允许执行的操作可以包括但不限于转发、收藏或复制等操作。
在步骤203中,建立目标网络资源的存储路径与目标消息的消息标识之间的映射关系。
其中,目标消息的消息标识用于唯一标识该目标消息,以使得终端可以根据消息标识,可以唯一确定该目标消息。
终端可以维护一个数据库,该数据库用于以消息标识为索引,对目标网络资源的存储 路径与目标消息的消息标识之间的映射关系进行存储。基于上述映射关系,终端根据目标消息的消息标识,可以唯一确定目标网络资源的存储路径。
以上述例子为例,若携带文档resourceA的目标消息的消息标识为message ID A,则下载文档resourceA后,终端建立存储路径E:\document\resourceA.doc与该目标消息的消息标识message ID A之间的映射关系,并存储于数据库中。
在一种可能的实现方式中,用户还可能对已下载的目标网络资源进行复制粘贴,这种情况下,复制粘贴后的目标网络资源对应着新的存储路径,为了保证对目标网络资源删除的完整性,还需要删除复制粘贴后的目标网络资源。为此,当检测到对目标网络资源的任意复制粘贴操作时,将任意复制粘贴操作所对应的目标存储路径和目标网络资源的存储路径均作为目标消息的消息标识对应的存储路径,即,终端不仅建立目标网络资源的存储路径与目标消息的消息标识之间的映射关系,且,还需要建立任意复制粘贴操作所对应的目标存储路径与目标消息的消息标识之间的映射关系。
上述当检测到目标网络资源的任意复制粘贴操作时,将任意复制粘贴操作所对应的目标存储路径也作为目标消息的消息标识对应的存储路径,保证了消息撤回的完整性。
例如,若文档resourceA的存储位置为E:\document,则文档resourceA的存储路径为E:\document\resourceA.doc,且,用户将文档resourceA进行了复制粘贴,并将复制粘贴后的文档resourceA保存至D:\document存储位置中,则复制粘贴后的文档resourceA的存储路径为D:\document\resourceA.doc,终端将E:\document\resourceA.doc和D:\document\resourceA.doc作为消息标识message ID A对应的存储路径,即,终端分别建立存储路径F:\document\resourceA.doc、E:\document\resourceA.doc与消息标识message ID A之间的映射关系。
在步骤204中,当检测到目标网络资源的存储路径发生变化时,在已下载网络资源的存储路径与消息标识之间的映射关系中,更新目标网络资源的存储路径。
在实际应用过程中,用户可以对目标网络资源的存储位置进行更改,相应地,目标网络资源的存储路径就会发生变化。对目标网络资源的存储位置的更改操作可以包括:对目标网络资源的存储位置中的最后一个文件夹名称进行重命名更改,例如,将文档resourceA的存储位置E:\document中的document文件夹重命名为folder,则更改后的文档resourceA的存储位置为E:\folder,相应地,文档resourceA的存储路径由E:\document\resourceA.doc变化为E:\folder\resourceA.doc;或者,对目标网络资源的存储位置的更改操作也可以是指,将目标网络资源搬移至根目录不同的其它存储位置中,例如,将存储在E:\document存储位置中的文档resourceA,搬移至F:\document存储位置中,相应地,文档resourceA的存储路径由E:\document\resourceA.doc变化为 F:\document\resourceA.doc。
当终端检测到目标网络资源的存储路径发生变化时,获取变化后的存储路径,并在数据库中存储的已下载网络资源的存储路径与消息标识之间的映射关系中,将原存储路径更新为变化后的存储路径。
如此,即便目标网络资源在本地的存储路径发生变化,终端也可以通过获取变化后的存储路径,更新上述映射关系中目标网络资源的存储路径,并根据更新后的映射关系,确定目标网络资源的存储路径,如此,提高了删除目标网络资源的可靠性。
例如,文档resourceA的原存储位置为E:\document,现用户将该文档resourceA移至F:\document存储位置中,此时文档resourceA的存储路径由原E:\document\resourceA.doc变化为F:\document\resourceA.doc。终端检测到该变化时,在数据库存储的E:\document\resourceA.doc与消息标识message ID A之间的映射关系中,将E:\document\resourceA.doc更新为F:\document\resourceA.doc,即,终端重新建立了消息标识message ID A与F:\document\resourceA.doc之间的映射关系。
在步骤205中,接收消息撤回指令,消息撤回指令至少携带待撤回的目标消息的消息标识。
其中,消息撤回指令由消息服务器在接收到消息发送方对目标消息的撤回请求时触发。当消息发送者想要将发送出去的消息撤回时,可以通过客户端提供的消息撤回按键,向服务器提交目标消息撤回请求,该目标消息撤回请求可以携带该目标消息的消息标识,服务器接收目标消息撤回请求,向目标消息接收终端发送消息撤回指令,该消息撤回指令携带目标消息的消息标识,以使得目标消息接收终端对目标消息以及属于该目标消息的网络资源进行删除。
当终端接收到服务器推送的目标消息撤回指令时,获取该目标消息撤回指令携带的消息标识。
在步骤206中,根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径,目标网络资源为从目标消息中下载的网络资源。
终端根据撤回消息指令中携带的消息标识,以及数据库中存储的已下载网络资源的存储路径与消息标识之间的映射关系,可以从数据库中确定目标网络资源的存储路径,从而找到目标网络资源。
例如,撤回消息指令中携带的消息标识为message ID A,终端根据该消息标识message ID A,基于已下载网络资源的存储路径与消息标识message ID A之间的映射关系,从数据库中确定与消息标识message ID A具有映射关系的存储路径E:\document\resourceA.doc,并从该存储路径E:\document\resourceA.doc中,可以找到目标网络资源resourceA。
在步骤207中,删除目标消息。
终端根据消息撤回指令中的携带的消息标识,删除该目标消息。如上述例子,终端根据消息撤回指令携带的消息标识message ID A,确定该目标消息,并将其从终端中删除。接收消息后,可以将消息存储于一个指定文件夹中,终端从该指定文件夹中删除待撤回的目标消息。
在步骤208中,从目标网络资源的存储路径中,删除目标网络资源。
根据上述步骤206由消息标识确定了目标网络资源的存储路径,终端从该存储路径中,删除目标网络资源。如上述例子,终端根据消息标识message ID A,确定文档resourceA的存储路径为E:\document\resourceA.doc,并从该存储路径中,删除文档resourceA。
在一种可能的实现方式中,当删除目标网络资源后,终端还可以显示删除提示信息,其中,删除提示信息用于提示已经从本地删除目标网络资源和目标消息。上述在终端将目标网络资源和目标消息删除时,通过显示的方式提示用户,避免自动删除给用户造成的困扰,提高了用户体验。
本发明实施例提供的方法,通过接收消息撤回指令,根据其携带的消息标识、以及已下载目标网络资源的存储路径与目标消息的消息标识之间的映射关系,确定待删除网络资源的存储路径,并从中删除该目标网络资源和待撤回的目标消息。如此,即使用户将目标网络资源下载至本地,终端也可以将其自动删除,避免了网络资源泄露的问题,保证了消息撤回的完整性。
下述为本发明装置实施例,可以用于执行本发明方法实施例。对于本发明装置实施例中未披露的细节,请参照本发明方法实施例。
图3是根据一示例性实施例示出的一种消息撤回装置的框图,该消息撤回装置可以通过软件、硬件或者两者的结合实现成为终端的部分或者全部。该消息撤回装置可以包括:
第一接收模块310,用于接收消息撤回指令,所述消息撤回指令至少携带待撤回的目标消息的消息标识;
确定模块320,用于根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径,所述目标网络资源为从所述第一接收模块310所接收到的消息标识所指示的目标消息中下载的网络资源;
删除模块330,用于删除所述第一接收模块310所接收到的消息标识所指示的目标消息;
所述删除模块330还用于从所述确定模块320确定的所述目标网络资源的存储路径中,删除所述目标网络资源。
本发明实施例提供的装置,通过接收消息撤回指令,根据其携带的消息标识、以及已 下载目标网络资源的存储路径与目标消息的消息标识之间的映射关系,确定待删除网络资源的存储路径,并从中删除该目标网络资源和待撤回的目标消息。如此,即使用户将目标网络资源下载至本地,终端也可以将其自动删除,避免了网络资源泄露的问题,保证了消息撤回的完整性。
基于上述提供的装置实施例,请参照图4至图8,在一种可能的实现方式中,所述装置还包括:第二接收模块340、下载模块340、建立模块360;
所述第二接收模块340,用于接收所述目标消息,所述目标消息携带所述目标网络资源;
所述下载模块350,用于根据用户的下载操作,下载所述第二接收模块接收到的目标消息所携带的目标网络资源;
所述建立模块360,用于建立所述下载模块350下载的所述目标网络资源的存储路径与所述第二接收模块340接收到的所述目标消息的消息标识之间的映射关系。
在另一种可能的实现方式中,所述装置还包括:更新模块370;
所述更新模块370,用于当检测到所述下载模块350下载的所述目标网络资源的存储路径发送变化时,在所述已下载网络资源的存储路径与消息标识之间的映射关系中,更新所述目标网络资源的存储路径。
在另一种可能的实现方式中,所述装置还包括:配置模块380;
所述配置模块380,用于当检测到对所述下载模块350下载的所述目标网络资源的任意复制粘贴操作时,将所述任意复制粘贴操作所对应的目标存储路径和所述目标网络资源的存储路径均作为所述目标消息的消息标识对应的存储路径。
在另一种可能的实现方式中,所述第一接收模块310接收的所述消息撤回指令由消息服务器在接收到消息发送方对所述目标消息的撤回请求时触发。
在另一种可能的实现方式中,所述下载模块350包括中断子模块350a:
所述中断子模块350a,用于在所述目标网络资源的下载过程中,接收到所述消息撤回指令时,中断所述下载过程。
在另一种可能的实施方式中,所述装置还包括:
显示模块390,用于显示删除提示信息,所述删除提示信息用于提示已经从本地删除所述目标网络资源和所述目标消息。
在另一种可能的实施方式中,所述删除模块330删除的所述目标网络资源为图片、视频、音频、动画或文档。
上述终端在执行删除目标网络资源操作之前,为了能够根据消息撤回指令,确定目标网络资源,终端在接收目标消息并下载其携带的目标网络资源之后,需要建立该目标消息的消息标识与目标网络资源在本地的存储路径之间的映射关系,以便终端在接收到该目标 消息的撤回指令时,根据撤回指令携带的消息标识和该映射关系,确定目标网络资源。
上述终端所接收到的消息可以是由其它任一终端发送,该消息可以只包括目标网络资源,当然,该消息也可以包括网络资源和其它内容。
上述目标网络资源也可以是指上述任一种形式资源的压缩文件。
上述终端接收到其它任一终端发送的目标消息,用户可以对该目标消息中携带的目标网络资源进行下载,当终端检测到用户对目标网络资源的下载操作时,可以将该目标网络资源下载至用户指定的存储位置中,相应地,终端可以得到目标网络资源的存储路径。当然,终端也可以将该目标网络资源下载至系统默认的存储位置中。
上述若在目标网络资源的下载过程中,接收到消息撤回指令,终端可以禁止用户对该目标消息执行任何操作,也即在当前显示的交互界面中,终端不允许用户执行任何操作,直到该目标消息被撤回,不允许执行的操作可以包括但不限于转发、收藏或复制等操作。
上述目标消息的消息标识用于唯一标识该目标消息,以使得终端可以根据消息标识,可以唯一确定该目标消息。
终端可以维护一个数据库,该数据库用于以消息标识为索引,对目标网络资源的存储路径与目标消息的消息标识之间的映射关系进行存储。基于上述映射关系,终端根据目标消息的消息标识,可以唯一确定目标网络资源的存储路径。
上述用户还可能对已下载的目标网络资源进行复制粘贴,这种情况下,复制粘贴后的目标网络资源对应着新的存储路径,为了保证对目标网络资源删除的完整性,还需要删除复制粘贴后的目标网络资源,终端不仅建立目标网络资源的存储路径与目标消息的消息标识之间的映射关系,且,还需要建立任意复制粘贴操作所对应的目标存储路径与目标消息的消息标识之间的映射关系。
上述消息撤回指令由消息服务器在接收到消息发送方对目标消息的撤回请求时触发。当消息发送者想要将发送出去的消息撤回时,可以通过客户端提供的消息撤回按键,向服务器提交目标消息撤回请求,该目标消息撤回请求可以携带该目标消息的消息标识,服务器接收目标消息撤回请求,向目标消息接收终端发送消息撤回指令,该消息撤回指令携带目标消息的消息标识,以使得目标消息接收终端对目标消息以及属于该目标消息的网络资源进行删除。
当终端接收到服务器推送的目标消息撤回指令时,获取该目标消息撤回指令携带的消息标识。
上述终端根据撤回消息指令中携带的消息标识,以及数据库中存储的已下载网络资源的存储路径与消息标识之间的映射关系,可以从数据库中确定目标网络资源的存储路径,从而找到目标网络资源。
上述接收消息后,可以将消息存储于一个指定文件夹,终端从该指定文件夹中删除待撤回的目标消息。
上述在终端将目标网络资源和目标消息删除时,通过显示的方式提示用户,避免自动删除给用户造成的困扰,提高了用户体验。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本实施例提供了一种终端,该终端可以用于执行上述各个实施例中提供的消息撤回方法。参见图9,该终端900包括:
终端900可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、WiFi(Wireless Fidelity,无线保真)模块170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。本领域技术人员可以理解,图9中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器180处理;另外,将涉及上行的数据发送给基站。通常,RF电路110包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端900的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态 存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180和输入单元130对存储器120的访问。
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。可选地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。可选地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及终端900的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图9中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。
终端900还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。可选地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在终端900移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端900还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路160、扬声器161,传声器162可提供用户与终端900之间的音频接口。音频 电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与终端900的通信。
WiFi属于短距离无线传输技术,终端900通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图9示出了WiFi模块170,但是可以理解的是,其并不属于终端900的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器180是终端900的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端900的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;可选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
终端900还包括给各个部件供电的电源190(比如电池),可选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,终端900还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端的显示单元是触摸屏显示器,终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行。所述一个或者一个以上程序包含用于执行如上述图1或图2所示实施例提供的消息撤回方法。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (17)

  1. 一种消息撤回方法,其特征在于,所述方法包括:
    接收消息撤回指令,所述消息撤回指令至少携带待撤回的目标消息的消息标识;
    根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径,所述目标网络资源为从所述目标消息中下载的网络资源;
    删除所述目标消息;
    从所述目标网络资源的存储路径中,删除所述目标网络资源。
  2. 根据权利要求1所述的方法,其特征在于,所述接收消息撤回指令之前,所述方法还包括:
    接收所述目标消息,所述目标消息携带所述目标网络资源;
    根据用户的下载操作,下载所述目标消息携带的目标网络资源;
    建立所述目标网络资源的存储路径与所述目标消息的消息标识之间的映射关系。
  3. 根据权利要求2所述的方法,其特征在于,所述建立所述目标网络资源的存储路径与所述目标消息的消息标识之间的映射关系之后,所述方法还包括:
    当检测到所述目标网络资源的存储路径发生变化时,在所述已下载网络资源的存储路径与消息标识之间的映射关系中,更新所述目标网络资源的存储路径。
  4. 根据权利要求2所述的方法,其特征在于,所述建立所述目标网络资源的存储路径与所述目标消息的消息标识之间的映射关系之后,所述方法还包括:
    当检测到对所述目标网络资源的任意复制粘贴操作时,将所述任意复制粘贴操作所对应的目标存储路径和所述目标网络资源的存储路径均作为所述目标消息的消息标识对应的存储路径。
  5. 根据权利要求1所述的方法,其特征在于,所述消息撤回指令由消息服务器在接收到消息发送方对所述目标消息的撤回请求时触发。
  6. 根据权利要求2所述的方法,其特征在于,所述根据用户的下载操作,下载所述目标消息携带的目标网络资源,包括:
    若在所述目标网络资源的下载过程中,接收到所述消息撤回指令,则中断所述下载过 程。
  7. 根据权利要求1所述的方法,其特征在于,所述从所述目标网络资源的存储路径中,删除所述目标网络资源之后,所述方法还包括:
    显示删除提示信息,所述删除提示信息用于提示已经从本地删除所述目标网络资源和所述目标消息。
  8. 根据权利要求1所述的方法,其特征在于,所述目标网络资源为图片、视频、音频、动画或文档。
  9. 一种消息撤回装置,其特征在于,所述装置包括:
    第一接收模块,用于接收消息撤回指令,所述消息撤回指令至少携带待撤回的目标消息的消息标识;
    确定模块,用于根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径,所述目标网络资源为从所述第一接收模块所接收到的消息标识所指示的目标消息中下载的网络资源;
    删除模块,用于删除所述第一接收模块所接收到的消息标识所指示的目标消息;
    所述删除模块还用于从所述确定模块确定的所述目标网络资源的存储路径中,删除所述目标网络资源。
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:第二接收模块、下载模块、建立模块;
    所述第二接收模块,用于接收所述目标消息,所述目标消息携带所述目标网络资源;
    所述下载模块,用于根据用户的下载操作,下载所述第二接收模块接收到的目标消息所携带的目标网络资源;
    所述建立模块,用于建立所述下载模块下载的所述目标网络资源的存储路径与所述第二接收模块接收到的所述目标消息的消息标识之间的映射关系。
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:更新模块;
    所述更新模块,用于当检测到所述下载模块下载的所述目标网络资源的存储路径发生变化时,在所述已下载网络资源的存储路径与消息标识之间的映射关系中,更新所述目标网络资源的存储路径。
  12. 根据权利要求10所述的装置,其特征在于,所述装置还包括:配置模块;
    所述配置模块,用于当检测到对所述下载模块下载的所述目标网络资源的任意复制粘贴操作时,将所述任意复制粘贴操作所对应的目标存储路径和所述目标网络资源的存储路径均作为所述目标消息的消息标识对应的存储路径。
  13. 根据权利要求9所述的装置,其特征在于,所述第一接收模块接收的所述消息撤回指令由消息服务器在接收到消息发送方对所述目标消息的撤回请求时触发。
  14. 根据权利要求10所述的装置,其特征在于,所述下载模块包括中断子模块:
    所述中断子模块,用于在所述目标网络资源的下载过程中,接收到所述消息撤回指令时,中断所述下载过程。
  15. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    显示模块,用于显示删除提示信息,所述删除提示信息用于提示已经从本地删除所述目标网络资源和所述目标消息。
  16. 根据权利要求9所述的装置,其特征在于,所述删除模块删除的所述目标网络资源为图片、视频、音频、动画或文档。
  17. 一种消息撤回装置,其特征在于,包括:
    处理器;
    用于存储所述处理器的可执行指令的存储器;
    其中,所述处理器用于:
    接收消息撤回指令,所述消息撤回指令至少携带待撤回的目标消息的消息标识;
    根据已下载网络资源的存储路径与消息标识之间的映射关系,确定目标网络资源的存储路径,所述目标网络资源为从所述目标消息中下载的网络资源;
    删除所述目标消息;
    从所述目标网络资源的存储路径中,删除所述目标网络资源。
PCT/CN2016/082690 2015-11-24 2016-05-19 消息撤回方法和装置 WO2017088377A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2016549452A JP6461173B2 (ja) 2015-11-24 2016-05-19 メッセージ撤回方法および装置
KR1020167021378A KR102531466B1 (ko) 2015-11-24 2016-05-19 메시지 철회 방법과 장치
RU2016134410A RU2660948C2 (ru) 2015-11-24 2016-05-19 Способ и устройство для отзыва сообщения

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510822615.7A CN105490919B (zh) 2015-11-24 2015-11-24 消息撤回方法和装置
CN201510822615.7 2015-11-24

Publications (1)

Publication Number Publication Date
WO2017088377A1 true WO2017088377A1 (zh) 2017-06-01

Family

ID=55677651

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/082690 WO2017088377A1 (zh) 2015-11-24 2016-05-19 消息撤回方法和装置

Country Status (7)

Country Link
US (1) US10320719B2 (zh)
EP (1) EP3174253B1 (zh)
JP (1) JP6461173B2 (zh)
KR (1) KR102531466B1 (zh)
CN (1) CN105490919B (zh)
RU (1) RU2660948C2 (zh)
WO (1) WO2017088377A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003780A (zh) * 2020-08-06 2020-11-27 武汉华中时讯科技有限责任公司 一种在即时通信的聊天场景中撤回消息的方法

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105490919B (zh) 2015-11-24 2019-11-08 小米科技有限责任公司 消息撤回方法和装置
US20180018707A1 (en) * 2016-07-14 2018-01-18 Facebook, Inc. Creating customized audiences based on messaging signals
CN107277181A (zh) * 2017-08-14 2017-10-20 深圳市金立通信设备有限公司 一种消息推送方法、服务器及消息推送系统
CN109688042B (zh) * 2017-10-18 2021-12-31 阿里巴巴集团控股有限公司 一种消息处理方法及装置
CN109698784A (zh) * 2017-10-20 2019-04-30 阿里巴巴集团控股有限公司 一种消息撤回方法及装置
US10671495B2 (en) * 2018-01-29 2020-06-02 Hewlett Packard Enterprise Development Lp Disaster recovery rehearsal of a workload
CN108600086B (zh) * 2018-04-08 2021-02-23 Oppo广东移动通信有限公司 信息处理方法、电子装置及计算机可读存储介质
CN108737246B (zh) * 2018-05-07 2021-02-02 北京达佳互联信息技术有限公司 消息下发方法、装置、存储介质和服务器
CN109086116B (zh) * 2018-08-20 2021-07-30 杭州安恒信息技术股份有限公司 基于辅助功能服务的通讯工具言论实时监测方法及装置
CN108989191B (zh) 2018-08-20 2020-09-25 北京达佳互联信息技术有限公司 撤回图片文件的方法及其控制方法、装置及移动终端
CN111641554B (zh) * 2020-06-02 2022-03-04 Oppo广东移动通信有限公司 一种消息处理方法、装置及计算机可读存储介质
CN112035206B (zh) * 2020-09-01 2021-08-24 腾讯科技(深圳)有限公司 一种消息处理方法及设备
CN111930712B (zh) * 2020-09-10 2021-02-09 北京联想协同科技有限公司 一种文件控制方法、装置及存储介质
CN112565063B (zh) * 2020-12-11 2023-04-07 维沃移动通信有限公司 消息处理方法、装置和电子设备
CN113489638B (zh) * 2021-07-08 2022-09-02 北卡科技有限公司 一种即时通信系统的消息安全删除方法
CN113992615B (zh) * 2021-10-26 2023-05-26 维沃移动通信有限公司 撤回消息的显示方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988511A (zh) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 一种撤回即时通信消息的方法及即时通信系统
CN103617519A (zh) * 2013-11-01 2014-03-05 优视科技有限公司 通信信息处理方法、装置及系统
US20150312197A1 (en) * 2014-04-25 2015-10-29 International Business Machines Corporation Prevention of sending messages by mistake
CN105490919A (zh) * 2015-11-24 2016-04-13 小米科技有限责任公司 消息撤回方法和装置
CN105634920A (zh) * 2015-12-22 2016-06-01 小米科技有限责任公司 消息撤回方法及装置

Family Cites Families (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140008210A1 (en) * 2012-07-06 2014-01-09 Aviva Biosciences Corporation Methods and compositions for separating or enriching cells
JP2004318686A (ja) * 2003-04-18 2004-11-11 Canon Inc 送信済みメールの消去可能な電子メールシステム
RU2373653C2 (ru) * 2003-09-12 2009-11-20 Сикьюред Имэйл Гетеборг Аб Безопасность сообщений
US7752271B2 (en) * 2004-06-01 2010-07-06 International Business Machines Corporation Method of retracting an instant message
US20060020670A1 (en) * 2004-07-26 2006-01-26 Nathan Anderson Computer system that facilitates addition of webpages to website
JP2006163882A (ja) * 2004-12-08 2006-06-22 Fuji Xerox Co Ltd ドキュメント属性管理装置、ドキュメント属性管理方法およびドキュメント属性管理プログラム
MX2008012811A (es) * 2006-04-03 2008-10-15 Nokia Corp Mecanismo de supresion en servicios multimedia sip.
US8515027B2 (en) * 2006-06-07 2013-08-20 Cisco Technology, Inc. Method and system for recalling voicemail messages
CN101193334A (zh) * 2006-11-22 2008-06-04 北京三星通信技术研究有限公司 取消已发彩信的方法
CN101237463A (zh) * 2007-01-29 2008-08-06 北京三星通信技术研究有限公司 基于ota技术的移动终端的多媒体信息接收方法
US20090049134A1 (en) * 2007-08-16 2009-02-19 David Bruce Kumhyr Method for delaying delivery of e-mail content
US9438549B2 (en) * 2007-09-27 2016-09-06 International Business Machines Corporation Controlling expiration of electronic mail single store attachments
JP5222585B2 (ja) * 2008-02-28 2013-06-26 株式会社日立製作所 コンテンツ配信システム、配信サーバおよびコンテンツ配信方法
US20100057869A1 (en) * 2008-08-27 2010-03-04 Angelos Stavrou Event Driven Email Revocation
US8682988B2 (en) * 2010-02-03 2014-03-25 Qiang Du Enhanced e-mail and messaging system with visual profile and selective update
JP5126268B2 (ja) * 2010-03-26 2013-01-23 ブラザー工業株式会社 現像カートリッジ
WO2011136554A2 (ko) * 2010-04-27 2011-11-03 엘지전자 주식회사 상향링크 mimo(multiple input multiple output) 전송 방법 및 장치
JP2011258035A (ja) * 2010-06-10 2011-12-22 Hitachi Ltd 誤送信電子メールの削除方法
CN102651717A (zh) * 2011-02-25 2012-08-29 中兴通讯股份有限公司 一种实现媒体消息追回的方法和系统
US9299065B2 (en) * 2012-02-17 2016-03-29 Blackberry Limited Intelligent downloading of message attachments to mobile devices
CN103368818B (zh) * 2012-03-31 2016-04-13 欢聚时代科技(北京)有限公司 一种即时消息发送的方法
CN102999606B (zh) * 2012-11-21 2015-12-23 东莞宇龙通信科技有限公司 软件删除方法及装置
CN104518953B (zh) * 2013-09-30 2019-12-24 腾讯科技(深圳)有限公司 删除消息的方法、即时通信终端及系统
US20160065571A1 (en) * 2014-08-26 2016-03-03 Hoyos Labs Corp. System and methods for secure file sharing and access management
WO2015143682A1 (zh) * 2014-03-27 2015-10-01 宇龙计算机通信科技(深圳)有限公司 信息发送方法及装置和信息接收方法及装置
CN103916310A (zh) * 2014-03-28 2014-07-09 北京奇虎科技有限公司 发送即时通信消息的方法、即时通信客户端和服务器
US20160156782A1 (en) * 2014-12-02 2016-06-02 Kirusa, Inc. Outgoing Media Message Management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988511A (zh) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 一种撤回即时通信消息的方法及即时通信系统
CN103617519A (zh) * 2013-11-01 2014-03-05 优视科技有限公司 通信信息处理方法、装置及系统
US20150312197A1 (en) * 2014-04-25 2015-10-29 International Business Machines Corporation Prevention of sending messages by mistake
CN105490919A (zh) * 2015-11-24 2016-04-13 小米科技有限责任公司 消息撤回方法和装置
CN105634920A (zh) * 2015-12-22 2016-06-01 小米科技有限责任公司 消息撤回方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003780A (zh) * 2020-08-06 2020-11-27 武汉华中时讯科技有限责任公司 一种在即时通信的聊天场景中撤回消息的方法

Also Published As

Publication number Publication date
EP3174253A1 (en) 2017-05-31
JP2018506753A (ja) 2018-03-08
US10320719B2 (en) 2019-06-11
EP3174253B1 (en) 2018-10-17
RU2016134410A3 (zh) 2018-05-04
RU2016134410A (ru) 2018-04-10
JP6461173B2 (ja) 2019-01-30
KR20180086537A (ko) 2018-08-01
CN105490919B (zh) 2019-11-08
KR102531466B1 (ko) 2023-05-11
US20170149700A1 (en) 2017-05-25
RU2660948C2 (ru) 2018-07-11
CN105490919A (zh) 2016-04-13

Similar Documents

Publication Publication Date Title
WO2017088377A1 (zh) 消息撤回方法和装置
US10635449B2 (en) Method and apparatus for running game client
CN104518953B (zh) 删除消息的方法、即时通信终端及系统
US10055220B2 (en) Method, apparatus, and system for processing desktop data of mobile terminal
WO2016150270A1 (zh) 群组会话消息处理方法和装置
WO2015035796A1 (zh) 桌面显示方法、装置及终端
WO2018120905A1 (zh) 终端中消息提示的方法和终端
WO2015014144A1 (zh) 一种安装应用的方法、装置和终端设备
WO2017129053A1 (zh) 数据传输方法及装置
WO2018040813A1 (zh) 音视频通信方法、终端、服务器及存储介质
US10463965B2 (en) Control method of scene sound effect and related products
EP3429176B1 (en) Scenario-based sound effect control method and electronic device
BR112016018783B1 (pt) Método, aparelho, dispositivo e sistema de intercomunicação
WO2015081905A1 (zh) 数据更新的方法、用户端及数据更新系统
WO2014206138A1 (zh) 一种更新网页数据的方法、装置和终端设备
WO2018049894A1 (zh) 数据传输方法及设备
WO2017096909A1 (zh) 建立数据连接的方法及装置
WO2015024372A1 (zh) 发起通信的方法、装置及移动终端
TW201502986A (zh) 使用於瀏覽器網頁的應用程式訊息通知顯示方法、相關設備與系統
CN104660769B (zh) 一种添加联系人信息的方法、装置和系统
WO2015035794A1 (zh) 一种消息展示的方法、装置及终端设备
TW201541337A (zh) 移動終端中訊息的顯示方法、裝置和系統
WO2015062234A1 (zh) 移动终端资源处理方法、装置和设备
CN110196662B (zh) 一种展示同步状态的方法、装置、终端及存储介质
WO2015024393A1 (zh) 发送短信的方法、装置及终端

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2016549452

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20167021378

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2016134410

Country of ref document: RU

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16867606

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16867606

Country of ref document: EP

Kind code of ref document: A1