CN108566332B - Instant messaging information processing method, device and storage medium - Google Patents

Instant messaging information processing method, device and storage medium Download PDF

Info

Publication number
CN108566332B
CN108566332B CN201810342492.0A CN201810342492A CN108566332B CN 108566332 B CN108566332 B CN 108566332B CN 201810342492 A CN201810342492 A CN 201810342492A CN 108566332 B CN108566332 B CN 108566332B
Authority
CN
China
Prior art keywords
instant messaging
messaging information
information
editing
interface
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
CN201810342492.0A
Other languages
Chinese (zh)
Other versions
CN108566332A (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.)
Guangzhou Tencent Technology Co Ltd
Original Assignee
Guangzhou Tencent Technology Co Ltd
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 Guangzhou Tencent Technology Co Ltd filed Critical Guangzhou Tencent Technology Co Ltd
Priority to CN201810342492.0A priority Critical patent/CN108566332B/en
Publication of CN108566332A publication Critical patent/CN108566332A/en
Application granted granted Critical
Publication of CN108566332B publication Critical patent/CN108566332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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]
    • 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
    • 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/234Monitoring or handling of messages for tracking messages

Abstract

The embodiment of the invention discloses an instant messaging information processing method, an instant messaging information processing device and a storage medium; after the instant messaging information is successfully withdrawn, an editing interface related to the instant messaging information can be generated according to the withdrawal success response, wherein the editing interface is used for receiving the editing information related to the instant messaging information in the valid period, then the editing interface is closed when the valid period is exceeded, and the withdrawn instant messaging information is deleted in the local cache, so that the aim of re-editing the withdrawn information in a certain period is fulfilled.

Description

