CN105634920B - Message cancelling method and device - Google Patents

Message cancelling method and device Download PDF

Info

Publication number
CN105634920B
CN105634920B CN201510971666.6A CN201510971666A CN105634920B CN 105634920 B CN105634920 B CN 105634920B CN 201510971666 A CN201510971666 A CN 201510971666A CN 105634920 B CN105634920 B CN 105634920B
Authority
CN
China
Prior art keywords
message
screenshot
store path
file
function
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201510971666.6A
Other languages
Chinese (zh)
Other versions
CN105634920A (en
Inventor
刘铁俊
张鹏飞
林形省
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510971666.6A priority Critical patent/CN105634920B/en
Publication of CN105634920A publication Critical patent/CN105634920A/en
Application granted granted Critical
Publication of CN105634920B publication Critical patent/CN105634920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure discloses a kind of message cancelling method and device, belongs to the communications field.The described method includes: receiving message revocation request, message revocation request includes at least the message identifier of target message, screenshot store path corresponding with the message identifier of target message is inquired in the corresponding relationship prestored, corresponding relationship is the corresponding relationship stored when screenshot event occurs to message, screenshot store path be include target message screenshot file store path, the corresponding screenshot file of screenshot store path is deleted;It solves in the related technology in revocation messages, only the revocation messages in message application, and the problem of the screenshot file including the message still has;Reach when being recalled to message, not only recalled the message in other side's message application, will also include that the screenshot file of the message is also deleted in distant terminal, message is made to recall more thorough effect.

Description

Message cancelling method and device
Technical field
This disclosure relates to the communications field, in particular to a kind of message cancelling method and device.
Background technique
With the development of internet communication, the APP with image-text message transmitting capacity can be used between user (Application, application program) is communicated.
In some scenes, such as when the user A message that will be sent to user B accidentally issues user C, user A can be with Recall this message by sending revocation request, if but user C before user's A revocation messages to this message into Row screenshot simultaneously saves, although the message that then user A request is recalled is recalled from the APP of user's C terminal, the screenshot of this message File still can be stored in the terminal of user C.
Summary of the invention
In order to solve the problem of that the screenshot file of the message after message is recalled can still save, the disclosure provides a kind of message Cancelling method.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of message cancelling method is provided, this method comprises:
Message revocation request is received, message revocation request is for recalling target message, and message revocation request is at least Message identifier including target message;
Screenshot store path corresponding with the message identifier of target message, corresponding relationship are inquired in the corresponding relationship prestored It is the corresponding relationship stored when screenshot event occurs to message, screenshot store path is the screenshot file for including target message Store path;
The corresponding screenshot file of screenshot store path is deleted.
Optionally, this method further include:
When detecting screenshot event, the screenshot store path of screenshot file is obtained, screenshot file is to current display circle The file that face is intercepted includes at least one message in current display interface;
Obtain the message identifier of at least one message in institute's current display interface;
Store the corresponding relationship between message identifier and screenshot store path.
Optionally, when detecting screenshot event, the screenshot store path of screenshot file is obtained, comprising:
When screenshot event occurs for operating system, deposited by the screenshot that the hook function in operating system obtains screenshot file Path is stored up, hook function is in operating system for calling the first function in message application under the triggering of screenshot event Function;
Using screenshot store path as call parameters, first function is called;
The screenshot store path of screenshot file is obtained from call parameters by the first function in message application.
Optionally, this method further include:
Register hook function in an operating system by message application, registration is occurring to cut for defining hook function First function is called when figure event.
Optionally, the corresponding screenshot file of screenshot store path is deleted, comprising:
Screenshot file is deleted by the second function in message application.
According to the second aspect of an embodiment of the present disclosure, a kind of message is provided and recalls device, which includes:
Receiving module is configured as receiving message revocation request, and message revocation request is used to recall target message, Message revocation request includes at least the message identifier of target message;
Enquiry module is configured as inquiring screenshot corresponding with the message identifier of target message in the corresponding relationship prestored Store path, corresponding relationship are the corresponding relationships stored when screenshot event occurs to message, and screenshot store path is to include The store path of the screenshot file of target message;
Removing module is configured as deleting the corresponding screenshot file of screenshot store path.
Optionally, the device further include:
First obtains module, is configured as when detecting screenshot event, obtains the screenshot store path of screenshot file, cuts Map file is the file intercepted to current display interface, includes at least one message in current display interface;
Second obtains module, is configured as obtaining the message identifier of at least one message in current display interface;
Memory module, the corresponding relationship being configured as between storage message identifier and screenshot store path.
Optionally, the first acquisition module includes:
First acquisition submodule is configured as passing through the hook in operating system when screenshot event occurs for operating system Function obtains the screenshot store path of screenshot file, and hook function is in operating system for calling under the triggering of screenshot event The function of first function in message application;
Submodule is called, is configured as calling first function using screenshot store path as call parameters;
Second acquisition submodule is configured as obtaining from call parameters by the first function in message application and cut The screenshot store path of map file.
Optionally, the device further include:
Registration module is configured as registering hook function in an operating system by message application, and registration is for fixed Adopted hook function calls first function when screenshot event occurs.
Optionally, removing module is configured as:
Screenshot file is deleted by the second function in message application.
According to the third aspect of an embodiment of the present disclosure, a kind of message is provided and recalls device, which includes:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Message revocation request is received, message revocation request is for recalling target message, and message revocation request is at least Message identifier including target message;
Screenshot store path corresponding with the message identifier of target message, corresponding relationship are inquired in the corresponding relationship prestored It is the corresponding relationship stored when screenshot event occurs to message, screenshot store path is the screenshot file for including target message Store path;
The corresponding screenshot file of screenshot store path is deleted.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By receiving message revocation request, message revocation request includes at least the message identifier of target message, what is prestored Screenshot store path corresponding with the message identifier of target message is inquired in corresponding relationship, corresponding relationship is to occur to cut to message The corresponding relationship stored when figure event, screenshot store path be include target message screenshot file store path, will cut The corresponding screenshot file of figure store path is deleted;It solves in the related technology in revocation messages, only in messages application journey Revocation messages in sequence, and the screenshot file including the message still has problem;Reach when being recalled to message, not only will The message in other side's message application is recalled, and is still deleted the screenshot file in distant terminal including the message, is made to disappear Breath recalls more thorough effect.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and consistent with the instructions for explaining the principles of this disclosure.
Fig. 1 be according to exemplary partial implement a kind of message cancelling method for exemplifying involved in implementation environment signal Figure;
Fig. 2 is a kind of flow chart of message cancelling method shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of the message cancelling method shown according to another exemplary embodiment;
Fig. 4 is a kind of interface schematic diagram shown according to another exemplary embodiment;
Fig. 5 is a kind of flow chart of the message cancelling method shown according to another exemplary embodiment;
Fig. 6 is a kind of interface schematic diagram shown according to another exemplary embodiment;
Fig. 7 is the block diagram that a kind of message shown according to an exemplary embodiment recalls device;
Fig. 8 is that a kind of message shown according to another exemplary embodiment recalls the block diagram of device;
Fig. 9 is that a kind of message shown according to another exemplary embodiment recalls the block diagram of device;
Figure 10 is that a kind of message shown according to another exemplary embodiment recalls the block diagram of device.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 be according to exemplary partial implement a kind of message cancelling method for exemplifying involved in implementation environment signal Figure, as shown in Figure 1, the implementation environment may include: first terminal 120, server 140 and second terminal 160.
First terminal 120 and second terminal 160 can be such as mobile phone, tablet computer, portable computer and desk-top meter The terminal device of calculation machine etc.
At least one disappearing with image-text message transmitting capacity is fitted in first terminal 120 and second terminal 160 Application program is ceased, at least there is an identical message application 180 in first terminal 120 and second terminal 160.
First terminal 120 and second terminal 160 are communicated by message application 180.
Server 140 can be a server, be also possible to the server cluster consisted of several servers, or It is a cloud computing service center.
Wi-Fi (Wireless- can be passed through between first terminal 120 and second terminal 160 and server 140 Fidelity, Wireless Fidelity), the wireless networks mode such as bluetooth or cable network mode be connected.
It should be noted that the message cancelling method that the embodiment of the present disclosure provides, removes first terminal 120 and second terminal It can also include other multiple terminals, being equipped between the terminal of identical message application can communicate outside 140.
Fig. 2 is a kind of flow chart of message cancelling method shown according to an exemplary embodiment.The present embodiment is disappeared with this Breath cancelling method is applied to illustrate in second terminal 160 shown in FIG. 1.This method may include following steps:
In step 201, message revocation request is received, message revocation request is for recalling target message, message Revocation request includes at least the message identifier of target message.
In step 202, screenshot storage corresponding with the message identifier of target message is inquired in the corresponding relationship prestored Path, corresponding relationship are the corresponding relationships that are stored when screenshot event occurs to message, screenshot store path be include target The store path of the screenshot file of message.
In step 203, the corresponding screenshot file of screenshot store path is deleted.
In conclusion message cancelling method provided in this embodiment, by receiving message revocation request, message revocation request Including at least the message identifier of target message, corresponding with the message identifier of target message section is inquired in the corresponding relationship prestored Figure store path, corresponding relationship are the corresponding relationships stored when screenshot event occurs to message, and screenshot store path is packet The store path for including the screenshot file of target message deletes the corresponding screenshot file of screenshot store path;Solves phase In the technology of pass in revocation messages, only revocation messages in message application, and the screenshot file including the message is still deposited In problem;Reach when being recalled to message, not only recalled the message in other side's message application, also by other side's end Screenshot file in end including the message is also deleted, and message is made to recall more thorough effect.
Fig. 3 is a kind of flow chart of the message cancelling method shown according to another exemplary embodiment.The present embodiment is with this Message cancelling method is applied to illustrate in implementation environment shown in FIG. 1.This method may include following steps:
In step 301, the message that server receives that first terminal is sent to second terminal sends request.
Optionally, message sends the mark that request includes: the message of request transmission, second terminal mark and message application Know.
Wherein, requesting the message sent is text message, image information, web page interlinkage, speech message or video information It is at least one;Second terminal mark is (Internet Protocol, the network protocol) address IP or the MAC Address of second terminal (Media Access Control, hardware address);Message application is that first terminal sends use when message sends request Application program, the mark of message application is used for one communication APP of unique identification, and the present embodiment is not construed as limiting this.
Optionally, message sends request further include: requests the corresponding message identifier of message sent, message identifier is word At least one of female, number, symbol, message identifier can uniquely identify a piece of news.
Optionally, message sends request further include: first terminal mark, first terminal mark are the IP of first terminal (Internet Protocol, network protocol) address or MAC Address (Media Access Control, hardware address), this reality It applies example and this is not construed as limiting.
Optionally, first terminal will request the message sent, the corresponding message identifier of message, first terminal mark, second The corresponding relationship of the mark of terminal iidentification and message application is stored.
In step 302, server forwards the message to send request to second terminal.
Optionally, the message that server receives that first terminal is sent sends request, and the first receiving time and message are sent out The corresponding relationship of request is sent to be stored, wherein the first receiving time is the message hair that server receives first terminal transmission The time of request is sent, the present embodiment is not construed as limiting this.
Server sends the second terminal in request according to message and identifies, and message is sent request and is forwarded to second terminal.
In step 303, second terminal receives message and sends request.
Optionally, second terminal receive message send request, according to message send request in request send message and Whether the mark of message application, detection message application are currently running, when message application is currently running, will ask The message of transmission is asked to show in corresponding message application;When message application is not in operating status, to the first end End returns to failure response, and the present embodiment is not construed as limiting this.
Optionally, second terminal by message, the corresponding message identifier of message, first terminal mark, second terminal mark and The corresponding relationship of the mark of message application is stored.
Optionally, the method and the method phase shown in above-mentioned steps 301-303 that second terminal sends message to first terminal Together, the present embodiment repeats no more this.
Display interface when being communicated with first terminal and second terminal using message application is to be illustrated in figure 4 Example, in first terminal in the display interface 401 of message application and second terminal in the display interface 402 of message application Multiple messages are respectively included, are the message sent on the right side of display interface, are received message on the left of display interface, i.e., Message 1, message 2 and message 5 are sent to second terminal by first terminal, and message 3, message 4 and message 6 are sent to by second terminal First terminal.
In step 304, processor registers hook function by message application in an operating system, and registration is for fixed Adopted hook function calls the first function in message application when screenshot event occurs.
Hook function is in operating system for calling the first letter in message application under the triggering of screenshot event Several functions.
It should be noted that step 304 and step 303 are without specific precedence relationship.
In step 305, when second terminal detects screenshot event, the screenshot store path of screenshot file is obtained, is cut Map file is the file intercepted to current display interface, includes at least one message in current display interface.
Optionally, screenshot event by second terminal operating system call screenshot function realize, the present embodiment to this no longer It repeats.
Optionally, the operation for obtaining the screenshot store path of screenshot file calls letter by the message application of second terminal Number realizes that then the step includes following steps, as shown in Figure 5:
In step 305a, when screenshot event occurs for operating system, processor passes through the hook function in operating system Obtain the screenshot store path of screenshot file.
When operating system receives shot operation, screenshot function is called to intercept current display interface, and will interception File be stored in second terminal as screenshot file, complete screenshot event.
When screenshot event occurs for operating system, the hook function in operating system gets screenshot file in second terminal In screenshot store path.
In step 305b, hook function calls the in message application using screenshot store path as call parameters One function.
In step 305c, processor obtains screenshot text by the first function in message application from call parameters The screenshot store path of part.
Within step 306, second terminal obtains the message identifier of at least one message in current display interface.
Optionally, the first function in the message application of second terminal obtains at least one in current display interface The message identifier of message, including the message having been received and the message sent.
In step 307, the corresponding relationship between second terminal storage message identifier and screenshot store path.
First function in the message application of second terminal is by the screenshot store path got and message mark The corresponding relationship of knowledge is stored.
Optionally, a screenshot store path corresponds to multiple message identifiers, and a message identifier corresponds to multiple screenshots and deposits Store up path.
By taking the current display interface 402 of the message application of the second terminal in such as Fig. 4 as an example, in current display interface Including 6 message, when first function gets the screenshot store path of screenshot file from call parameters, current display is obtained The message identifier of 6 message in interface, and the message identifier of this 6 message is corresponding with the screenshot store path of screenshot file Relationship is stored.
In step 308, server receives the message revocation request that first terminal is sent to second terminal.
Optionally, message revocation request is for recalling target message, and message revocation request includes at least: target disappears The message identifier of breath, target message are the message that first terminal has been sent.
Optionally, server sends the message transmission that inquiry in request includes the message identifier in stored message and asks It asks, and gets the corresponding second terminal mark of the message identifier and message application mark;Alternatively, what first terminal was sent It include: second terminal mark and message application mark in message revocation request, the present embodiment is not construed as limiting this.
In a step 309, server forwards message revocation request to second terminal.
Optionally, server obtains the message identifier in the second receiving time and message revocation request, the second receiving time It is the time for the message revocation request that server receives first terminal transmission;Server stored message send request with In the corresponding relationship of first receiving time, inquiry includes that the message of the message identifier sends corresponding first receiving time of request.
Optionally, server detects the first receiving time and whether the time difference of the second receiving time is no more than predetermined threshold Value is abandoned forwarding message revocation request to second terminal, and return to failure response to first terminal if being more than predetermined threshold; If the time difference is no more than predetermined threshold, is identified according to second terminal to second terminal and forward message revocation request.Wherein, make a reservation for Threshold value is that preset value or user's self-defining value, the present embodiment are not construed as limiting this.
In the step 310, second terminal receives message revocation request.
Optionally, second terminal receives message revocation request by the function in message application, and the present embodiment is to this It repeats no more.
In step 311, second terminal is inquired corresponding with the message identifier of target message in the corresponding relationship prestored Screenshot store path, corresponding relationship are the corresponding relationships stored when screenshot event occurs to message, and screenshot store path is The store path of screenshot file including target message.
Optionally, second terminal is corresponding with the message identifier of target message by the functional query in message application Screenshot store path.
In step 312, second terminal deletes screenshot file by the second function in message application.
Optionally, the message identifier of target message corresponds to multiple screenshot store paths, then second terminal passes through the second letter The screenshot file that number is deleted also includes multiple.
Optionally, message application has the permission for deleting screenshot file.
In step 313, second terminal passes through message application delete target message.
Optionally, second terminal is carried out the target message in message application by the function in message application It deletes, and shows and recalled mark, prompt ownership goal message to be withdrawn, the present embodiment is not construed as limiting this.
It should be noted that step 313 and step 311 are without specific precedence relationship.
It should be noted that the function of message application used in step 310-313 is different function.
In a step 314, second terminal returns to success response to first terminal by server.
In step 315, server receives the success response that second terminal is returned to first terminal, and turns to first terminal Send out success response.
In step 315, first terminal receives success response, and passes through message application delete target message.
Optionally, first terminal is carried out the target message in message application by the function in message application It deletes, and shows and recalled mark, prompt ownership goal message to be withdrawn, the present embodiment is not construed as limiting this.
Optionally, first terminal deletes target message after receiving success response, alternatively, first terminal disappears in transmission After ceasing revocation request, target message is deleted by the predetermined time, the predetermined time is customized by systemic presupposition or user, this implementation Example is not construed as limiting this.
Optionally, when first terminal detects screenshot event, screenshot store path and message identifier to screenshot file The method that corresponding relationship is stored is identical as above-mentioned steps 304-306, and the present embodiment repeats no more this.
Optionally, first terminal is only by pair of the message identifier of the message received and the screenshot store path of screenshot file It should be related to and be stored, alternatively, first terminal cutting the message identifier of message all in current display interface and screenshot file The corresponding relationship of figure store path is stored, and first terminal sets this by the first function of message application, The present embodiment is not construed as limiting this.
Optionally, first terminal is after sending message revocation request, by message application by cutting in first terminal The method that map file is deleted is identical as above-mentioned steps 310-312, and the present embodiment repeats no more this.
If first terminal is only by the message identifier of the message received pass corresponding with the screenshot store path of screenshot file System is stored, then first terminal after recalling target message, do not delete by the screenshot file in first terminal including target message; If first terminal by the message identifier of message all in current display interface it is corresponding with the screenshot store path of screenshot file close System is stored, then first terminal after recalling target message, also delete by the screenshot file in first terminal including target message.
Optionally, multiple terminals are identical as the method shown in above-mentioned steps simultaneously when being communicated, the present embodiment to this not It repeats again.
In an illustrative example, the message that first terminal has been sent to second terminal is as shown in figure 4, second terminal Screenshot is carried out to current display interface 402, the screenshot store path of the screenshot file is path 1, the messages application of second terminal The message identifier that the first function of program obtains the message 1- message 6 in current display interface is respectively to identify 1- mark 6, and build Day-mark knows the corresponding relationship of 1- mark 6 with path 1.Second terminal receives the message for the request revocation messages 4 that first terminal is sent Revocation request, the corresponding message identifier of query messages 4, i.e. 4 corresponding screenshot store paths of mark are path 1, and path 1 is right The screenshot file answered is deleted.Meanwhile first terminal and second terminal all pass through message application and delete message 4, such as It shown in Fig. 6, is shown in first terminal and has recalled mark 601, shown in second terminal and recalled mark 602, wherein user A is the corresponding user of first terminal.
In conclusion message cancelling method provided in this embodiment, by receiving message revocation request, message revocation request Including at least the message identifier of target message, corresponding with the message identifier of target message section is inquired in the corresponding relationship prestored Figure store path, corresponding relationship are the corresponding relationships stored when screenshot event occurs to message, and screenshot store path is packet The store path for including the screenshot file of target message deletes the corresponding screenshot file of screenshot store path;Solves phase In the technology of pass in revocation messages, only revocation messages in message application, and the screenshot file including the message is still deposited In problem;Reach when being recalled to message, not only recalled the message in other side's message application, also by other side's end Screenshot file in end including the message is also deleted, and message is made to recall more thorough effect.
Fig. 7 is the block diagram that a kind of message shown according to an exemplary embodiment recalls device, the apparatus may include with Under several modules:
Receiving module 710 is configured as receiving message revocation request, and message revocation request is for removing target message It returns, message revocation request includes at least the message identifier of target message;
Enquiry module 720 is configured as inquiring in the corresponding relationship prestored corresponding with the message identifier of target message Screenshot store path, corresponding relationship are the corresponding relationships stored when screenshot event occurs to message, and screenshot store path is The store path of screenshot file including target message;
Removing module 730 is configured as deleting the corresponding screenshot file of screenshot store path.
In conclusion message provided in this embodiment recalls device, by receiving message revocation request, message revocation request Including at least the message identifier of target message, corresponding with the message identifier of target message section is inquired in the corresponding relationship prestored Figure store path, corresponding relationship are the corresponding relationships stored when screenshot event occurs to message, and screenshot store path is packet The store path for including the screenshot file of target message deletes the corresponding screenshot file of screenshot store path;Solves phase In the technology of pass in revocation messages, only revocation messages in message application, and the screenshot file including the message is still deposited In problem;Reach when being recalled to message, not only recalled the message in other side's message application, also by other side's end Screenshot file in end including the message is also deleted, and message is made to recall more thorough effect.
Fig. 8 is that a kind of message shown according to another exemplary embodiment recalls the block diagram of device, the apparatus may include Following module:
Receiving module 810 is configured as receiving message revocation request, and message revocation request is for removing target message It returns, message revocation request includes at least the message identifier of target message;
Registration module 820 is configured as registering hook function in an operating system by message application, and registration is used for Define the first function that hook function calls message application when screenshot event occurs.
First obtains module 830, is configured as when detecting screenshot event, and the screenshot for obtaining screenshot file stores road Diameter, screenshot file are the files intercepted to current display interface, include at least one message in current display interface;
First, which obtains module 830, includes:
First acquisition submodule 831 is configured as when screenshot event occurs for operating system, by operating system Hook function obtains the screenshot store path of screenshot file, and hook function is in operating system under the triggering of screenshot event Call the function of the first function in message application;
Submodule 832 is called, is configured as calling first function using screenshot store path as call parameters;
Second acquisition submodule 833 is configured as obtaining from call parameters by the first function in message application Take the screenshot store path of screenshot file.
Second obtains module 840, is configured as obtaining the message identifier of at least one message in current display interface;
Memory module 850, the corresponding relationship being configured as between storage message identifier and screenshot store path.
Enquiry module 860 is configured as inquiring in the corresponding relationship prestored corresponding with the message identifier of target message Screenshot store path, corresponding relationship are the corresponding relationships stored when screenshot event occurs to message, and screenshot store path is The store path of screenshot file including target message;
Removing module 870 is configured as deleting the corresponding screenshot file of screenshot store path.
Removing module 870 is configured as deleting screenshot file by the second function in message application.
In conclusion message provided in this embodiment recalls device, by receiving message revocation request, message revocation request Including at least the message identifier of target message, corresponding with the message identifier of target message section is inquired in the corresponding relationship prestored Figure store path, corresponding relationship are the corresponding relationships stored when screenshot event occurs to message, and screenshot store path is packet The store path for including the screenshot file of target message deletes the corresponding screenshot file of screenshot store path;Solves phase In the technology of pass in revocation messages, only revocation messages in message application, and the screenshot file including the message is still deposited In problem;Reach when being recalled to message, not only recalled the message in other side's message application, also by other side's end Screenshot file in end including the message is also deleted, and message is made to recall more thorough effect.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
An exemplary embodiment of the present disclosure provides a kind of message to recall device, and the message that can be realized disclosure offer is removed Back method, the device include: processor, for the memory of storage processor executable instruction;
Wherein, processor is configured as:
Message revocation request is received, message revocation request is for recalling target message, and message revocation request is at least Message identifier including target message;
Screenshot store path corresponding with the message identifier of target message, corresponding relationship are inquired in the corresponding relationship prestored It is the corresponding relationship stored when screenshot event occurs to message, screenshot store path is the screenshot file for including target message Store path;
The corresponding screenshot file of screenshot store path is deleted.
Fig. 9 is a kind of block diagram recalled with message shown according to an exemplary embodiment.For example, device 900 can be Mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building are set It is standby, personal digital assistant etc..
Referring to Fig. 9, device 900 may include following one or more components: processing component 902, memory 904, power supply Component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor module 914, Yi Jitong Believe component 916.
The integrated operation of the usual control device 900 of processing component 902, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 902 may include that one or more processors 918 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in device 900.These data are shown Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 906 provides electric power for the various assemblies of device 900.Power supply module 906 may include power management system System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 908 includes the screen of one output interface of offer between device 900 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 908 includes One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when device 900 is in operation mode It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.
I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor module 914 can detecte the state that opens/closes of device 900, the relative positioning of component, such as component For the display and keypad of device 900, sensor module 914 can be with the position of 900 1 components of detection device 900 or device Set change, the existence or non-existence that user contacts with device 900, the temperature in 900 orientation of device or acceleration/deceleration and device 900 Variation.Sensor module 914 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 914 can also include optical sensor, such as CMOS or ccd image sensor, for answering in imaging With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G or their combination.In an exemplary reality It applies in example, communication component 916 receives the broadcast singal from external broadcasting management system or broadcast correlation via broadcast channel to disappear Breath.In one exemplary embodiment, communication component 916 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned message cancelling method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 918 of device 900 to complete the above-mentioned message side of recalling Method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, Floppy disk and optical data storage devices etc..
Figure 10 is a kind of block diagram that device is recalled for message shown according to another exemplary embodiment.For example, device 1000 may be provided as a network side equipment.Referring to Fig.1 0, it further comprises one that device 1000, which includes processing component 1002, A or multiple processors, and the memory resource as representated by memory 1004, can be by processing component 1002 for storing The instruction of execution, such as application program.The application program stored in memory 1004 may include one or more every One corresponds to the module of one group of instruction.In addition, processing component 1002 is configured as executing instruction, recalled with executing above-mentioned message Method.
Device 1000 can also include that a power supply module 1006 be configured as the power management of executive device 1000, and one Wired or wireless network interface 1008 is configured as device 1000 being connected to network and input and output (I/O) interface 1010.Device 1000 can be operated based on the operating system for being stored in memory 1004, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (9)

1. a kind of message cancelling method, which is characterized in that the described method includes:
Message revocation request is received, the message revocation request is for recalling target message, the message revocation request Including at least the message identifier of the target message;
Screenshot store path corresponding with the message identifier of the target message, the correspondence are inquired in the corresponding relationship prestored Relationship is the corresponding relationship that is stored when screenshot event occurs to message, the screenshot store path be include that the target disappears The store path of the screenshot file of breath;
The corresponding screenshot file of the screenshot store path is deleted,
The method also includes:
When detecting screenshot event, the screenshot store path of screenshot file is obtained, the screenshot file is to current display circle The file that face is intercepted includes at least one message in the current display interface;
Obtain the message identifier of at least one message in the current display interface;
Store the corresponding relationship between the message identifier and the screenshot store path.
2. the method according to claim 1, wherein described when detecting screenshot event, acquisition screenshot file Screenshot store path, comprising:
When screenshot event occurs for operating system, deposited by the screenshot that the hook function in the operating system obtains screenshot file Path is stored up, the hook function is in operating system for calling in message application under the triggering of the screenshot event The function of first function;
Using the screenshot store path as call parameters, the first function is called;
Cutting for the screenshot file is obtained from the call parameters by the first function in the message application Figure store path.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
The hook function is registered in the operating system by the message application, the registration is described for defining Hook function calls the first function when the screenshot event occurs.
4. the method according to claim 1, wherein described by the corresponding screenshot of the screenshot store path File is deleted, comprising:
The screenshot file is deleted by the second function in message application.
5. a kind of message recalls device, which is characterized in that described device includes:
Receiving module is configured as receiving message revocation request, and the message revocation request is used to recall target message, The message revocation request includes at least the message identifier of the target message;
Enquiry module is configured as inquiring screenshot corresponding with the message identifier of the target message in the corresponding relationship prestored Store path, the corresponding relationship are the corresponding relationships stored when screenshot event occurs to message, and the screenshot stores road Diameter be include the target message screenshot file store path;
Removing module is configured as deleting the corresponding screenshot file of the screenshot store path,
Described device further include:
First obtains module, is configured as when detecting screenshot event, the screenshot store path of acquisition screenshot file, and described section Map file is the file intercepted to current display interface, includes at least one message in the current display interface;
Second obtains module, is configured as obtaining the message identifier of at least one message in the current display interface;
Memory module is configured as storing the corresponding relationship between the message identifier and the screenshot store path.
6. device according to claim 5, which is characterized in that described first, which obtains module, includes:
First acquisition submodule is configured as passing through the hook in the operating system when screenshot event occurs for operating system Function obtains the screenshot store path of screenshot file, and the hook function is in operating system for the touching in the screenshot event Give the function for calling the first function in message application;
Submodule is called, is configured as calling the first function using the screenshot store path as call parameters;
Second acquisition submodule is configured as through the first function in the message application from the call parameters The middle screenshot store path for obtaining the screenshot file.
7. device according to claim 6, which is characterized in that described device further include:
Registration module is configured as registering the hook function, institute in the operating system by the message application It states registration and calls the first function when the screenshot event occurs for defining the hook function.
8. device according to claim 5, which is characterized in that
The removing module is configured as deleting the screenshot file by the second function in message application.
9. a kind of message recalls device, which is characterized in that described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
Message revocation request is received, the message revocation request is for recalling target message, the message revocation request Including at least the message identifier of the target message;
Screenshot store path corresponding with the message identifier of the target message, the correspondence are inquired in the corresponding relationship prestored Relationship is the corresponding relationship that is stored when screenshot event occurs to message, the screenshot store path be include that the target disappears The store path of the screenshot file of breath;
The corresponding screenshot file of the screenshot store path is deleted,
The processor is also configured to
When detecting screenshot event, the screenshot store path of screenshot file is obtained, the screenshot file is to current display circle The file that face is intercepted includes at least one message in the current display interface;
Obtain the message identifier of at least one message in the current display interface;
Store the corresponding relationship between the message identifier and the screenshot store path.
CN201510971666.6A 2015-12-22 2015-12-22 Message cancelling method and device Active CN105634920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510971666.6A CN105634920B (en) 2015-12-22 2015-12-22 Message cancelling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510971666.6A CN105634920B (en) 2015-12-22 2015-12-22 Message cancelling method and device

Publications (2)

Publication Number Publication Date
CN105634920A CN105634920A (en) 2016-06-01
CN105634920B true CN105634920B (en) 2018-12-25

Family

ID=56049448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510971666.6A Active CN105634920B (en) 2015-12-22 2015-12-22 Message cancelling method and device

Country Status (1)

Country Link
CN (1) CN105634920B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105490919B (en) 2015-11-24 2019-11-08 小米科技有限责任公司 Message cancelling method and device
CN107786420B (en) * 2016-08-26 2020-06-05 腾讯科技(深圳)有限公司 Message revocation method, message revocation server and user equipment
CN108075945B (en) * 2016-11-18 2021-04-27 腾讯科技(深圳)有限公司 Application testing method and device
CN109688042B (en) * 2017-10-18 2021-12-31 阿里巴巴集团控股有限公司 Message processing method and device
CN109445962A (en) * 2018-10-31 2019-03-08 河南职业技术学院 Computer based screenshot store method and screenshot save set

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988511A (en) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 Method for withdrawing instant communication news and instant communication system
CN103516576A (en) * 2012-06-21 2014-01-15 阿尔卡特朗讯公司 Method for processing instant message and device thereof
CN103617519A (en) * 2013-11-01 2014-03-05 优视科技有限公司 Communication information processing method, device and system
CN104518946A (en) * 2013-09-27 2015-04-15 北京新媒传信科技有限公司 Method and device for deleting instant messaging message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988511A (en) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 Method for withdrawing instant communication news and instant communication system
CN103516576A (en) * 2012-06-21 2014-01-15 阿尔卡特朗讯公司 Method for processing instant message and device thereof
CN104518946A (en) * 2013-09-27 2015-04-15 北京新媒传信科技有限公司 Method and device for deleting instant messaging message
CN103617519A (en) * 2013-11-01 2014-03-05 优视科技有限公司 Communication information processing method, device and system

Also Published As

Publication number Publication date
CN105634920A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN104506410B (en) The method and apparatus of instant messaging
CN105634920B (en) Message cancelling method and device
CN105162668B (en) Connect method and device for removing
CN106211159B (en) Bluetooth-based identity recognition method and device
CN104038536B (en) Plug-in unit communication means and device
WO2016008243A1 (en) Network connection method and apparatus
CN104580637B (en) Telephone number labeling method, terminal and Cloud Server
JP2017528050A (en) Method and apparatus for alarm
CN104780155A (en) Method and device for binding equipment
WO2017045307A1 (en) Method and apparatus for displaying answering extension function
CN104301308B (en) Call control method and device
CN106254467A (en) Sharing files method and device
CN107094094B (en) Application networking method and device and terminal
CN113783774B (en) Cross-cluster network configuration method and device, communication equipment and storage medium
CN108173744B (en) Information processing method and device
CN109716806A (en) The method and device of network registry
US10263925B2 (en) Method, device and medium for sending message
CN105491518A (en) Method and device for social reminding based on wearable devices
CN110086927A (en) Message treatment method, device, equipment, server and readable storage medium storing program for executing
CN105306567B (en) Method and device for terminal connection
CN104363166B (en) Instant communicating method, device and intelligent terminal
CN105634928B (en) Social based reminding method and device based on wearable device
CN106255063A (en) Address sending method and equipment
CN106922005B (en) Method and device for accessing wireless access point and computer readable storage medium
CN106686263B (en) Communication processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant