WO2018141226A1 - Method for withdrawing and modifying instant communication message, instant communication client side and server side - Google Patents
Method for withdrawing and modifying instant communication message, instant communication client side and server side Download PDFInfo
- Publication number
- WO2018141226A1 WO2018141226A1 PCT/CN2018/074105 CN2018074105W WO2018141226A1 WO 2018141226 A1 WO2018141226 A1 WO 2018141226A1 CN 2018074105 W CN2018074105 W CN 2018074105W WO 2018141226 A1 WO2018141226 A1 WO 2018141226A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- instant messaging
- modification
- client
- messaging client
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-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/18—Commands or executable codes
Definitions
- the present application relates to the field of computer technology, and in particular, to an instant messaging message withdrawal, modification method, instant messaging client, and server.
- the instant messaging client when the instant messaging client receives the message revocation instruction input by the user, the corresponding instant messaging message is directly deleted from the instant messaging client.
- the above method of directly deleting the instant messaging message from the instant messaging client requires the user to re-enter the recalled instant messaging message, which affects The user enters the efficiency of the recalled instant messaging message, which brings a poor experience to the user.
- the present application describes an instant messaging message withdrawal, modification method, instant messaging client and server, which can improve the input efficiency of the recalled instant messaging message.
- an instant messaging message withdrawal method including:
- the first instant messaging client receives the message withdrawal instruction
- the message revocation request is used to instruct the server to find and delete the instant messaging message from the second instant messaging client, where the second instant messaging client refers to the received instant messaging client An instant messaging client for instant messaging messages;
- an instant messaging message withdrawal method including:
- the message revocation indication is used to instruct the second instant messaging client to find and delete the instant messaging message, and the second instant messaging client refers to the received instant messaging client An instant messaging client for instant messaging messages;
- the first instant messaging client to delete the instant messaging message from the corresponding session record, and present the instant messaging message in a corresponding input box.
- a method for modifying an instant messaging message including:
- the fourth aspect provides a method for modifying an instant messaging message, including:
- a method for modifying an instant messaging message including:
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and replace the instant messaging message before the modification with the first notification message, and Presenting the modified instant messaging message in the session record;
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and replace the instant messaging message before the modification with the modified instant messaging message. And adding first identification information to the modified instant messaging message;
- a method for modifying an instant messaging message including:
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and present the modified instant in an adjacent position of the instant messaging message before the modification. Transmitting a message, and adding second identification information to the modified instant messaging message;
- an instant messaging client including:
- a receiving unit configured to receive a message withdrawal instruction
- a determining unit configured to determine, according to the message revocation instruction received by the receiving unit, an instant messaging message to be revoked from a session record of the instant messaging client;
- a sending unit configured to send a message revocation request to the server, where the message revocation request is used to instruct the server to search for and delete the instant messaging message from the second instant messaging client, the second instant messaging client Means an instant messaging client that has received the instant messaging message;
- the receiving unit is further configured to receive a response result message sent by the server for indicating that the instant messaging message is successfully deleted;
- a processing unit configured to delete the instant messaging message from the session record according to the response result message received by the receiving unit, and present the instant messaging message in an input box of the instant messaging client.
- a server including:
- a receiving unit configured to receive a message revocation request sent by the first instant messaging client, where the message revocation request includes an instant messaging message to be revoked;
- a processing unit configured to search for and delete the instant messaging message from the corresponding storage unit according to the message revocation request received by the receiving unit;
- a sending unit configured to send a message revocation indication to the second instant messaging client, where the message revocation indication is used to instruct the second instant messaging client to find and delete the instant messaging message, the second instant messaging client Means an instant messaging client that has received the instant messaging message;
- the receiving unit is further configured to receive, by the second instant messaging client, operation result information indicating that the deletion operation is successful;
- the indicating unit configured to: according to the operation result information received by the receiving unit, instruct the first instant messaging client to delete the instant messaging message from the corresponding session record, and present the message in a corresponding input box Instant messaging.
- an instant messaging client including:
- a receiving unit configured to receive a message acquisition instruction for the instant messaging message for the selected instant messaging message
- a processing unit configured to present the instant messaging message in an input box of the instant messaging client according to the message obtaining instruction received by the receiving unit;
- the receiving unit is further configured to receive a message modification instruction for the instant messaging message presented in the input box;
- a modifying unit configured to modify the instant messaging message presented in the input box according to the message modification instruction received by the receiving unit.
- an instant messaging client including:
- a receiving unit configured to receive a message modification indication sent by the server, where the message modification indication includes identifier information of the instant messaging message before modification and the modified instant messaging message;
- a searching unit configured to search for the instant messaging message before the modification from the session record of the instant messaging client according to the identifier information received by the receiving unit;
- a processing unit configured to replace the pre-modification instant messaging message in the session record with a first notification message, and present the modified instant messaging message in the session record;
- a server including:
- a receiving unit configured to receive a message modification request sent by the first instant messaging client, where the message modification request includes identifier information of the instant messaging message before modification and the modified instant messaging message;
- a processing unit configured to search for the instant messaging message before the modification from the corresponding storage unit according to the identifier information received by the receiving unit, and modify the display state of the instant messaging message before the modification and/or add Corresponding deletion identifier;
- a sending unit configured to send a message modification indication to the second instant messaging client, where the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification,
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and replace the instant messaging message before the modification with the first notification message, and Presenting the modified instant messaging message in the session record;
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and replace the instant messaging message before the modification with the modified instant messaging message. And adding first identification information to the modified instant messaging message;
- the sending unit is further configured to send, to the first instant messaging client, a response result message indicating that the modification message is successfully sent.
- a server including:
- a receiving unit configured to receive a message modification request sent by the first instant messaging client, where the message modification request includes identifier information of the instant messaging message before modification and the modified instant messaging message;
- a sending unit configured to send a message modification indication to the second instant messaging client, where the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification,
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and present the modified instant in an adjacent position of the instant messaging message before the modification. Transmitting a message, and adding second identification information to the modified instant messaging message;
- the sending unit is further configured to send, to the first instant messaging client, a response result message indicating that the modification message is successfully sent.
- the instant messaging message withdrawal, modification method, instant messaging client and server provided by the application, the instant messaging client receives the message withdrawal instruction.
- the message revocation instruction the corresponding instant messaging message is deleted from the session record, and the instant messaging message is presented in the input box. Therefore, the user can input the instant message that has been revoked by editing the instant messaging message in the input box, which greatly improves the input efficiency of the recalled instant messaging message.
- FIG. 1 is a schematic diagram of an application scenario of an instant messaging message revocation method provided by the present application
- FIG. 2 is a flowchart of an instant messaging message revocation method according to an embodiment of the present application
- FIG. 3 is a schematic diagram of a first instant messaging client provided by the present application.
- FIG. 4 is a second schematic diagram of a first instant messaging client provided by the present application.
- FIG. 5 is a flowchart of an instant messaging message revocation method according to another embodiment of the present application.
- FIG. 6 is a flowchart of a method for modifying an instant messaging message according to an embodiment of the present application
- Figure 7 is a third schematic diagram of the first instant messaging client provided by the present application.
- Figure 8a is a fourth schematic diagram of the first instant messaging client provided by the present application.
- FIG. 8b is a schematic diagram of a second instant messaging client provided by the present application.
- Figure 9a is a fifth schematic diagram of the first instant messaging client provided by the present application.
- Figure 9b is a second schematic diagram of the second instant messaging client provided by the present application.
- Figure 10a is a sixth schematic diagram of the first instant messaging client provided by the present application.
- Figure 10b is a third schematic diagram of the second instant messaging client provided by the present application.
- FIG. 11 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application.
- FIG. 12 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application.
- FIG. 13 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application.
- FIG. 14 is a schematic diagram of an instant messaging client provided by an embodiment of the present application.
- FIG. 15 is a schematic diagram of a server provided by an embodiment of the present application.
- 16 is a schematic diagram of an instant messaging client provided by another embodiment of the present application.
- FIG. 17 is a schematic diagram of an instant messaging client provided by another embodiment of the present application.
- FIG. 18 is a schematic diagram of a server provided by another embodiment of the present application.
- FIG. 19 is a schematic diagram of a server provided by another embodiment of the present application.
- the instant messaging message revocation method provided by the embodiment of the present application is applied to the scenario shown in FIG. 1.
- the first instant messaging client can receive a message revocation instruction input by the user, and determine the to be withdrawn according to the message revocation instruction. Instant messaging. Thereafter, the first instant messaging client sends a message revocation request to the server. After receiving the message revocation request, the server may instruct the second instant messaging client to find and delete the instant messaging message to be revoked.
- the server can also find the corresponding persistent storage record from the database.
- the persistent storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a time of transmission. After the corresponding persistent storage record is found, the persistent storage record is deleted.
- the instant messaging message can also be found and deleted from an offline message list and/or a synchronization database (which can be located at other servers).
- the server instructs the plurality of second instant messaging clients to find and delete the instant messaging message.
- the instant messaging client in Figure 1 can refer to the following instant messaging software clients: Ali Wangwang, Tencent QQ, WeChat, Contacts, Easy Letter, and Wangxin.
- the instant messaging message to be revoked in the present application refers to an instant messaging message that the first instant messaging client has successfully sent.
- FIG. 2 is a flowchart of a method for resuming an instant messaging message according to an embodiment of the present disclosure.
- the executor of the method may be the first instant messaging client in FIG. 1 , as shown in FIG. 2 , the method may specifically include :
- Step 210 The first instant messaging client receives the message revocation instruction.
- the message revocation instruction may be triggered by the user clicking on the "Recall" menu option corresponding to the instant messaging message to be revoked in the session record of the first instant messaging client.
- the first instant messaging client includes two parts: a session recording part and a message editing part.
- the user of the first instant messaging client is the user A.
- the session recording part is used to present the instant messaging message sent by the user A to the other user(s), and is also used to present other users to the user A.
- Send an instant message is used to edit the instant messaging message sent by the user A to other users according to the editing instruction input by the user.
- the message editing section includes an input box through which user A can input an instant messaging message.
- Step 220 Determine, according to the message revocation instruction, the instant messaging message to be revoked from the session record of the first instant messaging client.
- the instant messaging message to be revoked it may be determined that the instant messaging message to be revoked, its identification information, and the like.
- the instant messaging message to be revoked is: the instant messaging message X and its identification information.
- Step 230 sending a message revocation request to the server.
- the message revocation request is used to instruct the server to find and delete the instant messaging message from the second instant messaging client, and the second instant messaging client refers to the instant messaging client that has received the instant messaging message.
- the number of second instant messaging clients in the present application can be determined according to the number of chat objects of user A. For example, suppose user A sends an instant messaging message through a first instant messaging client in a group containing N (N is a positive integer) chat objects, except for the first instant messaging client. The instant messaging client corresponding to one chat object can receive the instant messaging message. Therefore, the number of second instant messaging clients is N-1.
- the message revocation request may include an instant messaging message to be revoked and its identification information, for example, may include an instant messaging message X and its identification information.
- the server can search for the corresponding persistent storage record from the database according to the identification information.
- the persistent storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a time of transmission. After the corresponding persistent storage record is found, the persistent storage record is deleted.
- deleting the persistent storage record may include: modifying a display state of the corresponding instant messaging message (eg, modifying the display state of the instant messaging message to a non-display state), and/or adding a corresponding deletion identifier (eg, "Withdraw” or "delete” and other identifiers). It can be understood that, for an instant messaging message whose display state is not displayed or the deletion identifier has been added, it is not visible in the corresponding instant messaging client, or a corresponding deletion identifier is added.
- modifying a display state of the corresponding instant messaging message eg, modifying the display state of the instant messaging message to a non-display state
- adding a corresponding deletion identifier eg, "Withdraw” or "delete” and other identifiers
- the instant messaging message can also be found and deleted from the offline message list and/or the synchronization database (which can be located in other servers) according to the identification information.
- the server may send a message revocation indication to the second instant messaging client at the time before, before or after performing the above deletion operation.
- the message revocation indication may include an instant messaging message to be revoked and its identification information.
- the second instant messaging client After receiving the message revocation indication, the second instant messaging client searches for and deletes the instant messaging message from the corresponding session record according to the identification information. In addition, you can find and delete the corresponding storage records from the local database based on the identification information.
- the storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a receiving time. After performing the above deletion operation, the second instant messaging client returns an operation result message indicating whether the deletion operation is successful to the server.
- the server After receiving the operation result message, if the server determines that the operation result message is a message indicating that the deletion operation fails to execute, the server returns a response result message indicating that the instant message deletion failed. The first client does not perform any operation after receiving the response result message indicating that the instant messaging message deletion has failed.
- the server determines that the operation result message is a message indicating that the deletion operation is successful, it can also determine the deletion operation performed on the persistent storage record and execute the instant message in the offline message list and/or the synchronization database. Whether the delete operation was successful. If it fails, a response result message indicating that the instant message deletion failed is returned to the first client. Otherwise, a response result message indicating that the instant messaging message deletion is successful is returned to the first client.
- the preconditions for the server to send the response result message indicating that the instant messaging message is successfully deleted to the first instant messaging client includes: a, the persistent storage record corresponding to the instant messaging message is deleted successfully; b, The offline message list and the instant messaging message in the synchronization database are successfully deleted; c, and an operation result message indicating that the deletion operation is successful is received from the second instant messaging client.
- condition a and condition c can be satisfied.
- Step 240 Receive a response result message sent by the server for indicating that the instant messaging message is successfully deleted.
- the response result message used to indicate that the instant messaging message is successfully deleted may include: identifier information that the instant messaging message is successfully deleted, identification information of the instant messaging message, and an instant messaging message.
- Step 250 Delete an instant messaging message from the session record according to the response result message, and present an instant messaging message in an input box of the first instant messaging client.
- the step 250 may specifically include: searching and deleting an instant messaging message from the corresponding session record according to the identification information; obtaining an instant messaging message from the response result message; and presenting the obtained instant messaging in an input box of the first instant messaging client Message.
- the first instant messaging client can also find and delete the storage record of the instant messaging message from the local database according to the identification information, and the storage record can include information such as identification information of the instant messaging message, instant messaging message, and receiving time.
- the instant messaging message may be set to the selected state.
- For user A to edit if you want to delete, just click the delete button, you need to go to edit to manually position the cursor. This greatly improves the input efficiency of the recalled instant messaging messages.
- the input box of the message editing portion in FIG. 3 may be as shown in FIG. 4, that is, the instant messaging message X is presented in the input box, and The instant messaging message X is selected.
- the user A can modify part of the text or characters in the instant messaging message X by manually positioning the cursor.
- the corrected instant messaging message X is sent out without re-entering the entire instant messaging message X. Thereby improving the user experience.
- FIG. 5 is a flowchart of a method for resuming an instant messaging message according to another embodiment of the present application.
- the executor of the method may be the server in FIG. 1 .
- the method may specifically include:
- Step 510 Receive a message revocation request sent by the first instant messaging client.
- the message revocation request includes an instant message to be revoked.
- the identification information of the instant messaging message to be revoked may also be included.
- the server may receive the message revocation instruction input by the user before receiving the message revocation request sent by the first instant messaging client.
- the message revocation instruction may be triggered by the user clicking on the "Recall" menu option corresponding to the instant messaging message to be revoked in the session record of the first instant messaging client. Then, according to the message revocation instruction, the instant messaging message to be revoked is determined from the corresponding session record.
- Step 520 Find and delete an instant messaging message from the corresponding storage unit according to the message revocation request.
- the server can search for the corresponding persistent storage record from the database according to the identification information.
- the persistent storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a time of transmission. After the corresponding persistent storage record is found, the persistent storage record is deleted.
- the instant messaging message can also be found and deleted from the offline message list and/or the synchronization database (which can be located in other servers) according to the identification information.
- Step 530 Send a message revocation indication to the second instant messaging client.
- the message revocation indication is used to instruct the second instant messaging client to find and delete the instant messaging message, where the second instant messaging client refers to the instant messaging client that has received the instant messaging message.
- the server may send a message revocation indication to the second instant messaging client at the time before, before or after performing the above deletion operation.
- the message revocation indication may include an instant messaging message to be revoked and its identification information.
- the second instant messaging client After receiving the message revocation indication, the second instant messaging client searches for and deletes the instant messaging message from the corresponding session record according to the identification information.
- the corresponding storage record can be found and deleted from the local database according to the identification information.
- the storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a time of reception.
- Step 540 Receive operation result information returned by the second instant messaging client to indicate whether the deletion operation is successful.
- the second instant messaging client After performing the above deletion operation, the second instant messaging client returns an operation result message indicating whether the deletion operation is successful to the server.
- Step 550 Instruct the first instant messaging client to delete the instant messaging message from the corresponding session record according to the operation result message, and present an instant messaging message in the corresponding input box.
- the server After receiving the operation result message, if the server determines that the operation result message is a message indicating that the deletion operation fails to execute, the server returns a response result message indicating that the instant message deletion failed. The first client does not perform any operation after receiving the response result message indicating that the instant messaging message deletion has failed.
- the server determines that the operation result message is a message indicating that the deletion operation is successful, it can also determine the deletion operation performed on the persistent storage record and execute the instant message in the offline message list and/or the synchronization database. Whether the delete operation was successful. If it fails, a response result message indicating that the instant message deletion failed is returned to the first client. Otherwise, a response result message indicating that the instant messaging message deletion is successful is returned to the first client.
- the response result message used to indicate that the instant messaging message is successfully deleted may include: identifier information that the instant messaging message is successfully deleted, identification information of the instant messaging message, and an instant messaging message.
- the server After receiving the response result message indicating that the instant messaging message is successfully deleted, the server finds and deletes the instant messaging message from the corresponding session record according to the identification information; and obtains the instant messaging message from the response result message; The obtained instant messaging message is presented in the input box of the communication client.
- the first instant messaging client can also find and delete the storage record of the instant messaging message from the local database according to the identification information, and the storage record can include information such as identification information of the instant messaging message, instant messaging message, and receiving time.
- the instant messaging message may be set to the selected state.
- For user A to edit if you want to delete directly press the delete button, you need to go to edit to manually position the cursor. This greatly improves the input efficiency of the recalled instant messaging messages.
- FIG. 6 is a flowchart of a method for modifying an instant messaging message according to an embodiment of the present application.
- the executor of the method may be the first instant messaging client in FIG. 1 .
- the method may specifically include:
- Step 610 Receive a message acquisition instruction for the instant messaging message for the selected instant messaging message.
- the instant messaging message may be selected by receiving a message selection instruction, where the message selection instruction may be triggered by the user long pressing the instant messaging message to be modified. According to the message selection instruction, the corresponding instant messaging message is selected from the session record of the first instant messaging client.
- the shortcut menu in FIG. 3 may further include a menu option of “adding the selected message content to the input box”.
- the menu item of "Adding the selected message content to the input box” is further included in the shortcut menu of FIG. 3, the above message acquisition instruction can be triggered by the user clicking the menu option.
- the message acquisition instruction may also be triggered by the user pressing the shortcut operation button. For example, when the user presses “Ctrl+U”, the message acquisition instruction may be triggered.
- the above menu option of “adding the selected message content to the input box” may also be included in another shortcut menu, which may be that the user presses the selected instant messaging message by pressing pressure greater than the threshold. trigger.
- the name of the menu option may also be named as another name, which is not limited in this application.
- Step 620 Present an instant messaging message in an input box of the first instant messaging client according to the message obtaining instruction.
- the first instant messaging client shown in FIG. 3 can be as shown in FIG. In Figure 7, the "instant messaging message X" is presented in the input box.
- Step 630 Receive a message modification instruction for the instant messaging message presented in the input box, and modify the instant messaging message presented in the input box according to the message modification instruction.
- the first instant messaging client can receive the message modification instruction. Then, according to the received message modification instruction, the "instant messaging message X" can be modified to "instant messaging message Y".
- the method may further include the following steps:
- Step A receiving a sending instruction of the modified message.
- the send command of the modified message can be triggered by the user clicking the "send" button.
- Step B Send a message modification request to the server according to the sending instruction.
- the message modification request is used to instruct the server to find and delete the instant messaging message from the second instant messaging client, and send the modified instant messaging message to the second instant messaging client, where the second instant messaging client refers to the received instant messaging message.
- Instant messaging client for instant messaging.
- the message modification request here may include the instant messaging message and its identification information before modification and the modified instant messaging message.
- the process of searching for and deleting the instant messaging message from the second instant messaging client may be as described in step 230, and details are not described herein.
- the server determines the deletion operation performed on the persistent storage record and After the deletion operation performed on the offline message list and/or the instant messaging message in the synchronization database is successful, the modified instant messaging message may be sent to the second instant messaging client.
- the modified instant messaging message is presented in the session record of the second instant messaging client.
- the deleted instant messaging message is replaced with a first notification message, which may be any information for notifying that the instant messaging message is deleted, for example, it may be “ ⁇ retracted a message” .
- the second instant messaging client can be as shown in Figure 8b or 9b.
- Step C Receive a response result message sent by the server to indicate that the modification message is successfully sent.
- the server may send a response result message indicating that the modified message is successfully sent to the first instant messaging client.
- Step D Replace the instant messaging message in the session record with the first notification message according to the response result message, and present the modified instant messaging message in the session record.
- the first instant messaging client shown in FIG. 3 can be as shown in FIG. 8a.
- FIG. 8a "Immediate Message X” is replaced with "You have withdrawn a message” and "IM Message Y” is presented at the next position of "IM Message X”.
- step D may be replaced by the step E: replacing the instant messaging message in the session record with the modified instant messaging message according to the response result message, and adding the first identification information to the modified instant messaging message.
- the first instant messaging client shown in FIG. 3 can be as shown in FIG. 9a.
- FIG. 9a "instant messaging message X” is replaced with “instant messaging message Y”, and the first modified information of "modified” is added to the left of "instant messaging message Y".
- FIG. 9a is only an exemplary description.
- the foregoing first identifier information may be any information used to indicate that the instant messaging message has been modified, for example, it may not be limited to text information, and may also be For special symbols, such as "@, #, and &".
- the first identification information may also be presented in other locations, such as being presented above, below or to the right of the instant messaging message, and the like.
- the instant messaging message may not be revoked, but the modified instant messaging message is presented at an adjacent location of the instant messaging message.
- the instant messaging message to be modified can be any instant messaging message in the session record, and is not limited to the latest one instant messaging message. The specifics can be achieved by the following steps:
- Step a receiving a sending instruction of the modified message.
- Step b Send a message modification request to the server according to the sending instruction.
- the message modification request is used to instruct the server to send the modified instant messaging message to the second instant messaging client, and the second instant messaging client refers to the instant messaging client that has received the instant messaging message.
- the message modification request here may include the instant messaging message and its identification information before modification and the modified instant messaging message.
- the server After receiving the message modification request, the server sends a message modification indication to the second instant messaging client, where the message modification indication may include the instant messaging message and the identification information thereof and the modified instant messaging message.
- the second instant messaging client can search for the instant messaging message before the modification from the session record according to the identification information, present the modified instant messaging message in the adjacent location of the instant messaging message, and add the first instant message to the modified instant messaging message.
- Two identification information may be any information indicating that the modified instant messaging message is a modified, alternate instant messaging message.
- the second instant messaging client can be as shown in Figure 10b.
- Step c Receive a response result message sent by the server for indicating that the modification message is successfully sent.
- the server may send a response result message indicating that the modified message is successfully sent to the first instant messaging client.
- Step d according to the response result message, presenting the modified instant messaging message in an adjacent location of the instant messaging message in the session record, and adding the second identification information to the modified instant messaging message.
- the first instant messaging client shown in FIG. 3 can be as shown in FIG. 10a.
- the next location of "instant messaging message X” presents “instant messaging message Y”
- the second modified information of "modified” is added to the left of "instant messaging message Y".
- the second identifier information may be any information indicating that the modified instant messaging message is a modified, alternate instant messaging message, eg, It can be not limited to text information, but also special symbols such as "@, #, and &".
- the second identification information may also be presented in other locations, such as being presented above, below, or on the right side of the instant messaging message, which is not limited in this application.
- the presentation position of the modified instant messaging message is not limited to the next location, and may also be other locations, such as the intermediate position of the modified instant messaging message and the next location. This application does not limit this.
- FIG. 11 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application.
- the execution body of the method may be the second instant messaging client in FIG. 1 , as shown in FIG. 11 , the method may specifically include:
- Step 1110 Receive a message modification indication sent by the server.
- the message modification indication may include identification information of the instant messaging message before modification and the modified instant messaging message.
- Step 1120 Search for the instant messaging message before the modification from the session record of the second instant messaging client according to the identification information.
- Step 1130 replacing the pre-modified instant messaging message in the session record with the first notification message, and presenting the modified instant messaging message in the session record;
- the modified instant messaging message is presented at an adjacent location of the instant messaging message before the modification in the session record, and the second identification information is added to the modified instant messaging message.
- the second instant messaging client can be as shown in Figures 8b, 9b, and 10b, respectively.
- FIG. 12 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application.
- the executor of the method may be the server in FIG. 1 .
- the method may specifically include:
- Step 1210 Receive a message modification request sent by the first instant messaging client.
- the message modification request may include identification information of the instant messaging message before modification and the modified instant messaging message.
- Step 1220 Search for the instant messaging message before the modification from the corresponding storage unit according to the identification information, and modify the display state of the instant messaging message before the modification and/or add the corresponding deletion identifier.
- Modify the display status of the instant messaging message before modification for example, modify the display status of the instant messaging message before modification to the non-display state
- the corresponding deletion identifier eg, "Retract” or "Delete", etc. Identification
- Step 1230 Send a message modification indication to the second instant messaging client.
- the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification.
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, replace the instant messaging message before the modification with the first notification message, and present the modified instant messaging message in the session record. ;or,
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, replace the instant messaging message before the modification with the modified instant messaging message, and add the first message to the modified instant messaging message.
- An identification information is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, replace the instant messaging message before the modification with the modified instant messaging message, and add the first message to the modified instant messaging message.
- Step 1240 Send a response result message indicating that the modification message is successfully sent to the first instant messaging client.
- FIG. 13 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application.
- the executor of the method may be the server in FIG. 1 .
- the method may specifically include:
- Step 1310 Receive a message modification request sent by the first instant messaging client.
- the message modification request may include identification information of the instant messaging message before modification and the modified instant messaging message.
- Step 1320 Send a message modification indication to the second instant messaging client.
- the second instant messaging client refers to an instant messaging client that has received the instant messaging message before modification.
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and present the modified instant message in the adjacent position of the instant messaging message before the modification, and the modified instant message is the modified instant message.
- the communication message adds the second identification information.
- Step 1330 Send a response result message indicating that the modification message is successfully sent to the first instant messaging client.
- an instant messaging client is also provided in the embodiment of the present application. As shown in FIG. 14, the instant messaging client includes:
- the receiving unit 1401 is configured to receive a message revocation instruction.
- the determining unit 1402 is configured to determine, according to the message revocation instruction received by the receiving unit 1401, the instant messaging message to be revoked from the session record of the instant messaging client.
- the sending unit 1403 is configured to send a message revocation request to the server, where the message revocation request is used to instruct the server to find and delete the instant messaging message from the second instant messaging client, and the second instant messaging client refers to the received instant messaging The instant messaging client for the message.
- the receiving unit 1401 is further configured to receive a response result message sent by the server for indicating that the instant messaging message is successfully deleted.
- the processing unit 1404 is configured to delete an instant messaging message from the session record according to the response result message received by the receiving unit 1401, and present an instant messaging message in an input box of the instant messaging client.
- the instant messaging client may further include:
- the setting unit 1405 is configured to set an instant messaging message presented in an input box of the instant messaging client to a selected state.
- the response result message may include identification information of the instant messaging message and an instant messaging message.
- the processing unit 1404 can be specifically configured to:
- the obtained instant messaging message is presented in the input box of the instant messaging client.
- processing unit 1404 is further configured to: find and delete an instant messaging message from the local database according to the response result message.
- the instant messaging client provided by the present application, the receiving unit 1401 receives the message revocation instruction.
- the determining unit 1402 determines the instant messaging message to be revoked from the session record of the instant messaging client according to the message revocation instruction.
- the sending unit 1403 sends a message revocation request to the server.
- the receiving unit 1401 receives a response result message sent by the server for indicating that the instant messaging message is successfully deleted.
- the processing unit 1404 deletes the instant messaging message from the session record according to the response result message, and presents the instant messaging message in the input box of the instant messaging client. Thereby, the input efficiency of the recalled instant messaging message can be improved.
- a server provided by the embodiment of the present application is as shown in FIG. 15 , and the server includes:
- the receiving unit 1501 is configured to receive a message revocation request sent by the first instant messaging client, where the message revocation request includes an instant messaging message to be revoked.
- the processing unit 1502 is configured to search for and delete an instant messaging message from the corresponding storage unit according to the message revocation request received by the receiving unit 1501.
- the sending unit 1503 is configured to send a message revocation indication to the second instant messaging client, where the message revocation indication is used to instruct the second instant messaging client to find and delete the instant messaging message, and the second instant messaging client refers to the received instant messaging message.
- the instant messaging client for the message.
- the receiving unit 1501 is further configured to receive, by the second instant messaging client, operation result information indicating that the deletion operation is successful.
- the indicating unit 1504 is configured to instruct the first instant messaging client to delete the instant messaging message from the corresponding session record according to the operation result information received by the receiving unit 1501, and present an instant messaging message in the corresponding input box.
- the server provided by the application receives the message revocation request sent by the first instant messaging client.
- the processing unit 1502 searches for and deletes the instant messaging message from the corresponding storage unit according to the message revocation request.
- the sending unit 1503 sends a message revocation indication to the second instant messaging client.
- the receiving unit 1501 receives the operation result information returned by the second instant messaging client for indicating that the deletion operation is successful.
- the instructing unit 1504 instructs the first instant messaging client to delete the instant messaging message from the corresponding session record according to the operation result information, and present an instant messaging message in the corresponding input box. Thereby, the input efficiency of the recalled instant messaging message can be improved.
- an instant messaging client is also provided in the embodiment of the present application. As shown in FIG. 16, the instant messaging client includes:
- the receiving unit 1601 is configured to receive a message acquisition instruction for the instant messaging message for the selected instant messaging message.
- the message acquisition instruction may be triggered by the user clicking a menu option in the shortcut menu corresponding to the instant messaging message; or the message acquisition instruction may also be triggered by the user pressing the shortcut operation button.
- the processing unit 1602 is configured to present an instant messaging message in an input box of the instant messaging client according to the message obtaining instruction received by the receiving unit 1601.
- the receiving unit 1601 is further configured to receive a message modification instruction for the instant messaging message presented in the input box.
- the modifying unit 1603 is configured to modify the instant messaging message presented in the input box according to the message modification instruction received by the receiving unit 1601.
- the instant messaging client may further include: a selecting unit 1604;
- the receiving unit 1601 is further configured to receive a message selection instruction
- the selecting unit 1604 is configured to select an instant messaging message from the session record of the instant messaging client according to the message selection instruction received by the receiving unit 1601.
- the instant messaging client may further include: a sending unit 1605.
- the receiving unit 1601 is further configured to receive a sending instruction of the modified message.
- the sending unit 1605 is configured to send a message modification request to the server according to the sending instruction received by the receiving unit 1601, where the message modification request is used to instruct the server to search for and delete the instant messaging message from the second instant messaging client, and to the second
- the instant messaging client sends the modified instant messaging message, and the second instant messaging client refers to the instant messaging client that has received the instant messaging message.
- the receiving unit 1601 is further configured to receive a response result message sent by the server to indicate that the modification message is successfully sent.
- the processing unit 1602 is further configured to replace the instant messaging message in the session record with the first notification message according to the response result message received by the receiving unit 1601, and present the modified instant messaging message in the session record.
- the instant messaging client may further include: a sending unit 1605.
- the receiving unit 1601 is further configured to receive a sending instruction of the modified message.
- the sending unit 1605 is configured to send a message modification request to the server according to the sending instruction received by the receiving unit 1601, where the message modification request is used to instruct the server to search for and delete the instant messaging message from the second instant messaging client, and to the second
- the instant messaging client sends the modified instant messaging message, and the second instant messaging client refers to the instant messaging client that has received the instant messaging message.
- the receiving unit 1601 is further configured to receive a response result message sent by the server to indicate that the modification message is successfully sent.
- the processing unit 1602 is further configured to replace the instant messaging message in the session record with the modified instant messaging message according to the response result message received by the receiving unit 1601, and add the first identification information to the modified instant messaging message.
- the instant messaging client may further include: a sending unit 1605.
- the receiving unit 1601 is further configured to receive a sending instruction of the modified message.
- the sending unit 1605 is configured to send a message modification request to the server according to the sending instruction received by the receiving unit 1601, where the message modification request is used to instruct the server to send the modified instant messaging message to the second instant messaging client, and the second instant messaging A client is an instant messaging client that has received instant messaging messages.
- the receiving unit 1601 is further configured to receive a response result message sent by the server to indicate that the modification message is successfully sent.
- the processing unit 1603 is further configured to: according to the response result message received by the receiving unit 1601, present the modified instant messaging message in an adjacent location of the instant messaging message in the session record, and add the second identifier information to the modified instant messaging message. .
- the instant messaging client receives the message acquisition instruction for the instant messaging message for the selected instant messaging message.
- the processing unit 1602 presents an instant messaging message in an input box of the instant messaging client according to the message acquisition instruction.
- the receiving unit 1601 receives a message modification instruction for the instant messaging message presented in the input box.
- the modifying unit 1603 modifies the instant messaging message presented in the input box according to the message modification instruction. Thereby, the modification efficiency of the instant messaging message can be improved.
- an instant messaging client is also provided in the embodiment of the present application. As shown in FIG. 17, the instant messaging client includes:
- the receiving unit 1701 is configured to receive a message modification indication sent by the server, where the message modification indication includes the identifier information of the instant messaging message before the modification and the modified instant messaging message.
- the searching unit 1702 is configured to search for the instant messaging message before the modification from the session record of the instant messaging client according to the identifier information received by the receiving unit 1701.
- the processing unit 1703 is configured to replace the pre-modified instant messaging message in the session record with the first notification message, and present the modified instant messaging message in the session record;
- the modified instant messaging message is presented at an adjacent location of the instant messaging message before the modification in the session record, and the second identification information is added to the modified instant messaging message.
- a server provided by the embodiment of the present application is as shown in FIG. 18, and the server includes:
- the receiving unit 1801 is configured to receive a message modification request sent by the first instant messaging client, where the message modification request includes the identifier information of the instant messaging message before the modification and the modified instant messaging message.
- the processing unit 1802 is configured to search for the instant messaging message before the modification from the corresponding storage unit according to the identifier information received by the receiving unit 1801, and modify the display state of the instant messaging message before the modification and/or add the corresponding deletion identifier.
- the sending unit 1803 is configured to send a message modification indication to the second instant messaging client, where the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification.
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, replace the instant messaging message before the modification with the first notification message, and present the modified instant messaging message in the session record. ;or,
- the message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, replace the instant messaging message before the modification with the modified instant messaging message, and add the first message to the modified instant messaging message.
- An identification information ;
- the sending unit 1803 is further configured to send, to the first instant messaging client, a response result message indicating that the modification message is successfully sent.
- a server provided by the embodiment of the present application is as shown in FIG. 19, and the server includes:
- the receiving unit 1901 is configured to receive a message modification request sent by the first instant messaging client, where the message modification request includes the identifier information of the instant messaging message before the modification and the modified instant messaging message.
- the sending unit 1902 is configured to send a message modification indication to the second instant messaging client, where the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification.
- the message modification indication is used to indicate that the second instant messaging client searches for the instant messaging message before the modification from the session record, and presents the modified instant messaging message in the adjacent location of the instant messaging message before the modification, and is the modified instant messaging message.
- the message adds the second identification information.
- the sending unit 1902 is further configured to send, to the first instant messaging client, a response result message indicating that the modification message is successfully sent.
- the functions described herein can be implemented in hardware, software, firmware, or any combination thereof.
- the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
本申请要求2017年02月03日递交的申请号为201710063019.4、发明名称为“即时通讯消息撤回、修改方法、即时通讯客户端及服务端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on February 3, 2017, with the application number of 201710063019.4, the invention name is "IM message revocation, modification method, instant messaging client and server", the entire contents of which are incorporated by reference. In this application.
本申请涉及计算机技术领域,尤其涉及一种即时通讯消息撤回、修改方法、即时通讯客户端及服务端。The present application relates to the field of computer technology, and in particular, to an instant messaging message withdrawal, modification method, instant messaging client, and server.
传统技术中,当即时通讯客户端接收到用户输入的消息撤回指令时,直接从即时通讯客户端中删除对应的即时通讯消息。然而,当用户只是因为输入了个别错误的文字或者字符,而撤回即时通讯消息时,上述直接从即时通讯客户端中删除即时通讯消息的方法,需要用户重新输入已撤回的即时通讯消息,这影响了用户输入已撤回的即时通讯消息的效率,从而给用户带来了较差的体验。In the conventional technology, when the instant messaging client receives the message revocation instruction input by the user, the corresponding instant messaging message is directly deleted from the instant messaging client. However, when the user simply withdraws the instant messaging message because of the input of the wrong text or character, the above method of directly deleting the instant messaging message from the instant messaging client requires the user to re-enter the recalled instant messaging message, which affects The user enters the efficiency of the recalled instant messaging message, which brings a poor experience to the user.
发明内容Summary of the invention
本申请描述了一种即时通讯消息撤回、修改方法、即时通讯客户端及服务端,可以提高已撤回的即时通讯消息的输入效率。The present application describes an instant messaging message withdrawal, modification method, instant messaging client and server, which can improve the input efficiency of the recalled instant messaging message.
第一方面,提供了一种即时通讯消息撤回方法,包括:In a first aspect, an instant messaging message withdrawal method is provided, including:
第一即时通讯客户端接收消息撤回指令;The first instant messaging client receives the message withdrawal instruction;
根据所述消息撤回指令,从所述第一即时通讯客户端的会话记录中确定待撤回的即时通讯消息;Determining, according to the message revocation instruction, an instant message to be revoked from a session record of the first instant messaging client;
向服务端发送消息撤回请求,所述消息撤回请求用于指示所述服务端从第二即时通讯客户端中查找并删除所述即时通讯消息,所述第二即时通讯客户端是指已接收所述即时通讯消息的即时通讯客户端;Sending a message revocation request to the server, the message revocation request is used to instruct the server to find and delete the instant messaging message from the second instant messaging client, where the second instant messaging client refers to the received instant messaging client An instant messaging client for instant messaging messages;
接收所述服务端发送的用于表示所述即时通讯消息删除成功的响应结果消息;Receiving a response result message sent by the server for indicating that the instant messaging message is successfully deleted;
根据所述响应结果消息,从所述会话记录中删除所述即时通讯消息,并在所述第一即时通讯客户端的输入框中呈现所述即时通讯消息。And deleting the instant messaging message from the session record according to the response result message, and presenting the instant messaging message in an input box of the first instant messaging client.
第二方面,提供了一种即时通讯消息撤回方法,包括:In a second aspect, an instant messaging message withdrawal method is provided, including:
接收第一即时通讯客户端发送的消息撤回请求,所述消息撤回请求包括待撤回的即时通讯消息;Receiving a message revocation request sent by the first instant messaging client, where the message revocation request includes an instant messaging message to be revoked;
根据所述消息撤回请求,从对应的存储单元中查找并删除所述即时通讯消息;And searching for and deleting the instant messaging message from the corresponding storage unit according to the message revocation request;
向第二即时通讯客户端发送消息撤回指示,所述消息撤回指示用于指示所述第二即时通讯客户端查找并删除所述即时通讯消息,所述第二即时通讯客户端是指已接收所述即时通讯消息的即时通讯客户端;Sending a message revocation indication to the second instant messaging client, the message revocation indication is used to instruct the second instant messaging client to find and delete the instant messaging message, and the second instant messaging client refers to the received instant messaging client An instant messaging client for instant messaging messages;
接收所述第二即时通讯客户端返回的用于表示删除操作执行成功的操作结果信息;Receiving, by the second instant messaging client, operation result information indicating that the deletion operation is successful;
根据所述操作结果信息,指示所述第一即时通讯客户端从对应的会话记录中删除所述即时通讯消息,并在对应的输入框中呈现所述即时通讯消息。And indicating, according to the operation result information, the first instant messaging client to delete the instant messaging message from the corresponding session record, and present the instant messaging message in a corresponding input box.
第三方面,提供了一种即时通讯消息修改方法,包括:In a third aspect, a method for modifying an instant messaging message is provided, including:
对选中的即时通讯消息,接收对所述即时通讯消息的消息获取指令;Receiving a message acquisition instruction for the instant messaging message for the selected instant messaging message;
根据所述消息获取指令,在第一即时通讯客户端的输入框中呈现所述即时通讯消息;And presenting, according to the message obtaining instruction, the instant messaging message in an input box of the first instant messaging client;
接收对所述输入框中呈现的所述即时通讯消息的消息修改指令,根据所述消息修改指令,对所述输入框中呈现的所述即时通讯消息进行修改。Receiving a message modification instruction for the instant messaging message presented in the input box, and modifying the instant messaging message presented in the input box according to the message modification instruction.
第四方面,提供了一种即时通讯消息修改方法,包括:The fourth aspect provides a method for modifying an instant messaging message, including:
接收服务端发送的消息修改指示,所述消息修改指示包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息;Receiving, by the server, a message modification indication, where the message modification indication includes the identifier information of the instant messaging message before the modification and the modified instant messaging message;
根据所述标识信息,从第二即时通讯客户端的会话记录中查找所述修改前的即时通讯消息;And searching, according to the identifier information, the instant messaging message before the modification from the session record of the second instant messaging client;
将所述会话记录中的所述修改前的即时通讯消息替换为第一通知消息,并在所述会话记录中呈现所述修改后的即时通讯消息;或者,Substituting the pre-modified instant messaging message in the session record with a first notification message, and presenting the modified instant messaging message in the session record; or
将所述会话记录中的所述修改前的即时通讯消息替换为所述修改后的即时通讯消息,并为所述修改后的即时通讯消息添加第一标识信息;或者,And replacing the modified instant messaging message in the session record with the modified instant messaging message, and adding first identifier information to the modified instant messaging message; or
在所述会话记录中的所述修改前的即时通讯消息的相邻位置呈现所述修改后的即时通讯消息,并为所述修改后的即时通讯消息添加第二标识信息。And presenting, by the adjacent location of the pre-modification instant messaging message in the session record, the modified instant messaging message, and adding second identifier information to the modified instant messaging message.
第五方面,提供了一种即时通讯消息修改方法,包括:In a fifth aspect, a method for modifying an instant messaging message is provided, including:
接收第一即时通讯客户端发送的消息修改请求,所述消息修改请求包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息;Receiving a message modification request sent by the first instant messaging client, where the message modification request includes identifier information of the instant messaging message before modification and the modified instant messaging message;
根据所述标识信息,从对应的存储单元中查找所述修改前的即时通讯消息,并修改所述修改前的即时通讯消息的显示状态和/或添加相应的删除标识;Searching, according to the identifier information, the instant messaging message before the modification from the corresponding storage unit, and modifying the display state of the instant messaging message before the modification and/or adding a corresponding deletion identifier;
向第二即时通讯客户端发送消息修改指示,所述第二即时通讯客户端是指已接收所述修改前的即时通讯消息的即时通讯客户端,Sending a message modification indication to the second instant messaging client, where the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification,
所述消息修改指示用于指示所述第二即时通讯客户端从会话记录中查找所述修改前的即时通讯消息,将所述修改前的即时通讯消息替换为第一通知消息,并在所述会话记录中呈现所述修改后的即时通讯消息;或者,The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and replace the instant messaging message before the modification with the first notification message, and Presenting the modified instant messaging message in the session record; or
所述消息修改指示用于指示所述第二即时通讯客户端从会话记录中查找所述修改前的即时通讯消息,将所述修改前的即时通讯消息替换为所述修改后的即时通讯消息,并为所述修改后的即时通讯消息添加第一标识信息;The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and replace the instant messaging message before the modification with the modified instant messaging message. And adding first identification information to the modified instant messaging message;
向所述第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。Sending a response result message indicating that the modification message is successfully sent to the first instant messaging client.
第六方面,提供了一种即时通讯消息修改方法,包括:In a sixth aspect, a method for modifying an instant messaging message is provided, including:
接收第一即时通讯客户端发送的消息修改请求,所述消息修改请求包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息;Receiving a message modification request sent by the first instant messaging client, where the message modification request includes identifier information of the instant messaging message before modification and the modified instant message;
向第二即时通讯客户端发送消息修改指示,所述第二即时通讯客户端是指已接收所述修改前的即时通讯消息的即时通讯客户端,Sending a message modification indication to the second instant messaging client, where the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification,
所述消息修改指示用于指示所述第二即时通讯客户端从会话记录中查找所述修改前的即时通讯消息,在所述修改前的即时通讯消息的相邻位置呈现所述修改后的即时通讯消息,并为所述修改后的即时通讯消息添加第二标识信息;The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and present the modified instant in an adjacent position of the instant messaging message before the modification. Transmitting a message, and adding second identification information to the modified instant messaging message;
向所述第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。Sending a response result message indicating that the modification message is successfully sent to the first instant messaging client.
第七方面,提供了一种即时通讯客户端,包括:In a seventh aspect, an instant messaging client is provided, including:
接收单元,用于接收消息撤回指令;a receiving unit, configured to receive a message withdrawal instruction;
确定单元,用于根据所述接收单元接收的所述消息撤回指令,从所述即时通讯客户端的会话记录中确定待撤回的即时通讯消息;a determining unit, configured to determine, according to the message revocation instruction received by the receiving unit, an instant messaging message to be revoked from a session record of the instant messaging client;
发送单元,用于向服务端发送消息撤回请求,所述消息撤回请求用于指示所述服务端从第二即时通讯客户端中查找并删除所述即时通讯消息,所述第二即时通讯客户端是指已接收所述即时通讯消息的即时通讯客户端;a sending unit, configured to send a message revocation request to the server, where the message revocation request is used to instruct the server to search for and delete the instant messaging message from the second instant messaging client, the second instant messaging client Means an instant messaging client that has received the instant messaging message;
所述接收单元,还用于接收所述服务端发送的用于表示所述即时通讯消息删除成功的响应结果消息;The receiving unit is further configured to receive a response result message sent by the server for indicating that the instant messaging message is successfully deleted;
处理单元,用于根据所述接收单元接收的所述响应结果消息,从所述会话记录中删除所述即时通讯消息,并在所述即时通讯客户端的输入框中呈现所述即时通讯消息。a processing unit, configured to delete the instant messaging message from the session record according to the response result message received by the receiving unit, and present the instant messaging message in an input box of the instant messaging client.
第八方面,提供了一种服务端,包括:In an eighth aspect, a server is provided, including:
接收单元,用于接收第一即时通讯客户端发送的消息撤回请求,所述消息撤回请求包括待撤回的即时通讯消息;a receiving unit, configured to receive a message revocation request sent by the first instant messaging client, where the message revocation request includes an instant messaging message to be revoked;
处理单元,用于根据所述接收单元接收的所述消息撤回请求,从对应的存储单元中查找并删除所述即时通讯消息;a processing unit, configured to search for and delete the instant messaging message from the corresponding storage unit according to the message revocation request received by the receiving unit;
发送单元,用于向第二即时通讯客户端发送消息撤回指示,所述消息撤回指示用于指示所述第二即时通讯客户端查找并删除所述即时通讯消息,所述第二即时通讯客户端是指已接收所述即时通讯消息的即时通讯客户端;a sending unit, configured to send a message revocation indication to the second instant messaging client, where the message revocation indication is used to instruct the second instant messaging client to find and delete the instant messaging message, the second instant messaging client Means an instant messaging client that has received the instant messaging message;
所述接收单元,还用于接收所述第二即时通讯客户端返回的用于表示删除操作执行成功的操作结果信息;The receiving unit is further configured to receive, by the second instant messaging client, operation result information indicating that the deletion operation is successful;
指示单元,用于根据所述接收单元接收的所述操作结果信息,指示所述第一即时通讯客户端从对应的会话记录中删除所述即时通讯消息,并在对应的输入框中呈现所述即时通讯消息。The indicating unit, configured to: according to the operation result information received by the receiving unit, instruct the first instant messaging client to delete the instant messaging message from the corresponding session record, and present the message in a corresponding input box Instant messaging.
第九方面,提供了一种即时通讯客户端,包括:In a ninth aspect, an instant messaging client is provided, including:
接收单元,用于对选中的即时通讯消息,接收对所述即时通讯消息的消息获取指令;a receiving unit, configured to receive a message acquisition instruction for the instant messaging message for the selected instant messaging message;
处理单元,用于根据所述接收单元接收的所述消息获取指令,在所述即时通讯客户端的输入框中呈现所述即时通讯消息;a processing unit, configured to present the instant messaging message in an input box of the instant messaging client according to the message obtaining instruction received by the receiving unit;
所述接收单元,还用于接收对所述输入框中呈现的所述即时通讯消息的消息修改指令;The receiving unit is further configured to receive a message modification instruction for the instant messaging message presented in the input box;
修改单元,用于根据所述接收单元接收的所述消息修改指令,对所述输入框中呈现的所述即时通讯消息进行修改。And a modifying unit, configured to modify the instant messaging message presented in the input box according to the message modification instruction received by the receiving unit.
第十方面,提供了一种即时通讯客户端,包括:In a tenth aspect, an instant messaging client is provided, including:
接收单元,用于接收服务端发送的消息修改指示,所述消息修改指示包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息;a receiving unit, configured to receive a message modification indication sent by the server, where the message modification indication includes identifier information of the instant messaging message before modification and the modified instant messaging message;
查找单元,用于根据所述接收单元接收的所述标识信息,从即时通讯客户端的会话记录中查找所述修改前的即时通讯消息;a searching unit, configured to search for the instant messaging message before the modification from the session record of the instant messaging client according to the identifier information received by the receiving unit;
处理单元,用于将所述会话记录中的所述修改前的即时通讯消息替换为第一通知消息,并在所述会话记录中呈现所述修改后的即时通讯消息;或者,a processing unit, configured to replace the pre-modification instant messaging message in the session record with a first notification message, and present the modified instant messaging message in the session record; or
将所述会话记录中的所述修改前的即时通讯消息替换为所述修改后的即时通讯消息,并为所述修改后的即时通讯消息添加第一标识信息;或者,And replacing the modified instant messaging message in the session record with the modified instant messaging message, and adding first identifier information to the modified instant messaging message; or
在所述会话记录中的所述修改前的即时通讯消息的相邻位置呈现所述修改后的即时 通讯消息,并为所述修改后的即时通讯消息添加第二标识信息。And presenting the modified instant messaging message at an adjacent location of the pre-modified instant messaging message in the session record, and adding second identity information to the modified instant messaging message.
第十一方面,提供了一种服务端,包括:In the eleventh aspect, a server is provided, including:
接收单元,用于接收第一即时通讯客户端发送的消息修改请求,所述消息修改请求包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息;a receiving unit, configured to receive a message modification request sent by the first instant messaging client, where the message modification request includes identifier information of the instant messaging message before modification and the modified instant messaging message;
处理单元,用于根据所述接收单元接收的所述标识信息,从对应的存储单元中查找所述修改前的即时通讯消息,并修改所述修改前的即时通讯消息的显示状态和/或添加相应的删除标识;a processing unit, configured to search for the instant messaging message before the modification from the corresponding storage unit according to the identifier information received by the receiving unit, and modify the display state of the instant messaging message before the modification and/or add Corresponding deletion identifier;
发送单元,用于向第二即时通讯客户端发送消息修改指示,所述第二即时通讯客户端是指已接收所述修改前的即时通讯消息的即时通讯客户端,a sending unit, configured to send a message modification indication to the second instant messaging client, where the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification,
所述消息修改指示用于指示所述第二即时通讯客户端从会话记录中查找所述修改前的即时通讯消息,将所述修改前的即时通讯消息替换为第一通知消息,并在所述会话记录中呈现所述修改后的即时通讯消息;或者,The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and replace the instant messaging message before the modification with the first notification message, and Presenting the modified instant messaging message in the session record; or
所述消息修改指示用于指示所述第二即时通讯客户端从会话记录中查找所述修改前的即时通讯消息,将所述修改前的即时通讯消息替换为所述修改后的即时通讯消息,并为所述修改后的即时通讯消息添加第一标识信息;The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and replace the instant messaging message before the modification with the modified instant messaging message. And adding first identification information to the modified instant messaging message;
所述发送单元,还用于向所述第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。The sending unit is further configured to send, to the first instant messaging client, a response result message indicating that the modification message is successfully sent.
第十二方面,提供了一种服务端,包括:In a twelfth aspect, a server is provided, including:
接收单元,用于接收第一即时通讯客户端发送的消息修改请求,所述消息修改请求包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息;a receiving unit, configured to receive a message modification request sent by the first instant messaging client, where the message modification request includes identifier information of the instant messaging message before modification and the modified instant messaging message;
发送单元,用于向第二即时通讯客户端发送消息修改指示,所述第二即时通讯客户端是指已接收所述修改前的即时通讯消息的即时通讯客户端,a sending unit, configured to send a message modification indication to the second instant messaging client, where the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification,
所述消息修改指示用于指示所述第二即时通讯客户端从会话记录中查找所述修改前的即时通讯消息,在所述修改前的即时通讯消息的相邻位置呈现所述修改后的即时通讯消息,并为所述修改后的即时通讯消息添加第二标识信息;The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and present the modified instant in an adjacent position of the instant messaging message before the modification. Transmitting a message, and adding second identification information to the modified instant messaging message;
所述发送单元,还用于向所述第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。The sending unit is further configured to send, to the first instant messaging client, a response result message indicating that the modification message is successfully sent.
本申请提供的即时通讯消息撤回、修改方法、即时通讯客户端及服务端,即时通讯客户端接收消息撤回指令。根据消息撤回指令,从会话记录中删除对应的即时通讯消息,并将该即时通讯消息呈现在输入框中。从而,用户通过编辑输入框中的即时通讯消息即 可实现已撤回的即时通讯消息的输入,这大大提高了已撤回的即时通讯消息的输入效率。The instant messaging message withdrawal, modification method, instant messaging client and server provided by the application, the instant messaging client receives the message withdrawal instruction. According to the message revocation instruction, the corresponding instant messaging message is deleted from the session record, and the instant messaging message is presented in the input box. Therefore, the user can input the instant message that has been revoked by editing the instant messaging message in the input box, which greatly improves the input efficiency of the recalled instant messaging message.
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图1为本申请提供的即时通讯消息撤回方法的应用场景示意图;1 is a schematic diagram of an application scenario of an instant messaging message revocation method provided by the present application;
图2为本申请一种实施例提供的即时通讯消息撤回方法流程图;FIG. 2 is a flowchart of an instant messaging message revocation method according to an embodiment of the present application;
图3为本申请提供的第一即时通讯客户端的示意图之一;FIG. 3 is a schematic diagram of a first instant messaging client provided by the present application; FIG.
图4为本申请提供的第一即时通讯客户端的示意图之二;4 is a second schematic diagram of a first instant messaging client provided by the present application;
图5为本申请另一种实施例提供的即时通讯消息撤回方法流程图;FIG. 5 is a flowchart of an instant messaging message revocation method according to another embodiment of the present application;
图6为本申请一种实施例提供的即时通讯消息修改方法流程图;FIG. 6 is a flowchart of a method for modifying an instant messaging message according to an embodiment of the present application;
图7为本申请提供的第一即时通讯客户端的示意图之三;Figure 7 is a third schematic diagram of the first instant messaging client provided by the present application;
图8a为本申请提供的第一即时通讯客户端的示意图之四;Figure 8a is a fourth schematic diagram of the first instant messaging client provided by the present application;
图8b为本申请提供的第二即时通讯客户端的示意图之一;FIG. 8b is a schematic diagram of a second instant messaging client provided by the present application; FIG.
图9a为本申请提供的第一即时通讯客户端的示意图之五;Figure 9a is a fifth schematic diagram of the first instant messaging client provided by the present application;
图9b为本申请提供的第二即时通讯客户端的示意图之二;Figure 9b is a second schematic diagram of the second instant messaging client provided by the present application;
图10a为本申请提供的第一即时通讯客户端的示意图之六;Figure 10a is a sixth schematic diagram of the first instant messaging client provided by the present application;
图10b为本申请提供的第二即时通讯客户端的示意图之三;Figure 10b is a third schematic diagram of the second instant messaging client provided by the present application;
图11为本申请另一种实施例提供的即时通讯消息修改方法流程图;FIG. 11 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application;
图12为本申请再一种实施例提供的即时通讯消息修改方法流程图;FIG. 12 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application;
图13为本申请又一种实施例提供的即时通讯消息修改方法流程图;FIG. 13 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application;
图14为本申请一种实施例提供的即时通讯客户端的示意图;FIG. 14 is a schematic diagram of an instant messaging client provided by an embodiment of the present application; FIG.
图15为本申请一种实施例提供的服务端的示意图;FIG. 15 is a schematic diagram of a server provided by an embodiment of the present application;
图16为本申请另一种实施例提供的即时通讯客户端的示意图;16 is a schematic diagram of an instant messaging client provided by another embodiment of the present application;
图17为本申请再一种实施例提供的即时通讯客户端的示意图;FIG. 17 is a schematic diagram of an instant messaging client provided by another embodiment of the present application; FIG.
图18为本申请另一种实施例提供的服务端的示意图;FIG. 18 is a schematic diagram of a server provided by another embodiment of the present application; FIG.
图19为本申请再一种实施例提供的服务端的示意图。FIG. 19 is a schematic diagram of a server provided by another embodiment of the present application.
下面结合附图,对本申请的实施例进行描述。Embodiments of the present application will be described below with reference to the accompanying drawings.
本申请实施例提供的即时通讯消息撤回方法应用于如图1所示的场景,图1中,第一即时通讯客户端可以接收用户输入的消息撤回指令,并根据该消息撤回指令确定待撤回的即时通讯消息。之后,第一即时通讯客户端向服务端发送消息撤回请求。服务端在接收到消息撤回请求之后,可以指示第二即时通讯客户端查找并删除待撤回的即时通讯消息。此外,服务端还可以从数据库中查找对应的持久化存储记录。该持久化存储记录可以包括即时通讯消息的标识信息、即时通讯消息以及发送时间等信息。查找到对应的持久化存储记录之后,将该持久化存储记录删除。再者,还可以从离线消息列表和/或同步数据库(该同步数据库可以位于其它服务端)中,查找并删除该即时通讯消息。The instant messaging message revocation method provided by the embodiment of the present application is applied to the scenario shown in FIG. 1. In FIG. 1, the first instant messaging client can receive a message revocation instruction input by the user, and determine the to be withdrawn according to the message revocation instruction. Instant messaging. Thereafter, the first instant messaging client sends a message revocation request to the server. After receiving the message revocation request, the server may instruct the second instant messaging client to find and delete the instant messaging message to be revoked. In addition, the server can also find the corresponding persistent storage record from the database. The persistent storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a time of transmission. After the corresponding persistent storage record is found, the persistent storage record is deleted. Furthermore, the instant messaging message can also be found and deleted from an offline message list and/or a synchronization database (which can be located at other servers).
当然,在实际应用中,当第一即时通讯客户端的用户的聊天对象为多个时,则第二即时通讯客户端的个数也为多个。可以理解的是,当第二即时通讯客户端的个数为多个时,服务端指示多个第二即时通讯客户端查找并删除即时通讯消息。Of course, in the actual application, when the number of chat objects of the first instant messaging client is multiple, the number of the second instant messaging client is also multiple. It can be understood that when the number of the second instant messaging client is multiple, the server instructs the plurality of second instant messaging clients to find and delete the instant messaging message.
需要说明的是,图1中即时通讯客户端可以是指如下即时通信软件的客户端:阿里旺旺、腾讯QQ、微信、来往、易信、旺信等。此外,本申请的待撤回的即时通讯消息是指第一即时通讯客户端已发送成功的即时通讯消息。It should be noted that the instant messaging client in Figure 1 can refer to the following instant messaging software clients: Ali Wangwang, Tencent QQ, WeChat, Contacts, Easy Letter, and Wangxin. In addition, the instant messaging message to be revoked in the present application refers to an instant messaging message that the first instant messaging client has successfully sent.
图2为本申请一种实施例提供的即时通讯消息撤回方法流程图,所述方法的执行主体可以为图1中的第一即时通讯客户端,如图2所示,所述方法具体可以包括:FIG. 2 is a flowchart of a method for resuming an instant messaging message according to an embodiment of the present disclosure. The executor of the method may be the first instant messaging client in FIG. 1 , as shown in FIG. 2 , the method may specifically include :
步骤210,第一即时通讯客户端接收消息撤回指令。Step 210: The first instant messaging client receives the message revocation instruction.
该消息撤回指令可以是由用户点击第一即时通讯客户端的会话记录中的待撤回的即时通讯消息所对应“撤回”菜单选项触发。举例来说,假设第一即时通讯客户端如图3所示,图3中,第一即时通讯客户端包括两部分:会话记录部分和消息编辑部分。以第一即时通讯客户端的用户为用户A为例来说,会话记录部分用于呈现用户A向其它用户(一个或多个)发送的即时通讯消息,此外,还用于呈现其它用户向用户A发送的即时通讯消息。消息编辑部分用于根据用户输入的编辑指令,对用户A向其它用户发送的即时通讯消息进行编辑。消息编辑部分包括输入框,用户A通过该输入框可以输入即时通讯消息。The message revocation instruction may be triggered by the user clicking on the "Recall" menu option corresponding to the instant messaging message to be revoked in the session record of the first instant messaging client. For example, suppose the first instant messaging client is as shown in FIG. 3. In FIG. 3, the first instant messaging client includes two parts: a session recording part and a message editing part. For example, the user of the first instant messaging client is the user A. The session recording part is used to present the instant messaging message sent by the user A to the other user(s), and is also used to present other users to the user A. Send an instant message. The message editing part is used to edit the instant messaging message sent by the user A to other users according to the editing instruction input by the user. The message editing section includes an input box through which user A can input an instant messaging message.
图3中,在用户A长按会话记录部分的即时通讯消息X时,在其正上方弹出对应的快捷菜单,该快捷菜单中包括对即时通讯消息进行“复制”、“转发”、“收藏”、“撤回”以及“删除”等菜单选项。具体地,当点击“撤回”菜单选项时,即可触发上述消 息撤回指令。In FIG. 3, when the user A presses the instant messaging message X of the session recording part, a corresponding shortcut menu pops up directly above the shortcut menu, and the shortcut menu includes “copying”, “forwarding”, “collection” of the instant messaging message. Menu options such as "Retract" and "Delete". Specifically, the above message revocation instruction can be triggered when the "Retract" menu option is clicked.
步骤220,根据消息撤回指令,从第一即时通讯客户端的会话记录中确定待撤回的即时通讯消息。Step 220: Determine, according to the message revocation instruction, the instant messaging message to be revoked from the session record of the first instant messaging client.
此处,具体可以是确定待撤回的即时通讯消息及其标识信息等。Here, specifically, it may be determined that the instant messaging message to be revoked, its identification information, and the like.
如前述例子,当消息撤回指令是由用户A点击即时通讯消息X上方的快捷菜单中的“撤回”菜单项触发时,可以确定待撤回的即时通讯消息为:即时通讯消息X及其标识信息。As the foregoing example, when the message revocation instruction is triggered by the user A clicking the "Recall" menu item in the shortcut menu above the instant messaging message X, it can be determined that the instant messaging message to be revoked is: the instant messaging message X and its identification information.
步骤230,向服务端发送消息撤回请求。Step 230, sending a message revocation request to the server.
该消息撤回请求用于指示服务端从第二即时通讯客户端中查找并删除即时通讯消息,第二即时通讯客户端是指已接收即时通讯消息的即时通讯客户端。The message revocation request is used to instruct the server to find and delete the instant messaging message from the second instant messaging client, and the second instant messaging client refers to the instant messaging client that has received the instant messaging message.
可以理解的是,本申请中的第二即时通讯客户端的个数可以根据用户A的聊天对象的个数来确定。举例来说,假设用户A通过第一即时通讯客户端在包含了N(N为正整数)个聊天对象的群组中发送即时通讯消息时,除第一即时通讯客户端之外的其余N-1个聊天对象对应的即时通讯客户端均可以接收该即时通讯消息。因此,第二即时通讯客户端的个数即为N-1个。It can be understood that the number of second instant messaging clients in the present application can be determined according to the number of chat objects of user A. For example, suppose user A sends an instant messaging message through a first instant messaging client in a group containing N (N is a positive integer) chat objects, except for the first instant messaging client. The instant messaging client corresponding to one chat object can receive the instant messaging message. Therefore, the number of second instant messaging clients is N-1.
步骤230中,消息撤回请求可以包括待撤回的即时通讯消息及其标识信息,如,可以包括即时通讯消息X及其标识信息。服务端在接收到消息撤回请求之后,可以根据标识信息,从数据库中查找对应的持久化存储记录。该持久化存储记录可以包括即时通讯消息的标识信息、即时通讯消息以及发送时间等信息。查找到对应的持久化存储记录之后,将该持久化存储记录删除。此处,删除持久化存储记录可以包括:修改对应的即时通讯消息的显示状态(如,将该即时通讯消息的显示状态修改为不显示状态),和/或,添加相应的删除标识(如,“撤回”或者“删除”等标识)。可以理解的是,对于显示状态为不显示状态或者已添加删除标识的即时通讯消息,其在对应的即时通讯客户端中不可见,或者添加有相应的删除标识。In step 230, the message revocation request may include an instant messaging message to be revoked and its identification information, for example, may include an instant messaging message X and its identification information. After receiving the message revocation request, the server can search for the corresponding persistent storage record from the database according to the identification information. The persistent storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a time of transmission. After the corresponding persistent storage record is found, the persistent storage record is deleted. Here, deleting the persistent storage record may include: modifying a display state of the corresponding instant messaging message (eg, modifying the display state of the instant messaging message to a non-display state), and/or adding a corresponding deletion identifier (eg, "Withdraw" or "delete" and other identifiers). It can be understood that, for an instant messaging message whose display state is not displayed or the deletion identifier has been added, it is not visible in the corresponding instant messaging client, or a corresponding deletion identifier is added.
此外,还可以根据标识信息,从离线消息列表和/或同步数据库(该同步数据库可以位于其它服务端)中,查找并删除该即时通讯消息。In addition, the instant messaging message can also be found and deleted from the offline message list and/or the synchronization database (which can be located in other servers) according to the identification information.
服务端在执行上述删除操作之时、之前或者之后,可以向第二即时通讯客户端发送消息撤回指示。该消息撤回指示可以包括待撤回的即时通讯消息及其标识信息。第二即时通讯客户端在接收到消息撤回指示之后,根据标识信息,从对应的会话记录中查找并删除即时通讯消息。此外,还可以根据标识信息,从本地数据库中查找并删除对应的存 储记录。该存储记录可以包括即时通讯消息的标识信息、即时通讯消息以及接收时间等信息。第二即时通讯客户端在执行完成上述删除操作之后,向服务端返回用于表示删除操作是否执行成功的操作结果消息。The server may send a message revocation indication to the second instant messaging client at the time before, before or after performing the above deletion operation. The message revocation indication may include an instant messaging message to be revoked and its identification information. After receiving the message revocation indication, the second instant messaging client searches for and deletes the instant messaging message from the corresponding session record according to the identification information. In addition, you can find and delete the corresponding storage records from the local database based on the identification information. The storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a receiving time. After performing the above deletion operation, the second instant messaging client returns an operation result message indicating whether the deletion operation is successful to the server.
服务端在接收到操作结果消息之后,若判断该操作结果消息为用于表示删除操作执行失败的消息,则向第一客户端返回用于表示即时通讯消息删除失败的响应结果消息。第一客户端在接收到该用于表示即时通讯消息删除失败的响应结果消息之后,不执行任何操作。After receiving the operation result message, if the server determines that the operation result message is a message indicating that the deletion operation fails to execute, the server returns a response result message indicating that the instant message deletion failed. The first client does not perform any operation after receiving the response result message indicating that the instant messaging message deletion has failed.
而当服务端判断该操作结果消息为用于表示删除操作执行成功的消息时,还可以判断其对持久化存储记录执行的删除操作以及对离线消息列表和/或同步数据库中的即时通讯消息执行的删除操作是否成功。若失败,则向第一客户端返回用于表示即时通讯消息删除失败的响应结果消息。否则,向第一客户端返回用于表示即时通讯消息删除成功的响应结果消息。When the server determines that the operation result message is a message indicating that the deletion operation is successful, it can also determine the deletion operation performed on the persistent storage record and execute the instant message in the offline message list and/or the synchronization database. Whether the delete operation was successful. If it fails, a response result message indicating that the instant message deletion failed is returned to the first client. Otherwise, a response result message indicating that the instant messaging message deletion is successful is returned to the first client.
可以理解的是,服务端向第一即时通讯客户端发送用于表示即时通讯消息删除成功的响应结果消息的前提条件包括:a,对即时通讯消息对应的持久化存储记录删除成功;b,对离线消息列表和同步数据库中的即时通讯消息删除成功;c,从第二即时通讯客户端接收到用于表示删除操作执行成功的操作结果消息。It can be understood that the preconditions for the server to send the response result message indicating that the instant messaging message is successfully deleted to the first instant messaging client includes: a, the persistent storage record corresponding to the instant messaging message is deleted successfully; b, The offline message list and the instant messaging message in the synchronization database are successfully deleted; c, and an operation result message indicating that the deletion operation is successful is received from the second instant messaging client.
当然,在实际应用中,若服务端不存在离线消息列表以及同步数据库,则可以只满足条件a和条件c。Of course, in practical applications, if the server does not have an offline message list and a synchronization database, only condition a and condition c can be satisfied.
步骤240,接收服务端发送的用于表示即时通讯消息删除成功的响应结果消息。Step 240: Receive a response result message sent by the server for indicating that the instant messaging message is successfully deleted.
在一种实现方式中,该用于表示即时通讯消息删除成功的响应结果消息可以包括:即时通讯消息删除成功的标识信息、即时通讯消息的标识信息以及即时通讯消息。In an implementation manner, the response result message used to indicate that the instant messaging message is successfully deleted may include: identifier information that the instant messaging message is successfully deleted, identification information of the instant messaging message, and an instant messaging message.
步骤250,根据响应结果消息,从会话记录中删除即时通讯消息,并在第一即时通讯客户端的输入框中呈现即时通讯消息。Step 250: Delete an instant messaging message from the session record according to the response result message, and present an instant messaging message in an input box of the first instant messaging client.
其中,步骤250具体可以包括:根据标识信息,从对应的会话记录中查找并删除即时通讯消息;从响应结果消息中获取即时通讯消息;在第一即时通讯客户端的输入框中呈现获取的即时通讯消息。此外,第一即时通讯客户端还可以根据标识信息,从本地数据库中查找并删除即时通讯消息的存储记录,该存储记录可以包括即时通讯消息的标识信息、即时通讯消息以及接收时间等信息。The step 250 may specifically include: searching and deleting an instant messaging message from the corresponding session record according to the identification information; obtaining an instant messaging message from the response result message; and presenting the obtained instant messaging in an input box of the first instant messaging client Message. In addition, the first instant messaging client can also find and delete the storage record of the instant messaging message from the local database according to the identification information, and the storage record can include information such as identification information of the instant messaging message, instant messaging message, and receiving time.
需要说明的是,对上述在第一即时通讯客户端的输入框中呈现的即时通讯消息,可以将该即时通讯消息设置为选中状态。以供用户A进行编辑,如果要删除直接按一下删 除键即可,需要进去编辑就手动定位光标。这大大提高了已撤回的即时通讯消息的输入效率。It should be noted that, for the instant messaging message presented in the input box of the first instant messaging client, the instant messaging message may be set to the selected state. For user A to edit, if you want to delete, just click the delete button, you need to go to edit to manually position the cursor. This greatly improves the input efficiency of the recalled instant messaging messages.
以图3为例来说,当对图3中的即时通讯消息X执行撤销操作之后,图3中消息编辑部分的输入框可以如图4所示,即输入框中呈现即时通讯消息X,且即时通讯消息X为选中状态。图4中,用户A通过手动定位光标即可实现对即时通讯消息X中的部分文字或者字符进行修改。之后,再把更正好的即时通讯消息X发送出去,不用重新把整个即时通讯消息X都重新输入一遍。从而提升了用户的体验。Taking FIG. 3 as an example, after performing the undo operation on the instant messaging message X in FIG. 3, the input box of the message editing portion in FIG. 3 may be as shown in FIG. 4, that is, the instant messaging message X is presented in the input box, and The instant messaging message X is selected. In FIG. 4, the user A can modify part of the text or characters in the instant messaging message X by manually positioning the cursor. After that, the corrected instant messaging message X is sent out without re-entering the entire instant messaging message X. Thereby improving the user experience.
图5为本申请另一实施例提供的即时通讯消息撤回方法流程图,所述方法的执行主体可以为图1中的服务端,如图5所示,所述方法具体可以包括:FIG. 5 is a flowchart of a method for resuming an instant messaging message according to another embodiment of the present application. The executor of the method may be the server in FIG. 1 . As shown in FIG. 5 , the method may specifically include:
步骤510,接收第一即时通讯客户端发送的消息撤回请求。Step 510: Receive a message revocation request sent by the first instant messaging client.
该消息撤回请求包括待撤回的即时通讯消息。此外,还可以包括待撤回的即时通讯消息的标识信息。The message revocation request includes an instant message to be revoked. In addition, the identification information of the instant messaging message to be revoked may also be included.
此处,服务端在接收第一即时通讯客户端发送的消息撤回请求之前,可以先接收用户输入的消息撤回指令。该消息撤回指令可以是由用户点击第一即时通讯客户端的会话记录中的待撤回的即时通讯消息所对应“撤回”菜单选项触发。之后,根据消息撤回指令,从对应的会话记录中确定待撤回的即时通讯消息。Here, the server may receive the message revocation instruction input by the user before receiving the message revocation request sent by the first instant messaging client. The message revocation instruction may be triggered by the user clicking on the "Recall" menu option corresponding to the instant messaging message to be revoked in the session record of the first instant messaging client. Then, according to the message revocation instruction, the instant messaging message to be revoked is determined from the corresponding session record.
步骤520,根据消息撤回请求,从对应的存储单元中查找并删除即时通讯消息。Step 520: Find and delete an instant messaging message from the corresponding storage unit according to the message revocation request.
服务端在接收到消息撤回请求之后,可以根据标识信息,从数据库中查找对应的持久化存储记录。该持久化存储记录可以包括即时通讯消息的标识信息、即时通讯消息以及发送时间等信息。查找到对应的持久化存储记录之后,将该持久化存储记录删除。此外,还可以根据标识信息,从离线消息列表和/或同步数据库(该同步数据库可以位于其它服务端)中,查找并删除该即时通讯消息。After receiving the message revocation request, the server can search for the corresponding persistent storage record from the database according to the identification information. The persistent storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a time of transmission. After the corresponding persistent storage record is found, the persistent storage record is deleted. In addition, the instant messaging message can also be found and deleted from the offline message list and/or the synchronization database (which can be located in other servers) according to the identification information.
步骤530,向第二即时通讯客户端发送消息撤回指示。Step 530: Send a message revocation indication to the second instant messaging client.
该消息撤回指示用于指示第二即时通讯客户端查找并删除即时通讯消息,此处的第二即时通讯客户端是指已接收即时通讯消息的即时通讯客户端。The message revocation indication is used to instruct the second instant messaging client to find and delete the instant messaging message, where the second instant messaging client refers to the instant messaging client that has received the instant messaging message.
服务端在执行上述删除操作之时、之前或者之后,可以向第二即时通讯客户端发送消息撤回指示。该消息撤回指示可以包括待撤回的即时通讯消息及其标识信息。第二即时通讯客户端在接收到消息撤回指示之后,根据标识信息,从对应的会话记录中查找并删除即时通讯消息。此外,还可以根据标识信息,从本地数据库中查找并删除对应的存储记录。该存储记录可以包括即时通讯消息的标识信息、即时通讯消息以及接收时间等 信息。The server may send a message revocation indication to the second instant messaging client at the time before, before or after performing the above deletion operation. The message revocation indication may include an instant messaging message to be revoked and its identification information. After receiving the message revocation indication, the second instant messaging client searches for and deletes the instant messaging message from the corresponding session record according to the identification information. In addition, the corresponding storage record can be found and deleted from the local database according to the identification information. The storage record may include information such as identification information of an instant messaging message, an instant messaging message, and a time of reception.
步骤540,接收第二即时通讯客户端返回的用于表示删除操作是否执行成功的操作结果信息。Step 540: Receive operation result information returned by the second instant messaging client to indicate whether the deletion operation is successful.
第二即时通讯客户端在执行完成上述删除操作之后,向服务端返回用于表示删除操作是否执行成功的操作结果消息。After performing the above deletion operation, the second instant messaging client returns an operation result message indicating whether the deletion operation is successful to the server.
步骤550,根据操作结果消息,指示第一即时通讯客户端从对应的会话记录中删除即时通讯消息,并在对应的输入框中呈现即时通讯消息。Step 550: Instruct the first instant messaging client to delete the instant messaging message from the corresponding session record according to the operation result message, and present an instant messaging message in the corresponding input box.
服务端在接收到操作结果消息之后,若判断该操作结果消息为用于表示删除操作执行失败的消息,则向第一客户端返回用于表示即时通讯消息删除失败的响应结果消息。第一客户端在接收到该用于表示即时通讯消息删除失败的响应结果消息之后,不执行任何操作。After receiving the operation result message, if the server determines that the operation result message is a message indicating that the deletion operation fails to execute, the server returns a response result message indicating that the instant message deletion failed. The first client does not perform any operation after receiving the response result message indicating that the instant messaging message deletion has failed.
而当服务端判断该操作结果消息为用于表示删除操作执行成功的消息时,还可以判断其对持久化存储记录执行的删除操作以及对离线消息列表和/或同步数据库中的即时通讯消息执行的删除操作是否成功。若失败,则向第一客户端返回用于表示即时通讯消息删除失败的响应结果消息。否则,向第一客户端返回用于表示即时通讯消息删除成功的响应结果消息。When the server determines that the operation result message is a message indicating that the deletion operation is successful, it can also determine the deletion operation performed on the persistent storage record and execute the instant message in the offline message list and/or the synchronization database. Whether the delete operation was successful. If it fails, a response result message indicating that the instant message deletion failed is returned to the first client. Otherwise, a response result message indicating that the instant messaging message deletion is successful is returned to the first client.
在一种实现方式中,该用于表示即时通讯消息删除成功的响应结果消息可以包括:即时通讯消息删除成功的标识信息、即时通讯消息的标识信息以及即时通讯消息。In an implementation manner, the response result message used to indicate that the instant messaging message is successfully deleted may include: identifier information that the instant messaging message is successfully deleted, identification information of the instant messaging message, and an instant messaging message.
服务端在接收到用于表示即时通讯消息删除成功的响应结果消息之后,根据标识信息,从对应的会话记录中查找并删除即时通讯消息;从响应结果消息中获取即时通讯消息;在第一即时通讯客户端的输入框中呈现获取的即时通讯消息。此外,第一即时通讯客户端还可以根据标识信息,从本地数据库中查找并删除即时通讯消息的存储记录,该存储记录可以包括即时通讯消息的标识信息、即时通讯消息以及接收时间等信息。After receiving the response result message indicating that the instant messaging message is successfully deleted, the server finds and deletes the instant messaging message from the corresponding session record according to the identification information; and obtains the instant messaging message from the response result message; The obtained instant messaging message is presented in the input box of the communication client. In addition, the first instant messaging client can also find and delete the storage record of the instant messaging message from the local database according to the identification information, and the storage record can include information such as identification information of the instant messaging message, instant messaging message, and receiving time.
需要说明的是,对上述在第一即时通讯客户端的输入框中呈现的即时通讯消息,可以将该即时通讯消息设置为选中状态。以供用户A进行编辑,如果要删除直接按一下删除键即可,需要进去编辑就手动定位光标。这大大提高了已撤回的即时通讯消息的输入效率。It should be noted that, for the instant messaging message presented in the input box of the first instant messaging client, the instant messaging message may be set to the selected state. For user A to edit, if you want to delete directly press the delete button, you need to go to edit to manually position the cursor. This greatly improves the input efficiency of the recalled instant messaging messages.
图6本申请一种实施例提供的即时通讯消息修改方法流程图,所述方法的执行主体可以为图1中的第一即时通讯客户端,如图6所示,所述方法具体可以包括:FIG. 6 is a flowchart of a method for modifying an instant messaging message according to an embodiment of the present application. The executor of the method may be the first instant messaging client in FIG. 1 . As shown in FIG. 6 , the method may specifically include:
步骤610,对选中的即时通讯消息,接收对即时通讯消息的消息获取指令。Step 610: Receive a message acquisition instruction for the instant messaging message for the selected instant messaging message.
在一种实现方式中,可以通过如下步骤来选中即时通讯消息:接收消息选择指令,此处的消息选择指令可以由用户长按待修改的即时通讯消息触发。根据消息选择指令,从第一即时通讯客户端的会话记录中选中相应的即时通讯消息。In an implementation manner, the instant messaging message may be selected by receiving a message selection instruction, where the message selection instruction may be triggered by the user long pressing the instant messaging message to be modified. According to the message selection instruction, the corresponding instant messaging message is selected from the session record of the first instant messaging client.
如图3中,当用户长按“即时通讯消息X”时,该“即时通讯消息X”即处于选中状态。在该“即时通讯消息X”处于选中状态时,其正上方会弹出对应的快捷菜单。在一种实现方式中,图3中的快捷菜单中还可以包括“将所选中消息内容加入输入框”的菜单选项。在图3的快捷菜单中还包括“将所选中消息内容加入输入框”的菜单选项时,上述消息获取指令可以由用户点击该菜单选项触发。As shown in FIG. 3, when the user long presses "instant messaging message X", the "instant messaging message X" is selected. When the "instant messaging message X" is selected, the corresponding shortcut menu will pop up directly above it. In an implementation manner, the shortcut menu in FIG. 3 may further include a menu option of “adding the selected message content to the input box”. When the menu item of "Adding the selected message content to the input box" is further included in the shortcut menu of FIG. 3, the above message acquisition instruction can be triggered by the user clicking the menu option.
需要说明的是,对于上述“将所选中消息内容加入输入框”的菜单选项,还可以为其设置相应的快捷操作按键,如“Ctrl+U”等。当该菜单选项还设置有相应的快捷操作按键时,上述消息获取指令也可以由用户按压该快捷操作按键触发,如,当用户按压“Ctrl+U”时,即可触发上述消息获取指令。It should be noted that, for the above menu option of “adding the selected message content to the input box”, it is also possible to set corresponding shortcut operation buttons, such as “Ctrl+U”. When the menu option is further provided with a corresponding shortcut operation button, the message acquisition instruction may also be triggered by the user pressing the shortcut operation button. For example, when the user presses “Ctrl+U”, the message acquisition instruction may be triggered.
当然,在实际应用中,上述“将所选中消息内容加入输入框”的菜单选项还可以包括在另外的快捷菜单中,该快捷菜单可以是由用户通过大于阈值的按压压力按压选中的即时通讯消息触发。此外,该菜单选项的名称也可以命名为其它名称,本申请对此不作限定。Of course, in practical applications, the above menu option of “adding the selected message content to the input box” may also be included in another shortcut menu, which may be that the user presses the selected instant messaging message by pressing pressure greater than the threshold. trigger. In addition, the name of the menu option may also be named as another name, which is not limited in this application.
步骤620,根据消息获取指令,在第一即时通讯客户端的输入框中呈现即时通讯消息。Step 620: Present an instant messaging message in an input box of the first instant messaging client according to the message obtaining instruction.
如前述例子中,当接收到对“即时通讯消息X”的消息获取指令时,图3所示的第一即时通讯客户端可以如图7所示。图7中,输入框中呈现了“即时通讯消息X”。As in the foregoing example, when receiving a message acquisition instruction for "instant messaging message X", the first instant messaging client shown in FIG. 3 can be as shown in FIG. In Figure 7, the "instant messaging message X" is presented in the input box.
步骤630,接收对输入框中呈现的即时通讯消息的消息修改指令,根据消息修改指令,对输入框中呈现的即时通讯消息进行修改。Step 630: Receive a message modification instruction for the instant messaging message presented in the input box, and modify the instant messaging message presented in the input box according to the message modification instruction.
图7中,当用户对输入框中的“即时通讯消息X”进行修改时,第一即时通讯客户端就可以接收到消息修改指令。之后根据接收的消息修改指令,可以将“即时通讯消息X”修改为“即时通讯消息Y”。In FIG. 7, when the user modifies the "instant messaging message X" in the input box, the first instant messaging client can receive the message modification instruction. Then, according to the received message modification instruction, the "instant messaging message X" can be modified to "instant messaging message Y".
可选地,在对第一即时通讯客户端的输入框中的即时通讯消息修改之后,还可以包括如下步骤:Optionally, after modifying the instant messaging message in the input box of the first instant messaging client, the method may further include the following steps:
步骤A,接收修改消息的发送指令。Step A, receiving a sending instruction of the modified message.
该修改消息的发送指令可以由用户点击“发送”按钮触发。The send command of the modified message can be triggered by the user clicking the "send" button.
步骤B,根据发送指令,向服务端发送消息修改请求。Step B: Send a message modification request to the server according to the sending instruction.
该消息修改请求用于指示服务端从第二即时通讯客户端中查找并删除即时通讯消息,并向第二即时通讯客户端发送修改后的即时通讯消息,第二即时通讯客户端是指已接收即时通讯消息的即时通讯客户端。The message modification request is used to instruct the server to find and delete the instant messaging message from the second instant messaging client, and send the modified instant messaging message to the second instant messaging client, where the second instant messaging client refers to the received instant messaging message. Instant messaging client for instant messaging.
此处的消息修改请求可以包括修改前的即时通讯消息及其标识信息以及修改后的即时通讯消息。服务端在接收到消息修改请求之后,从第二即时通讯客户端中查找并删除即时通讯消息的过程可参见步骤230所述,在此不复赘述。需要说明的是,如步骤230所述,服务端在接收到第二即时通讯客户端发送的用于表示删除操作执行成功的操作结果消息之后,并且判断其对持久化存储记录执行的删除操作以及对离线消息列表和/或同步数据库中的即时通讯消息执行的删除操作成功之后,可以向第二即时通讯客户端发送修改后的即时通讯消息。从而第二即时通讯客户端的会话记录中会呈现修改后的即时通讯消息。此外,已删除的即时通讯消息会被替换为第一通知消息,该第一通知消息可以为任一用于通知即时通讯消息被删除的信息,如,其可以为“××撤回了一条消息”。举例来说,第二即时通讯客户端可以如图8b或者9b所示。The message modification request here may include the instant messaging message and its identification information before modification and the modified instant messaging message. After the server receives the message modification request, the process of searching for and deleting the instant messaging message from the second instant messaging client may be as described in step 230, and details are not described herein. It should be noted that, as described in step 230, after receiving the operation result message sent by the second instant messaging client to indicate that the deletion operation is successful, the server determines the deletion operation performed on the persistent storage record and After the deletion operation performed on the offline message list and/or the instant messaging message in the synchronization database is successful, the modified instant messaging message may be sent to the second instant messaging client. Thus, the modified instant messaging message is presented in the session record of the second instant messaging client. In addition, the deleted instant messaging message is replaced with a first notification message, which may be any information for notifying that the instant messaging message is deleted, for example, it may be “××retracted a message” . For example, the second instant messaging client can be as shown in Figure 8b or 9b.
步骤C,接收服务端发送的用于表示修改消息发送成功的响应结果消息。Step C: Receive a response result message sent by the server to indicate that the modification message is successfully sent.
服务端在判断已成功向第二即时通讯客户端发送修改后的即时通讯消息之后,可以向第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。After determining that the modified instant messaging message is successfully sent to the second instant messaging client, the server may send a response result message indicating that the modified message is successfully sent to the first instant messaging client.
步骤D,根据响应结果消息,将会话记录中的即时通讯消息替换为第一通知消息,并在会话记录中呈现修改后的即时通讯消息。Step D: Replace the instant messaging message in the session record with the first notification message according to the response result message, and present the modified instant messaging message in the session record.
如前述例子中,在将图3中的“即时通讯消息X”修改为“即时通讯消息Y”之后,图3所示的第一即时通讯客户端可以如图8a所示。图8a中,“即时通讯消息X”被替换为“你撤回了一条消息”,并且在“即时通讯消息X”的下一位置呈现“即时通讯消息Y”。As in the foregoing example, after the "instant messaging message X" in FIG. 3 is modified to "instant messaging message Y", the first instant messaging client shown in FIG. 3 can be as shown in FIG. 8a. In Fig. 8a, "Immediate Message X" is replaced with "You have withdrawn a message" and "IM Message Y" is presented at the next position of "IM Message X".
可选地,上述步骤D也可以替换为步骤E:根据响应结果消息,将会话记录中的即时通讯消息替换为修改后的即时通讯消息,并为修改后的即时通讯消息添加第一标识信息。Optionally, the step D may be replaced by the step E: replacing the instant messaging message in the session record with the modified instant messaging message according to the response result message, and adding the first identification information to the modified instant messaging message.
如前述例子中,在将图3中的“即时通讯消息X”修改为“即时通讯消息Y”之后,图3所示的第一即时通讯客户端可以如图9a所示。图9a中,“即时通讯消息X”被替换为“即时通讯消息Y”,且在“即时通讯消息Y”的左侧添加“已修改”的第一标识信息。As in the foregoing example, after the "instant messaging message X" in FIG. 3 is modified to "instant messaging message Y", the first instant messaging client shown in FIG. 3 can be as shown in FIG. 9a. In Fig. 9a, "instant messaging message X" is replaced with "instant messaging message Y", and the first modified information of "modified" is added to the left of "instant messaging message Y".
需要说明的是,图9a只是示例性说明,在实际应用中,上述第一标识信息可以为任 一用于表示即时通讯消息被修改过的信息,如,其可以不限于为文字信息,还可以为特殊符号,如“@、#以及&”等。此外,第一标识信息也可以呈现在其它位置,如,呈现在即时通讯消息的上方、下方或右侧等,本申请对此不作限定。It should be noted that FIG. 9a is only an exemplary description. In an actual application, the foregoing first identifier information may be any information used to indicate that the instant messaging message has been modified, for example, it may not be limited to text information, and may also be For special symbols, such as "@, #, and &". In addition, the first identification information may also be presented in other locations, such as being presented above, below or to the right of the instant messaging message, and the like.
此外,在对即时通讯消息修改之后,也可以不撤回该即时通讯消息,而是在该即时通讯消息的相邻位置呈现修改后的即时通讯消息。可以理解的是,在不撤回即时通讯消息的情况下,在待修改的即时通讯消息可以为会话记录中的任一即时通讯消息,而不用限制为最近一条即时通讯消息。其具体可以通过如下步骤来实现:In addition, after modifying the instant messaging message, the instant messaging message may not be revoked, but the modified instant messaging message is presented at an adjacent location of the instant messaging message. It can be understood that, in the case that the instant messaging message is not withdrawn, the instant messaging message to be modified can be any instant messaging message in the session record, and is not limited to the latest one instant messaging message. The specifics can be achieved by the following steps:
步骤a,接收修改消息的发送指令。Step a, receiving a sending instruction of the modified message.
步骤b,根据发送指令,向服务端发送消息修改请求。Step b: Send a message modification request to the server according to the sending instruction.
该消息修改请求用于指示服务端向第二即时通讯客户端发送修改后的即时通讯消息,第二即时通讯客户端是指已接收即时通讯消息的即时通讯客户端。The message modification request is used to instruct the server to send the modified instant messaging message to the second instant messaging client, and the second instant messaging client refers to the instant messaging client that has received the instant messaging message.
此处的消息修改请求可以包括修改前的即时通讯消息及其标识信息以及修改后的即时通讯消息。服务端在接收到消息修改请求之后,向第二即时通讯客户端发送消息修改指示,该消息修改指示可以包括修改前的即时通讯消息及其标识信息以及修改后的即时通讯消息。第二即时通讯客户端可以根据标识信息,从会话记录中查找修改前的即时通讯消息,在该即时通讯消息的相邻位置呈现修改后的即时通讯消息,并为修改后的即时通讯消息添加第二标识信息。该第二标识信息可以为任一用于表示修改后的即时通讯消息为修改的、替代的即时通讯消息的信息。举例来说,第二即时通讯客户端可以如图10b所示。The message modification request here may include the instant messaging message and its identification information before modification and the modified instant messaging message. After receiving the message modification request, the server sends a message modification indication to the second instant messaging client, where the message modification indication may include the instant messaging message and the identification information thereof and the modified instant messaging message. The second instant messaging client can search for the instant messaging message before the modification from the session record according to the identification information, present the modified instant messaging message in the adjacent location of the instant messaging message, and add the first instant message to the modified instant messaging message. Two identification information. The second identification information may be any information indicating that the modified instant messaging message is a modified, alternate instant messaging message. For example, the second instant messaging client can be as shown in Figure 10b.
步骤c,接收服务端发送的用于表示修改消息发送成功的响应结果消息。Step c: Receive a response result message sent by the server for indicating that the modification message is successfully sent.
服务端在判断已成功向第二即时通讯客户端发送修改后的即时通讯消息之后,可以向第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。After determining that the modified instant messaging message is successfully sent to the second instant messaging client, the server may send a response result message indicating that the modified message is successfully sent to the first instant messaging client.
步骤d,根据响应结果消息,在会话记录中的即时通讯消息的相邻位置呈现修改后的即时通讯消息,并为修改后的即时通讯消息添加第二标识信息。Step d, according to the response result message, presenting the modified instant messaging message in an adjacent location of the instant messaging message in the session record, and adding the second identification information to the modified instant messaging message.
如前述例子中,在将图3中的“即时通讯消息X”修改为“即时通讯消息Y”之后,图3所示的第一即时通讯客户端可以如图10a所示。图10a中,“即时通讯消息X”的下一位置呈现“即时通讯消息Y”,且在“即时通讯消息Y”的左侧添加“已修改”的第二标识信息。As in the foregoing example, after the "instant messaging message X" in FIG. 3 is modified to "instant messaging message Y", the first instant messaging client shown in FIG. 3 can be as shown in FIG. 10a. In FIG. 10a, the next location of "instant messaging message X" presents "instant messaging message Y", and the second modified information of "modified" is added to the left of "instant messaging message Y".
需要说明的是,图10a只是示例性说明,在实际应用中,上述第二标识信息可以为任一用于表示修改后的即时通讯消息为修改的、替代的即时通讯消息的信息,如,其可 以不限于为文字信息,还可以为特殊符号,如“@、#以及&”等。此外,第二标识信息也可以呈现在其它位置,如,呈现在即时通讯消息的上方、下方或右侧等,本申请对此不作限定。It should be noted that FIG. 10a is only an exemplary description. In an actual application, the second identifier information may be any information indicating that the modified instant messaging message is a modified, alternate instant messaging message, eg, It can be not limited to text information, but also special symbols such as "@, #, and &". In addition, the second identification information may also be presented in other locations, such as being presented above, below, or on the right side of the instant messaging message, which is not limited in this application.
还需要说明的是,图10a中,修改后的即时通讯消息的呈现位置,也不限于为下一位置,还可以为其它位置,如,修改后的即时通讯消息与下一位置的中间位置,本申请对此不作限定。It should be noted that, in FIG. 10a, the presentation position of the modified instant messaging message is not limited to the next location, and may also be other locations, such as the intermediate position of the modified instant messaging message and the next location. This application does not limit this.
图11为本申请另一种实施例提供的即时通讯消息修改方法流程图,所述方法的执行主体可以为图1中的第二即时通讯客户端,如图11所示,所述方法具体可以包括:FIG. 11 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application. The execution body of the method may be the second instant messaging client in FIG. 1 , as shown in FIG. 11 , the method may specifically include:
步骤1110,接收服务端发送的消息修改指示。Step 1110: Receive a message modification indication sent by the server.
该消息修改指示可以包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息。The message modification indication may include identification information of the instant messaging message before modification and the modified instant messaging message.
步骤1120,根据标识信息,从第二即时通讯客户端的会话记录中查找修改前的即时通讯消息。Step 1120: Search for the instant messaging message before the modification from the session record of the second instant messaging client according to the identification information.
如图3中,可以根据标识信息,查找到“即时通讯消息X”。As shown in FIG. 3, "instant messaging message X" can be found according to the identification information.
步骤1130,将会话记录中的修改前的即时通讯消息替换为第一通知消息,并在会话记录中呈现修改后的即时通讯消息;或者,Step 1130, replacing the pre-modified instant messaging message in the session record with the first notification message, and presenting the modified instant messaging message in the session record; or
将会话记录中的修改前的即时通讯消息替换为修改后的即时通讯消息,并为修改后的即时通讯消息添加第一标识信息;或者,Substituting the modified instant messaging message in the session record with the modified instant messaging message, and adding the first identification information to the modified instant messaging message; or
在会话记录中的修改前的即时通讯消息的相邻位置呈现修改后的即时通讯消息,并为修改后的即时通讯消息添加第二标识信息。The modified instant messaging message is presented at an adjacent location of the instant messaging message before the modification in the session record, and the second identification information is added to the modified instant messaging message.
在执行上述步骤1130之后,第二即时通讯客户端可以分别如图8b、图9b以及图10b所示。After performing step 1130 above, the second instant messaging client can be as shown in Figures 8b, 9b, and 10b, respectively.
图12为本申请再一种实施例提供的即时通讯消息修改方法流程图,所述方法的执行主体可以为图1中的服务端,如图12所示,所述方法具体可以包括:FIG. 12 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application. The executor of the method may be the server in FIG. 1 . As shown in FIG. 12 , the method may specifically include:
步骤1210,接收第一即时通讯客户端发送的消息修改请求。Step 1210: Receive a message modification request sent by the first instant messaging client.
该消息修改请求可以包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息。The message modification request may include identification information of the instant messaging message before modification and the modified instant messaging message.
步骤1220,根据标识信息,从对应的存储单元中查找修改前的即时通讯消息,并修改修改前的即时通讯消息的显示状态和/或添加相应的删除标识。Step 1220: Search for the instant messaging message before the modification from the corresponding storage unit according to the identification information, and modify the display state of the instant messaging message before the modification and/or add the corresponding deletion identifier.
修改修改前的即时通讯消息的显示状态(如,将修改前的即时通讯消息的显示状态 修改为不显示状态),和/或,添加相应的删除标识(如,“撤回”或者“删除”等标识)。可以理解的是,对于显示状态为不显示状态或者已添加删除标识的修改的即时通讯消息,其在对应的即时通讯客户端中不可见,或者添加有相应的删除标识。Modify the display status of the instant messaging message before modification (for example, modify the display status of the instant messaging message before modification to the non-display state), and/or add the corresponding deletion identifier (eg, "Retract" or "Delete", etc. Identification). It can be understood that, for the modified instant messaging message whose display state is not displayed or the deletion identifier has been added, it is not visible in the corresponding instant messaging client, or a corresponding deletion identifier is added.
步骤1230,向第二即时通讯客户端发送消息修改指示。Step 1230: Send a message modification indication to the second instant messaging client.
第二即时通讯客户端是指已接收修改前的即时通讯消息的即时通讯客户端。消息修改指示用于指示第二即时通讯客户端从会话记录中查找修改前的即时通讯消息,将修改前的即时通讯消息替换为第一通知消息,并在会话记录中呈现修改后的即时通讯消息;或者,The second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification. The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, replace the instant messaging message before the modification with the first notification message, and present the modified instant messaging message in the session record. ;or,
消息修改指示用于指示第二即时通讯客户端从会话记录中查找修改前的即时通讯消息,将修改前的即时通讯消息替换为修改后的即时通讯消息,并为修改后的即时通讯消息添加第一标识信息。The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, replace the instant messaging message before the modification with the modified instant messaging message, and add the first message to the modified instant messaging message. An identification information.
步骤1240,向第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。Step 1240: Send a response result message indicating that the modification message is successfully sent to the first instant messaging client.
图13本申请又一种实施例提供的即时通讯消息修改方法流程图,所述方法的执行主体可以为图1中的服务端,如图13所示,所述方法具体可以包括:FIG. 13 is a flowchart of a method for modifying an instant messaging message according to another embodiment of the present application. The executor of the method may be the server in FIG. 1 . As shown in FIG. 13 , the method may specifically include:
步骤1310,接收第一即时通讯客户端发送的消息修改请求。Step 1310: Receive a message modification request sent by the first instant messaging client.
该消息修改请求可以包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息。The message modification request may include identification information of the instant messaging message before modification and the modified instant messaging message.
步骤1320,向第二即时通讯客户端发送消息修改指示。Step 1320: Send a message modification indication to the second instant messaging client.
该第二即时通讯客户端是指已接收修改前的即时通讯消息的即时通讯客户端。该消息修改指示用于指示第二即时通讯客户端从会话记录中查找修改前的即时通讯消息,在修改前的即时通讯消息的相邻位置呈现修改后的即时通讯消息,并为修改后的即时通讯消息添加第二标识信息。The second instant messaging client refers to an instant messaging client that has received the instant messaging message before modification. The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, and present the modified instant message in the adjacent position of the instant messaging message before the modification, and the modified instant message is the modified instant message. The communication message adds the second identification information.
步骤1330,向第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。Step 1330: Send a response result message indicating that the modification message is successfully sent to the first instant messaging client.
与上述即时通讯消息撤回方法对应地,本申请实施例还提供的一种即时通讯客户端,如图14所示,该即时通讯客户端包括:Corresponding to the foregoing instant messaging message revocation method, an instant messaging client is also provided in the embodiment of the present application. As shown in FIG. 14, the instant messaging client includes:
接收单元1401,用于接收消息撤回指令。The receiving
确定单元1402,用于根据接收单元1401接收的消息撤回指令,从即时通讯客户端的会话记录中确定待撤回的即时通讯消息。The determining unit 1402 is configured to determine, according to the message revocation instruction received by the receiving
发送单元1403,用于向服务端发送消息撤回请求,该消息撤回请求用于指示服务端从第二即时通讯客户端中查找并删除即时通讯消息,第二即时通讯客户端是指已接收即 时通讯消息的即时通讯客户端。The sending unit 1403 is configured to send a message revocation request to the server, where the message revocation request is used to instruct the server to find and delete the instant messaging message from the second instant messaging client, and the second instant messaging client refers to the received instant messaging The instant messaging client for the message.
接收单元1401,还用于接收服务端发送的用于表示即时通讯消息删除成功的响应结果消息。The receiving
处理单元1404,用于根据接收单元1401接收的响应结果消息,从会话记录中删除即时通讯消息,并在即时通讯客户端的输入框中呈现即时通讯消息。The
可选地,该即时通讯客户端还可以包括:Optionally, the instant messaging client may further include:
设置单元1405,用于将即时通讯客户端的输入框中呈现的即时通讯消息设置为选中状态。The setting unit 1405 is configured to set an instant messaging message presented in an input box of the instant messaging client to a selected state.
可选地,响应结果消息可以包括即时通讯消息的标识信息以及即时通讯消息。Optionally, the response result message may include identification information of the instant messaging message and an instant messaging message.
处理单元1404具体可以用于:The
根据标识信息,从会话记录中查找并删除即时通讯消息。Find and delete instant messaging messages from the session record based on the identification information.
从响应结果消息中获取即时通讯消息。Get instant messaging messages from the response result message.
在即时通讯客户端的输入框中呈现获取的即时通讯消息。The obtained instant messaging message is presented in the input box of the instant messaging client.
可选地,处理单元1404,还可以用于根据响应结果消息,从本地数据库中查找并删除即时通讯消息。Optionally, the
本申请实施例装置的各功能模块的功能,可以通过上述方法实施例的各步骤来实现,因此,本申请提供的装置的具体工作过程,在此不复赘述。The functions of the functional modules of the device in the embodiment of the present application can be implemented by the steps of the foregoing method embodiments. Therefore, the specific working process of the device provided by the present application is not described herein.
本申请提供的即时通讯客户端,接收单元1401接收消息撤回指令。确定单元1402根据消息撤回指令,从即时通讯客户端的会话记录中确定待撤回的即时通讯消息。发送单元1403向服务端发送消息撤回请求。接收单元1401接收服务端发送的用于表示即时通讯消息删除成功的响应结果消息。处理单元1404根据响应结果消息,从会话记录中删除即时通讯消息,并在即时通讯客户端的输入框中呈现即时通讯消息。由此,可以提高已撤回的即时通讯消息的输入效率。The instant messaging client provided by the present application, the receiving
与上述即时通讯消息撤回方法对应地,本申请实施例还提供的一种服务端,如图15所示,该服务端包括:Corresponding to the foregoing instant messaging message revocation method, a server provided by the embodiment of the present application is as shown in FIG. 15 , and the server includes:
接收单元1501,用于接收第一即时通讯客户端发送的消息撤回请求,该消息撤回请求包括待撤回的即时通讯消息。The receiving unit 1501 is configured to receive a message revocation request sent by the first instant messaging client, where the message revocation request includes an instant messaging message to be revoked.
处理单元1502,用于根据接收单元1501接收的消息撤回请求,从对应的存储单元中查找并删除即时通讯消息。The processing unit 1502 is configured to search for and delete an instant messaging message from the corresponding storage unit according to the message revocation request received by the receiving unit 1501.
发送单元1503,用于向第二即时通讯客户端发送消息撤回指示,该消息撤回指示用 于指示第二即时通讯客户端查找并删除即时通讯消息,第二即时通讯客户端是指已接收即时通讯消息的即时通讯客户端。The sending unit 1503 is configured to send a message revocation indication to the second instant messaging client, where the message revocation indication is used to instruct the second instant messaging client to find and delete the instant messaging message, and the second instant messaging client refers to the received instant messaging message. The instant messaging client for the message.
接收单元1501,还用于接收第二即时通讯客户端返回的用于表示删除操作执行成功的操作结果信息。The receiving unit 1501 is further configured to receive, by the second instant messaging client, operation result information indicating that the deletion operation is successful.
指示单元1504,用于根据接收单元1501接收的操作结果信息,指示第一即时通讯客户端从对应的会话记录中删除所述即时通讯消息,并在对应的输入框中呈现即时通讯消息。The indicating
本申请实施例装置的各功能模块的功能,可以通过上述方法实施例的各步骤来实现,因此,本申请提供的装置的具体工作过程,在此不复赘述。The functions of the functional modules of the device in the embodiment of the present application can be implemented by the steps of the foregoing method embodiments. Therefore, the specific working process of the device provided by the present application is not described herein.
本申请提供的服务端,接收单元1501接收第一即时通讯客户端发送的消息撤回请求。处理单元1502根据消息撤回请求,从对应的存储单元中查找并删除即时通讯消息。发送单元1503向第二即时通讯客户端发送消息撤回指示。接收单元1501接收第二即时通讯客户端返回的用于表示删除操作执行成功的操作结果信息。指示单元1504根据操作结果信息,指示第一即时通讯客户端从对应的会话记录中删除所述即时通讯消息,并在对应的输入框中呈现即时通讯消息。由此,可以提高已撤回的即时通讯消息的输入效率。The server provided by the application receives the message revocation request sent by the first instant messaging client. The processing unit 1502 searches for and deletes the instant messaging message from the corresponding storage unit according to the message revocation request. The sending unit 1503 sends a message revocation indication to the second instant messaging client. The receiving unit 1501 receives the operation result information returned by the second instant messaging client for indicating that the deletion operation is successful. The
与上述即时通讯消息修改方法对应地,本申请实施例还提供的一种即时通讯客户端,如图16所示,该即时通讯客户端包括:Corresponding to the above-mentioned instant messaging message modification method, an instant messaging client is also provided in the embodiment of the present application. As shown in FIG. 16, the instant messaging client includes:
接收单元1601,用于对选中的即时通讯消息,接收对即时通讯消息的消息获取指令。The receiving
其中,消息获取指令可以由用户点击与即时通讯消息对应的快捷菜单中的菜单选项触发;或者,消息获取指令也可以由用户按压快捷操作按键触发。The message acquisition instruction may be triggered by the user clicking a menu option in the shortcut menu corresponding to the instant messaging message; or the message acquisition instruction may also be triggered by the user pressing the shortcut operation button.
处理单元1602,用于根据接收单元1601接收的消息获取指令,在即时通讯客户端的输入框中呈现即时通讯消息。The processing unit 1602 is configured to present an instant messaging message in an input box of the instant messaging client according to the message obtaining instruction received by the receiving
接收单元1601,还用于接收对输入框中呈现的即时通讯消息的消息修改指令。The receiving
修改单元1603,用于根据接收单元1601接收的消息修改指令,对输入框中呈现的即时通讯消息进行修改。The modifying unit 1603 is configured to modify the instant messaging message presented in the input box according to the message modification instruction received by the receiving
可选地,该即时通讯客户端还可以包括:选择单元1604;Optionally, the instant messaging client may further include: a selecting unit 1604;
接收单元1601,还用于接收消息选择指令;The receiving
选择单元1604,用于根据接收单元1601接收的消息选择指令,从即时通讯客户端的会话记录中选中即时通讯消息。The selecting unit 1604 is configured to select an instant messaging message from the session record of the instant messaging client according to the message selection instruction received by the receiving
可选地,该即时通讯客户端还可以包括:发送单元1605。Optionally, the instant messaging client may further include: a sending unit 1605.
接收单元1601,还用于接收修改消息的发送指令。The receiving
发送单元1605,用于根据接收单元1601接收的发送指令,向服务端发送消息修改请求,消息修改请求用于指示服务端从第二即时通讯客户端中查找并删除即时通讯消息,并向第二即时通讯客户端发送修改后的即时通讯消息,第二即时通讯客户端是指已接收即时通讯消息的即时通讯客户端。The sending unit 1605 is configured to send a message modification request to the server according to the sending instruction received by the receiving
接收单元1601,还用于接收服务端发送的用于表示修改消息发送成功的响应结果消息。The receiving
处理单元1602,还用于根据接收单元1601接收的响应结果消息,将会话记录中的即时通讯消息替换为第一通知消息,并在会话记录中呈现修改后的即时通讯消息。The processing unit 1602 is further configured to replace the instant messaging message in the session record with the first notification message according to the response result message received by the receiving
可选地,该即时通讯客户端还可以包括:发送单元1605。Optionally, the instant messaging client may further include: a sending unit 1605.
接收单元1601,还用于接收修改消息的发送指令。The receiving
发送单元1605,用于根据接收单元1601接收的发送指令,向服务端发送消息修改请求,消息修改请求用于指示服务端从第二即时通讯客户端中查找并删除即时通讯消息,并向第二即时通讯客户端发送修改后的即时通讯消息,第二即时通讯客户端是指已接收即时通讯消息的即时通讯客户端。The sending unit 1605 is configured to send a message modification request to the server according to the sending instruction received by the receiving
接收单元1601,还用于接收服务端发送的用于表示修改消息发送成功的响应结果消息。The receiving
处理单元1602,还用于根据接收单元1601接收的响应结果消息,将会话记录中的即时通讯消息替换为修改后的即时通讯消息,并为修改后的即时通讯消息添加第一标识信息。The processing unit 1602 is further configured to replace the instant messaging message in the session record with the modified instant messaging message according to the response result message received by the receiving
可选地,该即时通讯客户端还可以包括:发送单元1605。Optionally, the instant messaging client may further include: a sending unit 1605.
接收单元1601,还用于接收修改消息的发送指令。The receiving
发送单元1605,用于根据接收单元1601接收的发送指令,向服务端发送消息修改请求,消息修改请求用于指示服务端向第二即时通讯客户端发送修改后的即时通讯消息,第二即时通讯客户端是指已接收即时通讯消息的即时通讯客户端。The sending unit 1605 is configured to send a message modification request to the server according to the sending instruction received by the receiving
接收单元1601,还用于接收服务端发送的用于表示修改消息发送成功的响应结果消息。The receiving
处理单元1603,还用于根据接收单元1601接收的响应结果消息,在会话记录中的即时通讯消息的相邻位置呈现修改后的即时通讯消息,并为修改后的即时通讯消息添加第二标识信息。The processing unit 1603 is further configured to: according to the response result message received by the receiving
本申请实施例装置的各功能模块的功能,可以通过上述方法实施例的各步骤来实现,因此,本申请提供的装置的具体工作过程,在此不复赘述。The functions of the functional modules of the device in the embodiment of the present application can be implemented by the steps of the foregoing method embodiments. Therefore, the specific working process of the device provided by the present application is not described herein.
本申请提供的即时通讯客户端,对选中的即时通讯消息,接收单元1601接收对即时通讯消息的消息获取指令。处理单元1602根据消息获取指令,在即时通讯客户端的输入框中呈现即时通讯消息。接收单元1601接收对输入框中呈现的即时通讯消息的消息修改指令。修改单元1603根据消息修改指令,对输入框中呈现的即时通讯消息进行修改。由此,可以提高对即时通讯消息的修改效率。The instant messaging client provided by the present application receives the message acquisition instruction for the instant messaging message for the selected instant messaging message. The processing unit 1602 presents an instant messaging message in an input box of the instant messaging client according to the message acquisition instruction. The receiving
与上述即时通讯消息修改方法对应地,本申请实施例还提供的一种即时通讯客户端,如图17所示,该即时通讯客户端包括:Corresponding to the above-mentioned instant messaging message modification method, an instant messaging client is also provided in the embodiment of the present application. As shown in FIG. 17, the instant messaging client includes:
接收单元1701,用于接收服务端发送的消息修改指示,该消息修改指示包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息。The receiving unit 1701 is configured to receive a message modification indication sent by the server, where the message modification indication includes the identifier information of the instant messaging message before the modification and the modified instant messaging message.
查找单元1702,用于根据接收单元1701接收的标识信息,从即时通讯客户端的会话记录中查找修改前的即时通讯消息。The searching unit 1702 is configured to search for the instant messaging message before the modification from the session record of the instant messaging client according to the identifier information received by the receiving unit 1701.
处理单元1703,用于将会话记录中的修改前的即时通讯消息替换为第一通知消息,并在会话记录中呈现修改后的即时通讯消息;或者,The processing unit 1703 is configured to replace the pre-modified instant messaging message in the session record with the first notification message, and present the modified instant messaging message in the session record; or
将会话记录中的修改前的即时通讯消息替换为修改后的即时通讯消息,并为修改后的即时通讯消息添加第一标识信息;或者,Substituting the modified instant messaging message in the session record with the modified instant messaging message, and adding the first identification information to the modified instant messaging message; or
在会话记录中的修改前的即时通讯消息的相邻位置呈现修改后的即时通讯消息,并为修改后的即时通讯消息添加第二标识信息。The modified instant messaging message is presented at an adjacent location of the instant messaging message before the modification in the session record, and the second identification information is added to the modified instant messaging message.
本申请实施例装置的各功能模块的功能,可以通过上述方法实施例的各步骤来实现,因此,本申请提供的装置的具体工作过程,在此不复赘述。The functions of the functional modules of the device in the embodiment of the present application can be implemented by the steps of the foregoing method embodiments. Therefore, the specific working process of the device provided by the present application is not described herein.
与上述即时通讯消息修改方法对应地,本申请实施例还提供的一种服务端,如图18所示,该服务端包括:Corresponding to the above-mentioned instant messaging message modification method, a server provided by the embodiment of the present application is as shown in FIG. 18, and the server includes:
接收单元1801,用于接收第一即时通讯客户端发送的消息修改请求,该消息修改请求包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息。The receiving unit 1801 is configured to receive a message modification request sent by the first instant messaging client, where the message modification request includes the identifier information of the instant messaging message before the modification and the modified instant messaging message.
处理单元1802,用于根据接收单元1801接收的标识信息,从对应的存储单元中查找修改前的即时通讯消息,并修改修改前的即时通讯消息的显示状态和/或添加相应的删除标识。The
发送单元1803,用于向第二即时通讯客户端发送消息修改指示,第二即时通讯客户端是指已接收修改前的即时通讯消息的即时通讯客户端,The sending
消息修改指示用于指示第二即时通讯客户端从会话记录中查找修改前的即时通讯消息,将修改前的即时通讯消息替换为第一通知消息,并在会话记录中呈现修改后的即时通讯消息;或者,The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, replace the instant messaging message before the modification with the first notification message, and present the modified instant messaging message in the session record. ;or,
消息修改指示用于指示第二即时通讯客户端从会话记录中查找修改前的即时通讯消息,将修改前的即时通讯消息替换为修改后的即时通讯消息,并为修改后的即时通讯消息添加第一标识信息;The message modification indication is used to instruct the second instant messaging client to search for the instant messaging message before the modification from the session record, replace the instant messaging message before the modification with the modified instant messaging message, and add the first message to the modified instant messaging message. An identification information;
发送单元1803,还用于向第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。The sending
本申请实施例装置的各功能模块的功能,可以通过上述方法实施例的各步骤来实现,因此,本申请提供的装置的具体工作过程,在此不复赘述。The functions of the functional modules of the device in the embodiment of the present application can be implemented by the steps of the foregoing method embodiments. Therefore, the specific working process of the device provided by the present application is not described herein.
与上述即时通讯消息修改方法对应地,本申请实施例还提供的一种服务端,如图19所示,该服务端包括:Corresponding to the above-mentioned instant messaging message modification method, a server provided by the embodiment of the present application is as shown in FIG. 19, and the server includes:
接收单元1901,用于接收第一即时通讯客户端发送的消息修改请求,该消息修改请求包括修改前的即时通讯消息的标识信息以及修改后的即时通讯消息。The receiving
发送单元1902,用于向第二即时通讯客户端发送消息修改指示,第二即时通讯客户端是指已接收修改前的即时通讯消息的即时通讯客户端,The sending unit 1902 is configured to send a message modification indication to the second instant messaging client, where the second instant messaging client refers to an instant messaging client that has received the instant messaging message before the modification.
消息修改指示用于指示第二即时通讯客户端从会话记录中查找修改前的即时通讯消息,在修改前的即时通讯消息的相邻位置呈现修改后的即时通讯消息,并为修改后的即时通讯消息添加第二标识信息。The message modification indication is used to indicate that the second instant messaging client searches for the instant messaging message before the modification from the session record, and presents the modified instant messaging message in the adjacent location of the instant messaging message before the modification, and is the modified instant messaging message. The message adds the second identification information.
发送单元1902,还用于向第一即时通讯客户端发送用于表示修改消息发送成功的响应结果消息。The sending unit 1902 is further configured to send, to the first instant messaging client, a response result message indicating that the modification message is successfully sent.
本申请实施例装置的各功能模块的功能,可以通过上述方法实施例的各步骤来实现,因此,本申请提供的装置的具体工作过程,在此不复赘述。The functions of the functional modules of the device in the embodiment of the present application can be implemented by the steps of the foregoing method embodiments. Therefore, the specific working process of the device provided by the present application is not described herein.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。Those skilled in the art will appreciate that in one or more examples described above, the functions described herein can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进 等,均应包括在本发明的保护范围之内。The specific embodiments of the present invention have been described in detail with reference to the preferred embodiments of the present invention. The scope of the protection, any modifications, equivalent substitutions, improvements, etc., which are made on the basis of the technical solutions of the present invention, are included in the scope of the present invention.
Claims (28)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710063019.4A CN108390813A (en) | 2017-02-03 | 2017-02-03 | Instant communication information recalls, amending method, instant communication client and server-side |
CN201710063019.4 | 2017-02-03 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018141226A1 true WO2018141226A1 (en) | 2018-08-09 |
Family
ID=63039221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/074105 Ceased WO2018141226A1 (en) | 2017-02-03 | 2018-01-25 | Method for withdrawing and modifying instant communication message, instant communication client side and server side |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN108390813A (en) |
TW (1) | TW201830986A (en) |
WO (1) | WO2018141226A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111913625A (en) * | 2020-08-20 | 2020-11-10 | 网易(杭州)网络有限公司 | Message processing method and device and electronic equipment |
CN112733496A (en) * | 2020-12-30 | 2021-04-30 | 维沃移动通信有限公司 | Information display method and device and electronic equipment |
CN113992615A (en) * | 2021-10-26 | 2022-01-28 | 维沃移动通信有限公司 | Display method and device of withdrawal message, electronic equipment and storage medium |
CN114745346A (en) * | 2022-04-11 | 2022-07-12 | 维沃移动通信有限公司 | Message processing method and device, electronic equipment and readable storage medium |
WO2024022472A1 (en) * | 2022-07-29 | 2024-02-01 | 北京字跳网络技术有限公司 | Information processing method and apparatus, device, and medium |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109286560B (en) * | 2018-11-19 | 2021-03-19 | 北京达佳互联信息技术有限公司 | Method and device for acquiring instant messaging message |
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 |
TW202131182A (en) * | 2020-02-07 | 2021-08-16 | 萊思特科技股份有限公司 | Method capable of quickly withdrawing chat messages, real-time communication device, and computer program product |
CN112003780A (en) * | 2020-08-06 | 2020-11-27 | 武汉华中时讯科技有限责任公司 | Method for withdrawing message in instant communication chat scene |
CN112035206B (en) * | 2020-09-01 | 2021-08-24 | 腾讯科技(深圳)有限公司 | Message processing method and device |
CN114390011B (en) * | 2020-10-20 | 2023-05-05 | 腾讯科技(深圳)有限公司 | Message processing method and device and readable storage medium |
CN113489638B (en) * | 2021-07-08 | 2022-09-02 | 北卡科技有限公司 | Message safety deleting method for instant communication system |
CN113923176B (en) * | 2021-09-30 | 2023-05-23 | 完美世界(北京)软件科技发展有限公司 | Message withdrawal method, device and equipment for instant messaging and computer readable medium |
CN115361356B (en) * | 2022-08-25 | 2024-02-27 | 中国银行股份有限公司 | File control method and device and electronic equipment |
CN115348229B (en) * | 2022-08-29 | 2024-04-19 | 中国银行股份有限公司 | Message withdrawal method and device |
Citations (5)
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 |
CN102484619A (en) * | 2009-08-31 | 2012-05-30 | 高通股份有限公司 | Systems and methods for evaluating outbound messages |
CN103368818A (en) * | 2012-03-31 | 2013-10-23 | 多玩娱乐信息技术(北京)有限公司 | Method for sending instant message |
CN103516576A (en) * | 2012-06-21 | 2014-01-15 | 阿尔卡特朗讯公司 | Method for processing instant message and device thereof |
CN105892805A (en) * | 2016-03-29 | 2016-08-24 | 北京小米移动软件有限公司 | Instant message processing method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100553236C (en) * | 2005-12-23 | 2009-10-21 | 腾讯科技(深圳)有限公司 | A method and instant messaging system for withdrawing instant messaging messages |
CN101136871A (en) * | 2006-08-31 | 2008-03-05 | 腾讯科技(深圳)有限公司 | Corrective method, instant communication terminal and system of transmitting error message |
CN101834806B (en) * | 2010-03-25 | 2012-10-24 | 盈世信息科技(北京)有限公司 | Method and system for withdrawing mail |
CN103269306A (en) * | 2012-12-18 | 2013-08-28 | 北京奇虎科技有限公司 | Message processing method and device in communication process |
CN104518946A (en) * | 2013-09-27 | 2015-04-15 | 北京新媒传信科技有限公司 | Method and device for deleting instant messaging message |
-
2017
- 2017-02-03 CN CN201710063019.4A patent/CN108390813A/en active Pending
- 2017-11-07 TW TW106138433A patent/TW201830986A/en unknown
-
2018
- 2018-01-25 WO PCT/CN2018/074105 patent/WO2018141226A1/en not_active Ceased
Patent Citations (5)
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 |
CN102484619A (en) * | 2009-08-31 | 2012-05-30 | 高通股份有限公司 | Systems and methods for evaluating outbound messages |
CN103368818A (en) * | 2012-03-31 | 2013-10-23 | 多玩娱乐信息技术(北京)有限公司 | Method for sending instant message |
CN103516576A (en) * | 2012-06-21 | 2014-01-15 | 阿尔卡特朗讯公司 | Method for processing instant message and device thereof |
CN105892805A (en) * | 2016-03-29 | 2016-08-24 | 北京小米移动软件有限公司 | Instant message processing method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111913625A (en) * | 2020-08-20 | 2020-11-10 | 网易(杭州)网络有限公司 | Message processing method and device and electronic equipment |
CN112733496A (en) * | 2020-12-30 | 2021-04-30 | 维沃移动通信有限公司 | Information display method and device and electronic equipment |
CN113992615A (en) * | 2021-10-26 | 2022-01-28 | 维沃移动通信有限公司 | Display method and device of withdrawal message, electronic equipment and storage medium |
CN113992615B (en) * | 2021-10-26 | 2023-05-26 | 维沃移动通信有限公司 | Method and device for displaying withdrawal message, electronic equipment and storage medium |
CN114745346A (en) * | 2022-04-11 | 2022-07-12 | 维沃移动通信有限公司 | Message processing method and device, electronic equipment and readable storage medium |
WO2024022472A1 (en) * | 2022-07-29 | 2024-02-01 | 北京字跳网络技术有限公司 | Information processing method and apparatus, device, and medium |
Also Published As
Publication number | Publication date |
---|---|
TW201830986A (en) | 2018-08-16 |
CN108390813A (en) | 2018-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018141226A1 (en) | Method for withdrawing and modifying instant communication message, instant communication client side and server side | |
US11868314B2 (en) | File processing method and mobile terminal | |
US9171291B2 (en) | Electronic device and method for updating message body content based on recipient changes | |
CN110378593B (en) | Applied communication status regarding compliance policy updates | |
CN105871690B (en) | Method and device for realizing instant messaging | |
US10455014B2 (en) | Method and apparatus for synchronizing content | |
EP2658189B1 (en) | Electronic device and method for updating message body content based on recipient changes | |
US20220342518A1 (en) | Card-based information management method and system | |
WO2016029661A1 (en) | Session merging method and mobile terminal | |
WO2015096322A1 (en) | Information display method for instant communication tool, and user terminal | |
CN114615220B (en) | Method and device for message sending control | |
CN108885557B (en) | Batch tasks | |
US10650085B2 (en) | Providing interactive preview of content within communication | |
US20240037066A1 (en) | File access permission revocation notification | |
CN103281798A (en) | Method, device and system for achieving modification synchronization | |
CN111641554B (en) | A message processing method, device and computer-readable storage medium | |
CN106209581A (en) | Information processing method, device, server and terminal unit | |
US20140157290A1 (en) | Method, system, and device for switching between network applications, and computer storage medium | |
JP2020522043A5 (en) | ||
CN104679239A (en) | Terminal input method | |
CN106453823A (en) | Method and device for sending messages rapidly, and terminal | |
CN109614442A (en) | Data table maintenance method, device, storage medium and electronic device for data synchronization | |
CN108667722A (en) | Short message cancelling method, electronic device and computer readable storage medium | |
WO2015196658A1 (en) | Method and device for acquiring delivery state of e-mail, and computer storage medium | |
CN108933724A (en) | A kind of information sharing method and system, terminal and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18747920 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18747920 Country of ref document: EP Kind code of ref document: A1 |