Instant messaging information processing method, device and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to an instant messaging information processing method, an instant messaging information processing device and a storage medium.
Background
Instant Messaging (Instant Messaging) is a service for connecting a terminal to an Instant Messaging network, which not only allows users to use the network to perform text message transmission in real time, but also performs communication between files, voice and video in real time, and is very flexible and convenient, and thus Instant Messaging also becomes one of the most popular communication modes at present.
In most of the existing instant messaging applications, because the sent instant messaging information has the characteristics of real-time transmission and display, scenes that users send information by mistake often occur. In order to improve the fault tolerance and effectively ensure the accuracy and controllability of the instant messaging information content sent by the user, the prior art also provides a withdrawal technology. The "withdrawal" technology allows a user to withdraw the sent text information (i.e., the instant messaging information in text style) in a certain scene, for example, when the user triggers the "withdrawal" operation at the sending end, the sending end sends a withdrawal instruction to the server to touch the server to directly clear the corresponding text information in the local and receiving ends, and updates the message state in the user interface (including the user interfaces of the sending end and the receiving end), so that the withdrawn text information is not displayed in the user interface, thereby achieving the purpose of fault tolerance.
In the research and practice process of the prior art, the inventor of the present invention finds that, in most of the existing scenarios, after the user withdraws the information, the user can rewrite a piece of similar information to send the similar information, the operation is complicated, and particularly for long information, the user needs to consume much writing time and the processing efficiency is low.
Disclosure of Invention
The embodiment of the invention provides an instant messaging information processing method, an instant messaging information processing device and a storage medium, which can be used for editing withdrawn information again, are simple to operate and greatly improve the processing efficiency.
The embodiment of the invention provides an instant messaging information processing method, which comprises the following steps:
acquiring a withdrawal instruction, wherein the withdrawal instruction indicates instant messaging information needing to be withdrawn;
sending the withdrawal instruction to a server so that the server deletes the instant messaging information in the server and a receiving end according to the withdrawal instruction;
receiving a response of withdrawing success returned by the server after the instant messaging information is deleted successfully;
generating an editing interface related to the instant messaging information according to the withdrawing success response, wherein the editing interface is used for receiving the editing information related to the instant messaging information in a valid period;
and when the validity period is exceeded, closing the editing interface and deleting the instant messaging information in the local cache.
Correspondingly, an embodiment of the present invention further provides an instant messaging information processing apparatus, including:
the acquisition unit is used for acquiring a withdrawal instruction, and the withdrawal instruction indicates instant messaging information needing to be withdrawn;
the sending unit is used for sending the withdrawing instruction to the server so that the server deletes the instant messaging information in the server and the receiving end according to the withdrawing instruction;
the receiving unit is used for receiving a withdrawal success response returned by the server after the instant messaging information is deleted successfully;
the generating unit is used for generating an editing interface related to the instant messaging information according to the withdrawing success response, and the editing interface is used for receiving the editing information related to the instant messaging information in the valid period;
and the deleting unit is used for closing the editing interface and deleting the instant messaging information in the local cache when the validity period is exceeded.
Optionally, in some embodiments, the generating unit may be specifically configured to generate a timestamp and an editing interface according to the revocation success response, and set a validity period of the editing interface with the timestamp as a starting point, so that the editing interface can receive editing information about the instant messaging information within the validity period.
Optionally, in some embodiments, the deleting unit may be specifically configured to generate a delay task according to the validity period, suspend an operation of deleting the instant messaging information in the local cache according to the delay task, and when it is determined that the current time exceeds the validity period, close the editing interface according to the delay task, and execute an operation of deleting the instant messaging information in the local cache.
Optionally, in some embodiments, the instant messaging information processing apparatus may further include a display unit, as follows:
the obtaining unit is further configured to obtain the instant messaging information from a local cache through the editing interface when the editing interface is triggered;
the display unit is used for displaying the instant messaging information in a preset editing area so that a user can edit the instant messaging information conveniently.
Optionally, in some embodiments, the instant messaging information processing apparatus may further include an editing unit and an updating unit, as follows:
the acquisition unit is also used for receiving an editing instruction;
the editing unit is used for editing the instant messaging information in the editing area according to the editing instruction to obtain edited instant messaging information;
and the updating unit is used for sending the edited instant messaging information and updating the display state of the message in the user interface when receiving the sending instruction.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform steps in any one of the instant messaging information processing methods provided in the embodiments of the present invention.
After the instant messaging information is successfully withdrawn, the instant messaging information in the local cache is not immediately deleted, but an editing interface related to the instant messaging information is generated according to the successful withdrawal response so that a user can edit the instant messaging information in the validity period, and then the editing interface is closed and the instant messaging information in the local cache is deleted when the validity period is exceeded; because the scheme can directly edit the withdrawn instant messaging information through the editing interface without writing from the beginning or manually copying and pasting before withdrawing, compared with the existing scheme, the scheme can greatly save the writing time, simplify the operation and be beneficial to improving the processing efficiency of the instant messaging information.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic view of a scenario of an instant messaging information processing method according to an embodiment of the present invention;
fig. 1b is a flowchart of an instant messaging information processing method according to an embodiment of the present invention;
fig. 2a is another flowchart of an instant messaging information processing method according to an embodiment of the present invention;
fig. 2b is a schematic interface diagram of an instant messaging information processing method according to an embodiment of the present invention;
fig. 2c is another schematic interface diagram of the instant messaging information processing method according to the embodiment of the present invention;
fig. 2d is a schematic diagram of an interface for re-editing text messages in the instant messaging information processing method according to the embodiment of the present invention;
fig. 2e is a schematic view of another interface for re-editing text messages in the instant messaging information processing method according to the embodiment of the present invention;
fig. 2f is a schematic diagram of an interface for re-editing the voice message in the instant messaging information processing method according to the embodiment of the present invention;
fig. 2g is a schematic view of another interface for re-editing text messages in the instant messaging information processing method according to the embodiment of the present invention;
fig. 3a is a schematic structural diagram of an instant messaging information processing apparatus according to an embodiment of the present invention;
fig. 3b is another schematic structural diagram of an instant messaging information processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an instant messaging information processing method, an instant messaging information processing device and a storage medium.
For example, referring to fig. 1a, the sending end may send a withdrawal instruction indicating instant messaging information that needs to be withdrawn to the server, and after receiving the withdrawal instruction, the server may delete the instant messaging information in its own and the receiving end, for example, the server may delete data about the instant messaging information stored in its own and send a UDP (User Datagram Protocol) packet to the receiving end to trigger the receiving end to delete the data about the instant messaging information and update a display state of a message in a User Interface (UI) and then return a success response to the sending end by the server, and after receiving the success response, generate an editing Interface about the instant messaging information according to the success response, the instant messaging information is edited by the user within the validity period, and when the validity period is exceeded, the editing interface is closed, the instant messaging information in the local cache is deleted, and therefore the purpose of re-editing the withdrawn instant messaging information within a certain period is achieved for the user.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The first embodiment,
The present embodiment will be described in terms of an instant messaging information processing apparatus, which may be specifically integrated in a terminal as a sending end (i.e., a withdrawal end), where the terminal may be specifically a mobile phone, a tablet Computer, a wearable smart device, a notebook Computer, or a Personal Computer (PC).
An instant messaging information processing method comprises the following steps: the method comprises the steps of obtaining a withdrawal instruction which indicates instant messaging information needing to be withdrawn, sending the withdrawal instruction to a server, enabling the server to delete the instant messaging information in a server and a receiving end according to the withdrawal instruction, receiving a withdrawal success response returned by the server after the instant messaging information is deleted successfully, and generating an editing interface related to the instant messaging information according to the withdrawal success response, wherein the editing interface is used for receiving the editing information related to the instant messaging information in a valid period, and when the valid period is exceeded, closing the editing interface and deleting the instant messaging information in a local cache.
As shown in fig. 1b, the specific flow of the instant messaging information processing method may be as follows:
101. a revocation instruction is obtained indicating instant messaging information that needs to be revoked.
For example, the revocation operation information about the sent instant messaging information may be specifically acquired, and then, a revocation instruction is generated according to the revocation operation information, and the sent instant messaging information is indicated in the revocation instruction as the instant messaging information that needs to be revoked.
For example, a withdrawal trigger key may be set in each operation menu of the sent instant messaging information, when the user clicks the withdrawal trigger key, for example, clicks the withdrawal trigger key of the sent instant messaging information X, a withdrawal instruction about the sent instant messaging information X may be generated, and the sent instant messaging information X is indicated as the instant messaging information that needs to be withdrawn in the withdrawal instruction, and so on.
102. And sending the withdrawal instruction to the server so that the server deletes the instant messaging information in the server and the receiving end according to the withdrawal instruction.
For example, after receiving the withdrawal instruction, the server may determine whether the withdrawal instruction is legal, and if not, the server rejects the withdrawal instruction, for example, a withdrawal failure response may be returned to the sending end (i.e., the withdrawal end), otherwise, if so, the server may delete the data about the instant messaging information stored by the server itself, generate a UDP packet according to the withdrawal instruction, send the UDP packet to the receiving end (i.e., the withdrawn end), withdraw the instant messaging information by the receiving end according to the UDP packet, delete the data about the instant messaging information locally stored by the receiving end, and update the display state of the message in the user interface of the receiving end.
When the server successfully deletes the data about the instant messaging information (i.e., the instant messaging information required to be withdrawn) stored by the server and the receiving end successfully deletes the data about the instant messaging information, the server can generate a withdrawal success response and return the withdrawal success response to the sending end.
103. And receiving a response of withdrawing success returned by the server after the instant messaging information is deleted successfully.
104. Generating an editing interface related to the instant messaging information according to the withdrawing success response, wherein the editing interface is used for receiving the editing information related to the instant messaging information in the valid period; for example, the following may be specifically mentioned:
(1) a timestamp and editing interface is generated based on the revocation success response.
For example, the storage address of the instant messaging information in the local cache may be obtained according to the revocation success response, an interface generating function is called to establish an information processing interface, and an association relationship between the information processing interface and the storage address is established to obtain an editing interface.
In addition, the time of the withdrawal may be recorded as a timestamp corresponding to the instant messaging information of the withdrawal.
(2) And setting the validity period of the editing interface by taking the time stamp as a starting point, so that the editing interface can receive the editing information related to the instant messaging information in the validity period.
The validity period can be set according to the requirements of practical application, for example, the validity period can be set to 5 minutes, that is, the timestamp (that is, the withdrawal time) is used as a starting point, the instant messaging information (that is, the withdrawn instant messaging information) can be re-edited within 5 minutes through the editing interface, the temporary validity of the local storage time of the instant messaging information at the sending end is ensured, and if the time exceeds 5 minutes, the instant messaging information can not be re-edited through the editing interface, so that the risk of user privacy disclosure is avoided.
The expression form of the editing interface may be various, for example, the expression form may be a trigger key such as an icon or a button; in addition, the editing interface may be exposed or hidden, for example, may be displayed at an original display position of the instant messaging information, or may pop up the editing interface when the user clicks or presses the original display position for a long time, and so on, which may be determined according to the requirements of the actual application and will not be described herein again.
Since the user can re-edit the instant messaging information through the editing interface, when the editing interface is triggered, the instant messaging information needs to be displayed for the user to view and edit, that is, after the step "generating the editing interface for the instant messaging information according to the revocation success response", the instant messaging information processing method may further include:
when the editing interface is triggered, the instant messaging information is obtained from the local cache through the editing interface, and the instant messaging information is displayed in a preset editing area, so that a user can edit the instant messaging information.
For example, if the instant messaging information is respectively text information, voice information, image information and video information, the step "displaying the instant messaging information in the preset editing area" may be as follows:
A. the instant messaging information is text information.
Displaying the instant messaging information in an input box of the instant messaging information, for example, specifically pasting the obtained instant messaging information to the input box of the instant messaging information, and the like.
B. The instant messaging information is voice information.
And calling a voice processing process, starting a voice editor according to the voice processing process, and displaying the instant messaging information in the voice editor.
The voice editor may be a voice editor built in the instant messaging application where the instant messaging information is located, or may be a voice editor of a third party.
It should be noted that, when the voice editor is started, the voice processing process may be directly started, or the voice editor may be displayed, and the user selects whether to start the voice editor, or multiple voice editors may be displayed, and the user selects the voice editor from the voice editor, which is not described herein again.
C. The instant messaging information is image information.
And calling an image processing process, starting an image editor according to the image processing process, and displaying the instant messaging information in the image editor.
The image editor may be an image editor built in the instant messaging application where the instant messaging information is located, or may be an image editor of a third party.
It should be noted that, when the image editor is started, the image processing process may be directly started, or the image editor may also be displayed, and the user selects whether to start, or multiple image editors may also be displayed, and the user selects from them, which is not described herein again.
D. The instant messaging information is video information.
And calling a video processing process, starting a video editor according to the picture processing process, and displaying the instant communication information in the video editor.
The video editor may be a video editor built in the instant messaging application where the instant messaging information is located, or may be a video editor of a third party.
It should be noted that when the video editor is started, the video processing process may be directly started, or the video editor may also be displayed, and the user selects whether to start or not, or multiple video editors may also be displayed, and the user selects from them, which is not described herein again.
In addition, optionally, after the step "displaying the instant messaging information in the preset editing area", the instant messaging information processing method may further include:
and receiving an editing instruction, editing the instant messaging information in the editing area according to the editing instruction to obtain edited instant messaging information, sending the edited instant messaging information when receiving a sending instruction, and updating the display state of the information in the user interface.
When the display state of the message in the user interface is updated, various modes can be provided, and the display state can be flexibly set according to the requirements of practical application. For example, the edited instant messaging information may be sent as a new instant messaging information, or the edited instant messaging information may also be sent as the original instant messaging information (i.e., displayed at the display position of the original instant messaging information), that is, the step "updating the display state of the message in the user interface" may include:
and determining the display position of the edited instant messaging information in the user interface according to the current moment, and displaying the edited instant messaging information in the display position.
Or determining the display position of the instant messaging information in the user interface before withdrawing according to the timestamp, and displaying the edited instant messaging information in the display position.
105. When the validity period is exceeded, closing the editing interface and deleting the instant messaging information in the local cache; for example, the following may be specifically mentioned:
(1) and generating the delay task according to the validity period.
Wherein, the delay task refers to suspending the execution of 'deleting the instant communication information in the local cache'; this is because, when the instant messaging information is withdrawn, the sending end deletes the instant messaging information in addition to the server and the receiving end deleting the instant messaging information, and if the sending end deletes the instant messaging information, the sending end cannot subsequently re-edit the instant messaging information, so that it is necessary to ensure that the storage of the instant messaging information in the local cache is temporarily effective.
(2) And suspending the operation of deleting the instant messaging information in the local cache according to the delay task.
The suspension means a suspension execution, and the suspension manner may be in various manners, for example, a delayed deletion identifier may be specifically set for the instant messaging information according to the delayed task, then, the delayed deletion identifier and the timestamp are bound, and the time-to-live of the delayed deletion identifier is set with the timestamp as a starting point and the validity period as a duration.
For example, if the timestamp is "12: 00 at 1/2018" and the validity period of the editing interface is 5 minutes, the survival time of the deferred deletion flag may be set to "12: 00 at 1/2018/1/12: 05 at 1/2018", and so on.
(3) And when the current time exceeds the validity period, closing the editing interface according to the delay task, and executing the operation of deleting the instant messaging information in the local cache.
For example, taking the suspension mode in step (2) as an example of setting a delayed deletion flag, at this time, it may be determined whether the delayed deletion flag exceeds the survival time, and if the delayed deletion flag exceeds the survival time, for example, if the current time exceeds "12: 05/1/2018", the editing interface may be closed according to the delayed task, and an operation of deleting the instant messaging information in the local cache may be performed.
As can be seen from the above, in this embodiment, after the instant messaging information is successfully revoked, the instant messaging information in the local cache is not immediately deleted, but an editing interface related to the instant messaging information is generated according to a revocation success response, so that a user edits the instant messaging information within a validity period, and then, when the validity period is exceeded, the editing interface is closed and the instant messaging information in the local cache is deleted; because the scheme can directly edit the withdrawn instant messaging information through the editing interface without writing from the beginning or manually copying and pasting before withdrawing, compared with the existing scheme, the scheme can greatly save the writing time, simplify the operation and be beneficial to improving the processing efficiency of the instant messaging information.
Example II,
According to the method described in the foregoing embodiment, the instant messaging apparatus is specifically integrated in a terminal as a transmitting end, where the transmitting end is terminal a and the receiving end is a terminal.
As shown in fig. 2a, a method for processing instant messaging information may specifically include the following steps:
201. the terminal a acquires revocation operation information on the transmitted instant messaging information.
For example, a withdrawal trigger key may be provided in each operation menu for sending instant messaging information, and when the user triggers the withdrawal trigger key, the withdrawal operation information may be acquired.
For example, taking a certain instant messaging application in the terminal a as an example, referring to fig. 2b, in a session interface of "zhang san" between the user and the friend, when the user presses a certain piece of instant messaging information for a long time, such as "i don't know", a menu may pop up in the session interface, and the menu includes a "withdraw" trigger key, and of course, the menu may also include other trigger keys, such as copy, forward, and collect; when the user triggers the 'withdraw' trigger key, the terminal a can acquire the withdraw operation information.
The manner in which the user triggers the withdrawal trigger key may be various, for example, clicking, double clicking, touching, sliding, or long pressing, which is not limited herein.
It should be noted that the instant messaging information may be, besides text information, voice information, image information, video information, or the like, where withdrawal manners of the voice information, the image information, or the video information are similar to the text information, for example, referring to fig. 2f, when a user presses a certain piece of voice information for a long time, a menu may also pop up in the session interface, where the menu includes a trigger key such as "withdraw", and when the user triggers the "withdraw" trigger key, the terminal a may obtain the withdrawal operation information, and so on for other types of information, which is not described herein again.
202. And the terminal A generates a withdrawal instruction according to the withdrawal operation information and sends the withdrawal instruction to the server, wherein the withdrawal instruction indicates the instant messaging information which needs to be withdrawn.
For example, also taking the example in fig. 2b as an example, as shown in fig. 2c, when the user clicks the recall trigger key of the instant messaging information "i don't know", a recall instruction about the instant messaging information "i don't know" may be generated, and the instant messaging information "i don't know" is indicated in the recall instruction as the instant messaging information that needs to be recalled.
For another example, referring to fig. 2f, when the user clicks the withdrawal trigger key of the voice message, a withdrawal instruction about the voice message may be generated, and the voice message is indicated as the instant messaging message that needs to be withdrawn in the withdrawal instruction, and so on.
Optionally, in order to avoid misoperation, when the user clicks the withdrawal trigger key, corresponding operation prompt information may be displayed for the user to select, and when the user determines that withdrawal is required, a corresponding withdrawal instruction is generated. For example, referring to fig. 2c and fig. 2f, when the user clicks the withdrawal trigger key, the operation prompt message "whether to withdraw the piece of information" may be displayed below the session interface for the user to make a further selection, and when the user clicks the "ok" trigger key, a corresponding withdrawal instruction is generated; otherwise, if the withdrawing operation is 'misoperation', the user clicks a 'cancel' trigger key to cancel the withdrawing operation.
203. And after receiving the withdrawal instruction, the server deletes the instant messaging information in the server and the terminal B according to the withdrawal instruction. For example, the following may be specifically mentioned:
the server confirms whether the withdrawal instruction is legal or not, if not, the server rejects the withdrawal instruction, for example, a withdrawal failure response can be returned to the terminal a, otherwise, if so, the server deletes the data related to the instant messaging information stored by the server, generates a UDP packet according to the withdrawal instruction, sends the UDP packet to the terminal B, withdraws the instant messaging information according to the UDP packet by the terminal B, deletes the data related to the instant messaging information stored by the terminal B, and updates the display state of the message in the user interface in the terminal B.
204. If the instant messaging information in the server and the terminal B is deleted successfully, the server returns a response of successful revocation to the terminal a, and then step 205 is executed.
205. And after receiving the withdrawing success response, the terminal A generates a time stamp and an editing interface according to the withdrawing success response.
For example, the terminal a may record the withdrawal time as a timestamp corresponding to the withdrawn instant messaging information; in addition, the terminal a may obtain the storage address of the instant messaging information in the local cache according to the revocation success response, call an interface generating function to establish an information processing interface, establish an association relationship between the information processing interface and the storage address, and obtain an editing interface.
The display form of the editing interface may be various, for example, the display form may be a trigger key such as an icon or a button; in addition, the editing interface may be exposed or hidden, for example, the editing interface may be displayed on an original display position of the instant messaging information, or the editing interface may be popped up when the user clicks or presses the original display position for a long time, and the like.
For example, as shown in fig. 2c, after the user withdraws the instant messaging information, corresponding withdrawn prompt information such as "you withdraw a message" may be displayed at the original display position of the instant messaging information, so that the user may identify the withdrawing operation; the editing interface may be arranged near the "withdrawn prompt message", for example, the "re-edit" in the lower left diagram of fig. 2c and the lower right diagram of fig. 2f is one of the representations of the editing interface.
206. And the terminal A sets the validity period of the editing interface by taking the time stamp as a starting point, so that the editing interface can receive the editing information related to the instant messaging information in the validity period.
The validity period may be set according to requirements of actual applications, for example, the validity period may be set to 5 minutes, that is, the timestamp (i.e., withdrawal time) is used as a starting point, the instant messaging information (i.e., withdrawn instant messaging information) may be re-edited within 5 minutes through the editing interface, it is ensured that the local storage time of the instant messaging information at the sending end is temporarily valid, and if the time exceeds 5 minutes, the instant messaging information may not be re-edited through the editing interface, so that a risk of user privacy disclosure is avoided.
Since the user can re-edit the instant messaging information through the editing interface, when the editing interface is triggered, the instant messaging information needs to be displayed for the user to view and edit, that is, after the step "terminal a generates the editing interface for the instant messaging information according to the revocation success response", the instant messaging information processing method can further execute steps 207 and 208, as follows:
207. when the editing interface is triggered, the terminal A acquires the instant messaging information from the local cache through the editing interface, and displays the instant messaging information in a preset editing area, so that a user can edit the instant messaging information.
The preset editing area may be set according to the requirements of the actual application, and the editing area may also be different according to different types of the instant messaging information, for example, taking the instant messaging information as text information, voice information, image information, and video information respectively as an example, the step "displaying the instant messaging information in the preset editing area" may be as follows:
(1) the instant communication information is character information.
The terminal a displays the text information in the input frame of the instant messaging information, for example, referring to fig. 2d, the obtained text information "i don't know" may be specifically pasted to the input frame of the instant messaging information, and so on.
(2) The instant messaging information is voice information.
And the terminal A calls a voice processing process, starts a voice editor according to the voice processing process and displays the voice information in the voice editor.
The voice editor may be a voice editor built in the instant messaging application where the voice message is located, or may be a voice editor of a third party.
It should be noted that, when the voice editor is started, the voice processing process may be directly started, or the voice editor may be displayed, and the user selects whether to start or not, or a plurality of voice editors may be displayed, and the user selects from them. For example, as shown in fig. 2f, when the user clicks the editing interface "re-edit", a floating-layer menu may be displayed below the session interface between the user and zhang san, where the floating-layer menu includes a plurality of start trigger keys of the voice editor, such as "voice editor 1", "voice editor 2", and "voice editor 3", for the user to select, and when the user selects one of the voice editors, such as clicks the start trigger key of "voice editor 1", the terminal a may start the voice editor 1, and display the voice information in the voice editor, so that the user can edit the voice information.
(3) The instant messaging information is image information.
And the terminal A calls an image processing process, starts an image editor according to the image processing process, and displays the image information in the image editor.
The image editor may be an image editor built in the instant messaging application where the image information is located, or may be an image editor of a third party.
It should be noted that, when the image editor is started, the image processing process may be directly started, or the image editor may also be displayed, and the user selects whether to start the image editor, or multiple image editors may also be displayed, and the user selects the image editor from the image editor, which is similar to the processing manner of the voice information and is not described herein again.
(4) The instant messaging information is video information.
And the terminal A calls a video processing process, starts a video editor according to the picture processing process, and displays the video information in the video editor.
The video editor may be a video editor built in the instant messaging application where the video information is located, or may be a video editor of a third party.
It should be noted that, when the video editor is started, the video processing process may be directly started, or the video editor may also be displayed, and the user selects whether to start or not, or multiple video editors may also be displayed, and the user selects from the video editors, which is similar to the processing manner of the voice information and is not described herein again.
208. And the terminal A receives the editing instruction, edits the instant messaging information in the editing area according to the editing instruction to obtain edited instant messaging information, sends the edited instant messaging information when receiving the sending instruction, and updates the display state of the information in the user interface.
For example, the edited instant messaging information may be specifically sent to a server, and the server sends the edited instant messaging information to the terminal B, so that the terminal B updates the display state of the message in the user interface of the terminal B, for example, the edited instant messaging information is displayed in the session interface of the terminal B itself, and the like.
It should be noted that, when the display state of the message in the user interface is updated, the terminal a may have a variety of modes, and may specifically and flexibly set according to the requirements of the actual application. For example, the edited instant messaging information may be sent as a new instant messaging information, or the edited instant messaging information may be sent as the original instant messaging information (i.e., displayed at the display position of the original instant messaging information).
For example, as shown in fig. 2e, taking the instant messaging information as the text information as an example, the user may edit the content of the original instant messaging information "i don't know" in the input box of the instant messaging information, for example, modify it to "i don't know, do not go to steak? And then, when the user clicks a "send (i.e., ENTER)" key, the terminal a generates a send instruction, and sends the edited instant messaging message "i do not know, do not want to eat the steak? After sending, the terminal a may determine, according to the current time, a display position of the edited instant messaging information in a user interface (i.e., a session interface between the user and zhang san), and display the edited instant messaging information in the display position, "i do not know, do not want to eat the steak? ".
Optionally, in addition to sending the edited instant messaging information as a new instant messaging information, the display position of the instant messaging information in the user interface before being withdrawn may also be determined according to the timestamp, and the edited instant messaging information is displayed in the display position. For example, referring to fig. 2g, when the user clicks the "send (i.e., ENTER)" key, the terminal a generates a send instruction, and according to the send instruction, does the edited instant messenger message "i do not know, do not go to steak? "send, after that, terminal a may determine, according to the timestamp, that the instant messenger" i do not know "the display position before revocation in the user interface (i.e., the session interface between the user and zhang san) (i.e.," you revoke a message to re-edit "in fig. 2 g), and display the edited instant messenger" i do not know, do not want to eat steaks? ".
Wherein steps 207 and 208 are optional steps.
209. When the validity period is exceeded, the terminal A closes the editing interface and deletes the instant messaging information in the local cache; for example, the following may be specific:
(1) the terminal a generates a delay task according to the validity period.
Since the instant messaging information is deleted by the terminal a in addition to the server and the terminal B when the instant messaging information is withdrawn, and if the instant messaging information is deleted by the terminal a, the instant messaging information cannot be re-edited subsequently, it is necessary to ensure that the storage of the instant messaging information in the cache of the terminal a is temporarily effective, so that the execution of "deleting the instant messaging information in the cache of the terminal a" can be temporarily suspended by generating the delay task at this time. For example, taking the withdrawn instant messaging information as "i don't know" as an example, the instant messaging information "i don't know" in the cache of the terminal a may not be deleted at this time.
(2) And the terminal A suspends the operation of deleting the instant messaging information in the local (namely, the terminal A) cache according to the delay task.
The suspension means a suspension execution, and the suspension manner may be in various manners, for example, a delayed deletion identifier may be specifically set for the instant messaging information according to the delayed task, then, the delayed deletion identifier and the timestamp are bound, and the time-to-live of the delayed deletion identifier is set with the timestamp as a starting point and the validity period as a duration.
For example, if the timestamp is "11: 00 at 1/2018" and the validity period of the editing interface is 10 minutes, the survival time of the deferred deletion flag may be set to "11: 00 at 1/2018" to 11:10 at 1/2018 ", and so on.
(3) And when the terminal A determines that the current time exceeds the validity period, closing the editing interface according to the delay task, and executing the operation of deleting the instant messaging information in the local cache.
For example, taking the suspension mode in step (2) as an example of setting a deferred deletion flag, at this time, the terminal a may determine whether the deferred deletion flag has exceeded the survival time, and if the deferred deletion flag has exceeded the survival time, for example, if the current time is "11: 15 of 1 month and 1 day of 2018, 11: 10", the terminal a may close the editing interface according to the deferred task, and perform an operation of deleting the instant messaging information in the cache of the terminal a, such as deleting the relevant data in the cache of the terminal a that is not known by me ", and so on.
As can be seen from the above, after the instant messaging information is successfully withdrawn, the sending end (i.e., the terminal a) does not immediately delete the withdrawn instant messaging information in the local cache, but generates an editing interface related to the withdrawn instant messaging information according to a withdrawal success response, so that the user edits the withdrawn instant messaging information within the validity period, and displays the edited instant messaging information at a preset position, without the need of the user to edit from the beginning or manually copy and paste the edited instant messaging information before withdrawal, thereby greatly saving the editing time of the user, not only being simple and flexible to operate, but also improving the processing efficiency; in addition, the scheme also sets a certain validity period for the editing interface, and when the validity period is exceeded, the editing interface is closed, and the withdrawn instant messaging information in the local cache is deleted, so that the leakage of user privacy can be avoided, and the information security is ensured.
Example III,
In order to better implement the above method, an embodiment of the present invention further provides an instant messaging information processing apparatus, where the instant messaging information processing apparatus may be specifically integrated in a terminal serving as a sending end (i.e., a withdrawal end), and the terminal may be specifically a mobile phone, a tablet computer, a wearable smart device, a notebook computer, or a PC.
For example, as shown in fig. 3a, the instant messaging information processing apparatus may include an acquisition unit 301, a transmission unit 302, a reception unit 303, a generation unit 304, and a deletion unit 305, as follows:
(1) an acquisition unit 301;
an obtaining unit 301, configured to obtain a revocation instruction, where the revocation instruction indicates instant messaging information that needs to be revoked.
For example, the obtaining unit may specifically obtain revocation operation information about the sent instant messaging information, then generate a revocation instruction according to the revocation operation information, and indicate in the revocation instruction that the sent instant messaging information is the instant messaging information that needs to be revoked.
(2) A transmitting unit 302;
a sending unit 302, configured to send the revocation instruction to the server, so that the server deletes the instant messaging information in the server and the receiving end according to the revocation instruction.
For example, after receiving the withdrawal instruction, the server may determine whether the withdrawal instruction is legal, and if not, the server rejects the withdrawal instruction, for example, a withdrawal failure response may be returned to the sending end (i.e., the withdrawal end), otherwise, if so, the server may delete the data about the instant messaging information stored by the server itself, generate a UDP packet according to the withdrawal instruction, send the UDP packet to the receiving end (i.e., the withdrawn end), withdraw the instant messaging information by the receiving end according to the UDP packet, delete the data about the instant messaging information locally stored by the receiving end, and update the display state of the message in the user interface of the receiving end.
When the server successfully deletes the data about the instant messaging information (i.e., the instant messaging information that needs to be revoked) stored by the server and the receiving end successfully deletes the data about the instant messaging information, the server may generate and return a revocation success response to the sending end, and at this time, the sending unit 303 of the sending end may receive the revocation success response, see (3).
(3) A receiving unit 303;
the receiving unit 303 is configured to receive a revocation success response returned by the server after the instant messaging information is successfully deleted.
(4) A generation unit 304;
a generating unit 304, configured to generate an editing interface for the instant messaging information according to the revocation success response, where the editing interface is configured to receive the editing information for the instant messaging information within the validity period.
For example, the generating unit 304 is specifically configured to generate a timestamp and an editing interface according to the revocation success response, and set a validity period of the editing interface with the timestamp as a starting point, so that the editing interface can receive editing information about the instant messaging information within the validity period.
For example, the generating unit 304 may record the withdrawal time as a timestamp corresponding to the withdrawn instant messaging information, obtain a storage address of the instant messaging information in the local cache according to the withdrawal success response, call an interface generating function to establish an information processing interface, establish an association relationship between the information processing interface and the storage address, and obtain an editing interface
The display form of the editing interface may be various, for example, the display form may be a trigger key such as an icon or a button; in addition, the editing interface may be exposed or hidden, for example, may be displayed at an original display position of the instant messaging information, or may pop up the editing interface when the user clicks or presses the original display position for a long time, and so on, which may be determined according to the requirements of the actual application and will not be described herein again.
(5) A deletion unit 305;
a deleting unit 305, configured to close the editing interface and delete the instant messaging information in the local cache when the validity period is exceeded.
The deleting unit 305 may be specifically configured to generate a delay task according to the validity period, suspend an operation of deleting the instant messaging information in the local cache according to the delay task, close the editing interface according to the delay task when it is determined that the current time exceeds the validity period, and execute an operation of deleting the instant messaging information in the local cache.
For example, the deleting unit 305 may specifically set a delayed deletion flag for the instant messaging information according to the delayed task, then bind the delayed deletion flag and the timestamp, and set the survival time of the delayed deletion flag with the timestamp as the starting point and the validity period as the duration; thereafter, the deleting unit 305 may determine whether the deferred delete flag exceeds the survival time, and if the deferred delete flag exceeds the survival time, close the editing interface according to the deferred task and perform an operation of deleting the instant messaging information in the local cache.
In addition, optionally, since the user can re-edit the instant messaging information through the editing interface, when the editing interface is triggered, the instant messaging information needs to be displayed for the user to view and edit, that is, as shown in fig. 3b, the instant messaging information processing apparatus may further include a display unit 306, as follows:
the obtaining unit 301 may be further configured to obtain the instant messaging information from a local cache through the editing interface when the editing interface is triggered.
The display unit 306 can be used to display the instant messaging information in a preset editing area, so that the user can edit the instant messaging information.
The preset editing area may be set according to the requirements of the actual application, for example, the editing area may also be different according to different types of the instant messaging information, for example, taking the instant messaging information as text information, voice information, image information, and video information respectively as an example, the specific editing area may be as follows:
the display unit 306 can be specifically configured to display the instant messaging information in an input frame of the instant messaging information when the instant messaging information is text information.
Or, the display unit 306 may be specifically configured to invoke a voice processing process when the instant messaging information is a voice message, start a voice editor according to the voice processing process, and display the instant messaging information in the voice editor.
Or, the display unit 306 may be specifically configured to invoke an image processing process when the instant messaging information is image information, start an image editor according to the image processing process, and display the instant messaging information in the image editor.
Or, the display unit 306 may be specifically configured to invoke a video processing process when the instant messaging information is video information, start a video editor according to the picture processing process, and display the instant messaging information in the video editor.
The voice editor, the image editor, and the video editor may be built in the instant messaging application where the instant messaging information is located, or may be a voice editor, an image editor, and a video editor of a third party, and are not described herein again.
Optionally, as shown in fig. 3b, the instant messaging information processing apparatus may further include an editing unit 307 and an updating unit 308, as follows:
the obtaining unit 301 may be further configured to receive an editing instruction.
The editing unit 307 may be configured to edit the instant messaging information in the editing area according to the editing instruction, so as to obtain an edited instant messaging information.
The updating unit 308 may be configured to send the edited instant messaging information and update the display state of the message in the user interface when receiving the sending instruction.
When the display state of the message in the user interface is updated, various modes can be provided, and the display state can be flexibly set according to the requirements of practical application. For example, the edited instant messaging information may be sent as a new instant messaging information, or the edited instant messaging information may also be sent as the original instant messaging information (i.e., displayed at the display position of the original instant messaging information), that is:
the updating unit 308 may be specifically configured to determine a display position of the edited instant messaging information in the user interface according to the current time, and display the edited instant messaging information in the display position.
Or, the updating unit 308 may be specifically configured to determine, according to the timestamp, a display position in the user interface before the instant messaging information is withdrawn, and display the edited instant messaging information in the display position.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the instant messaging information processing apparatus of this embodiment does not immediately delete the instant messaging information in the local cache after the instant messaging information is successfully withdrawn, but the generating unit 304 generates an editing interface related to the instant messaging information according to the successful withdrawal response, so that the user can edit the instant messaging information within the validity period, and then, when the validity period is exceeded, the deleting unit 305 closes the editing interface and deletes the instant messaging information in the local cache; the scheme can directly edit the withdrawn instant messaging information through the editing interface without writing from the beginning or manually copying and pasting before withdrawing, so that compared with the existing scheme, the scheme can greatly save writing time, simplify operation and be beneficial to improving the processing efficiency of the instant messaging information.
Example four,
Correspondingly, the embodiment of the present invention further provides a terminal, which can be used as a sending end, wherein any one of the processing devices for instant messaging information provided by the embodiments of the present invention can be integrated. As shown in fig. 4, the terminal may include Radio Frequency (RF) circuitry 401, memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, audio circuitry 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 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, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 with access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then transmitted to, for example, another terminal via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the handset. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions:
the method comprises the steps of obtaining a withdrawal instruction which indicates instant messaging information needing to be withdrawn, sending the withdrawal instruction to a server, enabling the server to delete the instant messaging information in a server and a receiving end according to the withdrawal instruction, receiving a withdrawal success response returned by the server after the instant messaging information is deleted successfully, and generating an editing interface related to the instant messaging information according to the withdrawal success response, wherein the editing interface is used for receiving the editing information related to the instant messaging information in a valid period, and when the valid period is exceeded, closing the editing interface and deleting the instant messaging information in a local cache.
For example, a timestamp and an editing interface may be generated according to the revocation success response, and a validity period of the editing interface is set with the timestamp as a starting point, so that the editing interface can receive editing information about the instant messaging information within the validity period.
The validity period may be set according to the requirements of the actual application, and is not described herein again.
Because the user can re-edit the instant messaging information through the editing interface, when the editing interface is triggered, the instant messaging information needs to be displayed for the user to view and edit, that is, optionally, the processor 408 may further run an application program stored in the memory 402, thereby implementing the following functions:
when the editing interface is triggered, the instant messaging information is obtained from the local cache through the editing interface, and the instant messaging information is displayed in a preset editing area, so that a user can edit the instant messaging information.
The preset editing region may be set according to the requirements of the actual application, for example, the editing region may be different according to different types of the instant messaging information, which may specifically refer to the foregoing embodiment and is not described herein again.
Further, optionally, the processor 408 may also run an application program stored in the memory 402 to implement the following functions:
and receiving an editing instruction, editing the instant messaging information in the editing area according to the editing instruction to obtain edited instant messaging information, sending the edited instant messaging information when receiving a sending instruction, and updating the display state of the information in the user interface.
When the display state of the message in the user interface is updated, various modes can be provided, and the display state can be flexibly set according to the requirements of practical application. For example, the edited instant messaging information may be sent as a new instant messaging information, or the edited instant messaging information may also be sent as the original instant messaging information (i.e., displayed at the display position of the original instant messaging information), which is described in detail in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, after the instant messaging information is successfully withdrawn, the terminal in this embodiment does not immediately delete the instant messaging information in the local cache, but generates an editing interface related to the instant messaging information according to a successful withdrawal response, so that the user edits the instant messaging information within the validity period, and then closes the editing interface and deletes the instant messaging information in the local cache when the validity period is exceeded; because the scheme can directly edit the withdrawn instant messaging information through the editing interface without writing from the beginning or manually copying and pasting before withdrawing, compared with the existing scheme, the scheme can greatly save the writing time, simplify the operation and be beneficial to improving the processing efficiency of the instant messaging information.
Example V,
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the instant messaging information processing methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
the method comprises the steps of obtaining a withdrawal instruction which indicates instant messaging information needing to be withdrawn, sending the withdrawal instruction to a server, enabling the server to delete the instant messaging information in a server and a receiving end according to the withdrawal instruction, receiving a withdrawal success response returned by the server after the instant messaging information is deleted successfully, and generating an editing interface related to the instant messaging information according to the withdrawal success response, wherein the editing interface is used for receiving the editing information related to the instant messaging information in a valid period, and when the valid period is exceeded, closing the editing interface and deleting the instant messaging information in a local cache.
Because the user can re-edit the instant messaging information through the editing interface, when the editing interface is triggered, the instant messaging information needs to be displayed for the user to view and edit, that is, optionally, the instruction may further execute the following steps:
when the editing interface is triggered, the instant messaging information is obtained from the local cache through the editing interface, and the instant messaging information is displayed in a preset editing area, so that a user can edit the instant messaging information.
For example, the editing area may be different according to different types of the instant messaging information, which may be specifically referred to in the foregoing embodiments and is not described herein again.
Further, optionally, the instructions may further perform the steps of:
and receiving an editing instruction, editing the instant messaging information in the editing area according to the editing instruction to obtain edited instant messaging information, sending the edited instant messaging information when receiving a sending instruction, and updating the display state of the information in the user interface.
When the display state of the message in the user interface is updated, various modes can be provided, and the display state can be flexibly set according to the requirements of practical application. For example, the edited instant messaging information may be sent as a new instant messaging information, or the edited instant messaging information may also be sent as the original instant messaging information (i.e., displayed at the display position of the original instant messaging information), which is described in detail in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any of the instant messaging information processing methods provided by the embodiments of the present invention, the beneficial effects that can be achieved by any of the instant messaging information processing methods provided by the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The instant messaging information processing method, the instant messaging information processing device and the storage medium provided by the embodiment of the invention are described in detail, a specific embodiment is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An instant messaging information processing method is characterized by comprising the following steps:
acquiring a withdrawal instruction, wherein the withdrawal instruction indicates instant messaging information needing to be withdrawn;
sending the withdrawing instruction to a server so that the server deletes the instant messaging information in the server and a receiving end according to the withdrawing instruction;
receiving a response of withdrawing success returned by the server after the instant messaging information is deleted successfully;
generating an editing interface related to the instant messaging information according to the withdrawing success response, wherein the editing interface is used for receiving the editing information related to the instant messaging information in a valid period;
when the validity period is exceeded, closing the editing interface and deleting the instant messaging information in a local cache;
after the generating of the editing interface related to the instant messaging information according to the response of successful revocation further comprises:
when the editing interface is triggered, the instant messaging information is obtained from a local cache through the editing interface;
displaying the instant messaging information in a preset editing area so that a user can edit the instant messaging information;
receiving an editing instruction;
editing the instant messaging information in the editing area according to the editing instruction to obtain edited instant messaging information;
when a sending instruction is received, sending the edited instant messaging information, and updating the display state of the information in the user interface;
wherein the updating the display status of the messages in the user interface comprises:
determining the display position in the user interface before the instant messaging information is withdrawn according to the timestamp, and displaying the edited instant messaging information in the display position to be sent as the original instant messaging information; wherein the timestamp is generated from the revocation success response.
2. The method of claim 1, wherein generating an editing interface for the instant messaging information according to the revocation success response, the editing interface being configured to receive the editing information for the instant messaging information during a validity period comprises:
generating a timestamp and an editing interface according to the withdrawing success response;
and setting the validity period of the editing interface by taking the time stamp as a starting point, so that the editing interface can receive the editing information related to the instant messaging information in the validity period.
3. The method of claim 2, wherein generating an editing interface based on the revocation success responses comprises:
according to the response of successful withdrawal, obtaining the storage address of the instant communication information in a local cache;
calling an interface generating function to establish an information processing interface;
and establishing an incidence relation between the information processing interface and the storage address to obtain an editing interface.
4. The method of claim 1, wherein closing the editing interface and deleting the instant messaging information in a local cache when the validity period is exceeded comprises:
generating a delay task according to the validity period;
suspending the operation of deleting the instant messaging information in a local cache according to the delay task;
and when the current moment is determined to exceed the validity period, closing the editing interface according to the delay task, and executing the operation of deleting the instant messaging information in the local cache.
5. The method according to claim 4, wherein suspending the deletion of the instant messaging information in the local cache according to the deferred task comprises:
setting a delayed deletion identifier for the instant messaging information according to the delayed task;
binding the delayed deletion identifier and the timestamp, and setting the survival time of the delayed deletion identifier by taking the timestamp as a starting point and the validity period as a duration;
when the current time is determined to exceed the validity period, the editing interface is closed according to the delay task, and the operation of deleting the instant messaging information in the local cache is executed, wherein the operation comprises the following steps: and when the delayed deletion identifier exceeds the survival time, closing the editing interface according to the delayed task, and executing the operation of deleting the instant messaging information in the local cache.
6. The method of claim 1, wherein the instant messaging message is a voice message, and the displaying the instant messaging message in a default editing area comprises:
calling a voice processing process;
starting a voice editor according to the voice processing process;
and displaying the instant messaging information in the voice editor.
7. The method of claim 1, wherein the instant messaging information is image information, and the displaying the instant messaging information in a preset editing area comprises:
calling an image processing process;
starting an image editor according to the image processing process;
and displaying the instant messaging information in the image editor.
8. The method of claim 1, wherein the instant messaging information is video information, and the displaying the instant messaging information in a preset editing area comprises:
calling a video processing process;
starting a video editor according to the video processing process;
and displaying the instant messaging information in the video editor.
9. An instant messaging information processing apparatus, comprising:
the acquisition unit is used for acquiring a withdrawal instruction, and the withdrawal instruction indicates instant messaging information needing to be withdrawn;
the sending unit is used for sending the withdrawing instruction to the server so that the server deletes the instant messaging information in the server and the receiving end according to the withdrawing instruction;
the receiving unit is used for receiving a withdrawal success response returned by the server after the instant messaging information is deleted successfully;
the generating unit is used for generating an editing interface related to the instant messaging information according to the withdrawing success response, and the editing interface is used for receiving the editing information related to the instant messaging information in the valid period;
the deleting unit is used for closing the editing interface and deleting the instant messaging information in the local cache when the validity period is exceeded;
the obtaining unit is further configured to obtain the instant messaging information from a local cache through the editing interface when the editing interface is triggered;
the display unit is used for displaying the instant messaging information in a preset editing area so that a user can edit the instant messaging information conveniently;
wherein after the instant messaging information is displayed in the preset editing area, the method further comprises the following steps:
receiving an editing instruction;
editing the instant messaging information in the editing area according to the editing instruction to obtain edited instant messaging information;
when a sending instruction is received, sending the edited instant messaging information, and updating the display state of the information in the user interface;
wherein the updating the display status of the messages in the user interface comprises:
determining the display position in the user interface before the instant messaging information is withdrawn according to the timestamp, and displaying the edited instant messaging information in the display position to be sent as the original instant messaging information; wherein the timestamp is generated from the revocation success response.
10. A storage medium storing a plurality of instructions, the instructions being suitable for a processor to load so as to execute the steps in the instant messaging information processing method according to any one of claims 1 to 8.
CN201810342492.0A 2018-04-17 2018-04-17 Instant messaging information processing method, device and storage medium Active CN108566332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810342492.0A CN108566332B (en) 2018-04-17 2018-04-17 Instant messaging information processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810342492.0A CN108566332B (en) 2018-04-17 2018-04-17 Instant messaging information processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108566332A CN108566332A (en) 2018-09-21
CN108566332B true CN108566332B (en) 2022-07-08

Family

ID=63535567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810342492.0A Active CN108566332B (en) 2018-04-17 2018-04-17 Instant messaging information processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108566332B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558054A (en) * 2018-11-30 2019-04-02 努比亚技术有限公司 A kind of message treatment method of mobile terminal, mobile terminal and storage medium
CN109587348B (en) * 2019-01-25 2023-03-21 努比亚技术有限公司 Communication information management method, mobile terminal, and computer-readable storage medium
CN109951379B (en) * 2019-03-26 2021-08-31 北京小米移动软件有限公司 Message processing method and device
CN110740091B (en) * 2019-09-12 2022-03-25 北京达佳互联信息技术有限公司 Processing method and device for sharing message, electronic equipment and readable storage medium
CN111913625A (en) * 2020-08-20 2020-11-10 网易(杭州)网络有限公司 Message processing method and device and electronic equipment
CN112035206B (en) * 2020-09-01 2021-08-24 腾讯科技(深圳)有限公司 Message processing method and device
CN112217714B (en) * 2020-11-05 2022-08-02 上海云鱼智能科技有限公司 Method, device, server, client, terminal and storage medium for deleting information in two directions in instant communication session
CN112527533A (en) * 2020-12-24 2021-03-19 网易(杭州)网络有限公司 Method and device for processing publication information and electronic terminal
CN113489638B (en) * 2021-07-08 2022-09-02 北卡科技有限公司 Message safety deleting method for instant communication system
CN113992615B (en) * 2021-10-26 2023-05-26 维沃移动通信有限公司 Method and device for displaying withdrawal message, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892805A (en) * 2016-03-29 2016-08-24 北京小米移动软件有限公司 Instant message processing method and device
CN106878152A (en) * 2016-02-29 2017-06-20 艾威梯科技(北京)有限公司 A kind of message cancelling method and module for instant messaging
CN107797835A (en) * 2016-08-31 2018-03-13 天津三星通信技术研究有限公司 The method and device handled message

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060161631A1 (en) * 2005-01-18 2006-07-20 Luigi Lira Revisions of already sent messages in an instant messaging communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878152A (en) * 2016-02-29 2017-06-20 艾威梯科技(北京)有限公司 A kind of message cancelling method and module for instant messaging
CN105892805A (en) * 2016-03-29 2016-08-24 北京小米移动软件有限公司 Instant message processing method and device
CN107797835A (en) * 2016-08-31 2018-03-13 天津三星通信技术研究有限公司 The method and device handled message

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
微信新功能:撤回的消息还能重新编辑!;007七七;《手机网易网(https://3g.163.com/dy/article/D5FLUUJ80511RE9V.html)》;20171212;第1-3页、附图 *

Also Published As

Publication number Publication date
CN108566332A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN108566332B (en) Instant messaging information processing method, device and storage medium
US11025963B2 (en) Data processing method, apparatus, and system for live streaming page
US10635449B2 (en) Method and apparatus for running game client
EP3174253B1 (en) Message withdrawal method and apparatus, computer program and recording medium
WO2018184488A1 (en) Video dubbing method and device
JP6511541B2 (en) Message updating method, apparatus and terminal
WO2017202348A1 (en) Video playing method and device, and computer storage medium
WO2016150270A1 (en) Method and apparatus for processing group session message
CN110278141B (en) Instant messaging information processing method and device and storage medium
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
WO2018196588A1 (en) Information sharing method, apparatus and system
CN106254910B (en) Method and device for recording image
BR112016018783B1 (en) METHOD, APPARATUS, DEVICE AND INTERCOMMUNICATION SYSTEM
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
JP2016524767A (en) Instant message management method, apparatus, program, and recording medium
WO2018161788A1 (en) Multimedia data sharing method and device
CN106789556B (en) Expression generation method and device
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN108021298B (en) Method and device for pasting information by using shear plate
CN111935255A (en) Information processing method, device and storage medium
CN105991510B (en) Method, device and system for synchronizing session between multiple terminals
CN105282628B (en) A kind of method and apparatus of video playing
WO2018157720A1 (en) Method and device for processing instant communication information
CN106330875B (en) Message display method and device
WO2021184980A1 (en) Swift content sharing method and device, and terminal

Legal Events

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