Message processing method, server, client and message processing system

By storing and managing message and reading status information on the server side, the problem of group messages not being able to be destroyed after being read is solved, and messages are deleted immediately after being read in the group, thus improving security.

CN119966938BActive Publication Date: 2026-03-17JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-09
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing technologies cannot effectively achieve self-destructing messages between individual users and groups, nor can they securely delete messages within a group.

Method used

By storing the message information sent by the first client and the reading status information of each client on the server side, and after the target client reads the message, the message content is obtained and displayed, and then cleared after a preset time, as well as the stored reading status information and message information, it is ensured that the message cannot be read again in the group.

Benefits of technology

It enables self-destructing messages in groups, improving the security of point-to-group messages and ensuring that messages cannot be accessed again after being read.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119966938B_ABST
    Figure CN119966938B_ABST
Patent Text Reader

Abstract

The application provides a message processing method, a server, a client and a message processing system, and relates to the technical field of information processing. The message processing method comprises the following steps: in response to a target client reading a target message in a plurality of second clients included in a group, if reading state information of the target message corresponding to the target client is queried from a preset position, message content of the target message is acquired based on message information of the target message stored in the preset position, the message content is sent to the target client, the target client displays the message content, and after a display time length of the message content reaches a first preset time length, the display of the message content is stopped and the message content is cleared; the reading state information corresponding to the target client stored in the preset position is cleared, and after reading state information corresponding to all the second clients respectively stored in the preset position is cleared, the message information stored in the preset position is cleared. Thus, the point-to-group message is effectively burned after reading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing technology, and in particular to a message processing method, server, client and message processing system. Background Technology

[0002] With the development of internet technology, users can send messages to other users anytime, anywhere through instant messaging applications. These messages can include text, images, videos, audio, and other content.

[0003] Currently, to protect the privacy of user-sent messages, the secondary dissemination of messages can be limited through self-destructing messages. Self-destructing messages mean that the message is deleted and destroyed immediately or within a certain period after being read once. However, this technology can only achieve self-destruction for point-to-point messages sent from one user to another; it cannot effectively achieve self-destruction for point-to-group messages sent by one user within a group. Summary of the Invention

[0004] This application aims to at least partially address one of the technical problems in the related art.

[0005] This application proposes a message processing method to solve the technical problem that related technologies cannot effectively realize the self-destructing message functionality for point-to-group messages.

[0006] A first aspect of this application proposes a message processing method applied to a first server. The method includes: responding to a target client among a plurality of second clients included in a group reading a target message, querying the reading status information of the target message corresponding to the target client from a preset location, wherein the target message is a message sent by the first client in the group; if the reading status information is found, obtaining the message content of the target message based on the message information of the target message stored in the preset location, and sending the message content to the target client so that the target client displays the message content, and stopping the display and clearing the message content after the display duration of the message content reaches a first preset duration; clearing the reading status information corresponding to the target client stored in the preset location, and clearing the message information stored in the preset location after clearing the reading status information corresponding to all second clients stored in the preset location respectively.

[0007] A second aspect of this application provides a message processing method applied to a client, comprising: receiving the message content of a target message sent by a first server using the message processing method described in the first aspect embodiment; displaying the message content; and stopping the display and clearing the message content after the display duration of the message content reaches a first preset duration.

[0008] A third aspect of this application provides a server comprising: a query module, configured to, in response to a target client among a plurality of second clients included in a group reading a target message, query reading status information of the target message corresponding to the target client from a preset location, wherein the target message is a message sent by a first client in the group; a first acquisition module, configured to, upon querying the reading status information, acquire the message content of the target message based on message information of the target message stored at the preset location; a sending module, configured to send the message content to the target client so that the target client displays the message content, and after the display duration of the message content reaches a first preset duration, stop displaying and clear the message content; and a clearing module, configured to clear the reading status information corresponding to the target client stored at the preset location, and after clearing the reading status information corresponding to all second clients stored at the preset location, clear the message information stored at the preset location.

[0009] A fourth aspect of this application provides a client, comprising: a second receiving module for receiving message content of a target message sent by a first server using the message processing method described in the first aspect embodiment; a display module for displaying the message content; and a processing module for stopping the display and clearing the message content after the display duration of the message content reaches a first preset duration.

[0010] A fifth aspect of this application provides a message processing system, comprising: a first client for sending a target message in a group; a first server for executing the message processing method described in the first aspect of this application; and a second client for executing the message processing method described in the second aspect of this application.

[0011] A sixth aspect of this application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a method as proposed in the first or second aspect of this application.

[0012] A seventh aspect of this application provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the methods described in the first or second aspect of this application.

[0013] An eighth aspect of this application provides a computer program product including a computer program that, when executed by a processor, implements the method as described in the first or second aspect of this application.

[0014] The technical solution provided in this application stores the message information of a target message sent by a first client in a group, along with the reading status information corresponding to each second client in the group, in a preset location. When a target client in a second client reads the target message and retrieves its corresponding reading status information from the preset location, the message content of the target message is obtained based on the message information stored in the preset location. This message content is then sent to the target client, and the reading status information corresponding to the target client stored in the preset location is cleared. This prevents the target client in the group from reading the target message again after it has been read once. Furthermore, the message content is displayed on the target client, and after the display time reaches a first preset duration, the display stops and the message content is cleared. This achieves self-destructing messages for the target message in the client reading the message. Moreover, by clearing the message information stored in the preset location after clearing the reading status information corresponding to all second clients, the message information of the target message is deleted and destroyed after all second clients in the group have read the target message. This effectively achieves self-destructing messages for point-to-group communication, improving the security of point-to-group messages.

[0015] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0016] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0017] Figure 1 This is a flowchart illustrating the message processing method provided in an embodiment of this application.

[0018] Figure 2 A flowchart illustrating another message processing method provided in an embodiment of this application;

[0019] Figure 3 A flowchart illustrating another message processing method provided in an embodiment of this application;

[0020] Figure 4 A flowchart illustrating another message processing method provided in an embodiment of this application;

[0021] Figure 5 This is an interaction diagram of the message processing method provided in the embodiments of this application;

[0022] Figure 6 This is another interaction diagram of the message processing method provided in the embodiments of this application;

[0023] Figure 7 This is a schematic diagram of the server structure provided in the embodiments of this application;

[0024] Figure 8 This is a schematic diagram of the client structure provided in the embodiments of this application;

[0025] Figure 9 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present application is shown. Detailed Implementation

[0026] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0027] This application addresses the technical problem that related technologies cannot effectively implement the self-destructing message function for point-to-group chat messages, and proposes a message processing method, server, client, message processing system, electronic device, storage medium, and computer program product. By storing the message information of the target message sent by the first client in the group, along with the reading status information corresponding to each of the second clients in the group, in a preset location, when the target client in the second client reads the target message and retrieves the corresponding reading status information from the preset location, the message content of the target message is obtained based on the message information stored in the preset location, the message content of the target message is sent to the target client, and the reading status information corresponding to the target client stored in the preset location is cleared. This ensures that once the target client in the second client of the group has read the target message once, it cannot read the target message again. Furthermore, the message content is displayed through the target client, and after the display time of the message content reaches a first preset time, the display stops and the message content is cleared. This achieves the "read-and-burn" mechanism for the target message in the client that reads the message. Moreover, by clearing the message information stored in the preset location after clearing the reading status information corresponding to all the second clients in the group, the message information of the target message is deleted and destroyed after all the second clients in the group have read the target message. This effectively realizes the "read-and-burn" mechanism for point-to-group messages and improves the security of point-to-group messages.

[0028] The following description, with reference to the accompanying drawings, describes a message processing method, server, client, message processing system, electronic device, storage medium, and computer program product according to embodiments of this application.

[0029] The message processing method provided in the embodiments of this application will be described first. This message processing method can be configured to be executed in a first server. The first server can be configured in a server to provide message services.

[0030] Figure 1 This is a flowchart illustrating the message processing method provided in an embodiment of this application.

[0031] like Figure 1 As shown, the message processing method may include the following steps 101-103.

[0032] Step 101: In response to the target client reading the target message among the multiple second clients included in the group, query the reading status information of the target message corresponding to the target client from a preset location, wherein the target message is the message sent by the first client in the group.

[0033] In this embodiment, the first client and the second client belong to the same group. The client sending the message in the group is referred to as the first client, and the other clients in the group are referred to as the second clients. The target client is any one of the multiple second clients included in the group that triggers the action of reading the message. The target message is a message that needs to be read and then destroyed.

[0034] The preset location refers to a pre-defined storage location, such as a database or a specific storage space within the data layer. The database can be a key-value database (a database that stores data in key-value pairs) or a relational database; this application does not impose any restrictions on this.

[0035] The reading status information of the target message corresponding to the target client can indicate the target client's reading status of the target message. For example, if the reading status information of the target message corresponding to the target client exists at a preset position, it means that the target client's reading status of the target message is unread; if the reading status information of the target message corresponding to the target client does not exist at the preset position, it means that the target client's reading status of the target message is read.

[0036] In one embodiment, after the first client sends the target message in the group, the first server can store the reading status information of the target message corresponding to each second client in a preset location, and clear the reading status information corresponding to any second client after it reads the target message.

[0037] Therefore, when the target client triggers the action of reading the target message among multiple second clients, that is, when the target client reads the target message, in response to the target client reading the target message, the first server can query the reading status information of the target client from a preset location, so as to determine whether the target client's reading status of the target message is unread or read based on whether the reading status information of the target client is found.

[0038] Step 102: If the reading status information is found, the message content of the target message is obtained based on the message information of the target message stored in the preset location, and the message content is sent to the target client so that the target client can display the message content. After the display time of the message content reaches the first preset time, the display is stopped and the message content is cleared.

[0039] The message information of the target message includes any information related to the target message, such as the message identifier of the target message, the message content, the sending time of the target message, the identifier of the client that sent the target message, the identifier of the group, etc.

[0040] In one embodiment, after the first client sends the target message in the group, the first server can obtain the message information of the target message and store the message information of the target message in a preset location.

[0041] In one embodiment, if the first server finds the reading status information of the target client at a preset location, it can determine that the target client's reading status of the target message is unread. Then, based on the message information of the target message stored at the preset location, the server can obtain the message content of the target message and send the message content to the target client.

[0042] When the second client triggers the action of reading the target message, it can trigger a target message reading request. The target message reading request can include the message identifier of the target message, so that the first server can obtain the message information of the target message based on the message identifier of the target message, and then obtain the message content of the target message based on the message information.

[0043] The target client can then display the message content, and simultaneously start a countdown for a first preset duration on the target client. When the countdown reaches zero, that is, after the message content display duration has reached the first preset duration, the message content display stops and is cleared. The first preset duration can be set as needed and is not limited here. The first preset duration can be a fixed duration set in the target client or the duration sent from the first server to the target client; this application does not impose any restrictions on this. Furthermore, the first preset duration can be the same or different for different messages. For example, the first server can send the first preset duration to the target client at the same time as sending the message content of the target message.

[0044] This allows the target message to be destroyed immediately after being read on the target client.

[0045] Step 103: Clear the reading status information corresponding to the target client stored in the preset location, and after clearing the reading status information corresponding to all second clients stored in the preset location, clear the message information stored in the preset location.

[0046] In one embodiment, after the first server sends the message content of the target message to the target client, it can be considered that the target client has read the target message, and thus the reading status information corresponding to the target client stored in the preset location can be cleared. Therefore, when the target client triggers the action of reading the target message again, since the first server cannot find the reading status information of the target message corresponding to the target client in the preset location, the first server will not retrieve the message content of the target message based on the message information of the target message stored in the preset location and will not send the message content of the target message to the target client again, thus preventing the target client from reading the target message again.

[0047] Furthermore, after all second clients in the group have read the target message, that is, after the first server clears the reading status information corresponding to each second client stored in the preset location, the message information of the target message stored in the preset location can be cleared. Thus, after all second clients in the group have read the target message, the message information of the target message is deleted and destroyed, effectively realizing the "read-and-burn" mechanism for point-to-group messages and improving the security of point-to-group messages.

[0048] It should be noted that in some embodiments, there may be situations where one or more second clients never read the target message. For example, a group may include clients A, B, C, and D, where client A is the first client sending the target message, and B, C, and D are the second clients. In practical applications, when clients B and C trigger the action of reading the target message, the first server can obtain and send the message content of the target message to clients B and C. However, client D may not trigger the action of reading the target message due to reasons such as never logging in or never receiving the target message. In this case, the first server may fail to clear the reading status information corresponding to client D stored in the preset location for a long time.

[0049] In the above situations, the following methods can be used to protect the privacy and security of the target message:

[0050] Get the creation time of the target message;

[0051] Determine the storage duration of the target message based on the creation time and the current time;

[0052] If the storage time exceeds the second preset duration, the message information stored at the preset location and the reading status information corresponding to each second client are cleared.

[0053] The second preset duration can be set as needed, and this application does not impose any restrictions on it.

[0054] The difference between the creation time of the target message and the current time is the storage duration of the target message.

[0055] In some embodiments, the time when the message information of the target message is stored in a preset location or the reading status information corresponding to each second client can be used as the creation time of the target message, or the time when the first client sends the target message in the group can be used as the creation time of the target message. This application does not limit this.

[0056] Specifically, the creation time of the target message can be stored in a preset location. The first server can periodically query the creation time of the target message and determine the storage duration based on the creation time and the current time. It then checks whether the storage duration exceeds a second preset duration. If it does, the message information of the target message stored in the preset location and the reading status information corresponding to each second client are cleared. Therefore, regardless of whether all second clients in the group have finished reading the target message, the message information of the target message stored in the preset location and the reading status information corresponding to each second client are cleared when the storage duration of the target message exceeds the preset duration, improving the security of point-to-group messages.

[0057] The message processing method provided in this application stores the message information of a target message sent by a first client in a group, along with the reading status information corresponding to each second client in the group, in a preset location. In response to a target client reading the target message and retrieving its corresponding reading status information from the preset location, the method retrieves the message content of the target message based on the message information stored in the preset location, sends the message content to the target client, and stops displaying the message content after a first preset display duration. Then, the message content is cleared, and the reading status information corresponding to the target client stored in the preset location is cleared. This ensures that once a target client in the group has read the target message, it cannot read it again. Furthermore, by clearing the message information stored in the preset location after clearing the reading status information corresponding to all second clients, the method effectively achieves message destruction after reading in a point-to-group setting, improving the security of point-to-group messages.

[0058] In some embodiments, to protect the privacy and security of the target message, the message content of the target message stored in the preset location, the message content sent by the first client to the group, and the message content sent by the first server to the target client can all be encrypted message content. The following discussion addresses these situations in conjunction with... Figure 2 The message processing method in the embodiments of this application will be further described.

[0059] Figure 2 This is a flowchart illustrating another message processing method provided in an embodiment of this application. Figure 2 As shown, the message processing method includes the following steps 201-207.

[0060] Step 201: In response to the target client reading the target message among the multiple second clients included in the group, query the reading status information of the target message corresponding to the target client from a preset location, wherein the target message is the message sent by the first client in the group.

[0061] The specific implementation process and principle of step 201 can be found in the descriptions of other embodiments, and will not be repeated here.

[0062] Step 202: If the reading status information is found, the first encrypted message is obtained from the message information stored in the preset location. The first encrypted message is obtained by encrypting the message content of the target message based on the first public key of the first client for the target message.

[0063] In some embodiments, different clients can use different key information to encrypt and decrypt the same message content. This avoids the problem of message content leakage due to key leakage when different clients use the same key information to encrypt and decrypt the message content, thereby improving the security of the message content.

[0064] In some embodiments, when the first client sends a target message to the group, it can encrypt the message content of the target message based on the first client's first public key for the target message to obtain a first encrypted message, or encrypt the message content and message identifier of the target message to obtain a first encrypted message, and send the first encrypted message to the first server. Thus, the first server can store the first encrypted message and other information of the target message as the message information of the target message in a preset location.

[0065] In this system, the first client can send a first encrypted message to the second server. The second server verifies the target message based on the first encrypted message, and if the verification is successful, it can send the first encrypted message back to the first server. The second server is another server configured within the server, used to provide services other than message services, such as authentication services.

[0066] When a target client triggers the action of reading a target message among multiple second clients, in response to the target client reading the target message, the first server can query the reading status information of the target client from a preset location. If the first server finds the reading status information of the target client in the preset location, it can determine that the target client's reading status of the target message is unread, and thus the first encrypted message can be obtained from the message information stored in the preset location.

[0067] Step 203: Obtain the first private key of the first client for the target message, and decrypt the first encrypted message based on the first private key to obtain the decrypted message content.

[0068] In some embodiments, a preset location may store a first private key of the first client for the target message, so that the first server can obtain the first private key from the preset location based on the identifier of the first client and the identifier of the target message, and decrypt the first encrypted message based on the first private key to obtain the decrypted message content.

[0069] Step 204: Obtain the second public key and second private key of the target client for the target message from the reading status information corresponding to the target client.

[0070] In some embodiments, the reading status information corresponding to the target client stored in the preset location may include the second public key and the second private key of the target client for the target message, so that the first server can obtain the second public key and the second private key of the target client for the target message from the reading status information corresponding to the target client stored in the preset location.

[0071] Step 205: Encrypt the decrypted message content based on the second private key to obtain the encrypted message content.

[0072] In some embodiments, the first server can encrypt the decrypted message content based on the second private key to obtain the encrypted message content.

[0073] Step 206: Send the encrypted message content and the second public key to the target client so that the target client can decrypt the encrypted message content based on the second public key and display the message content. After the message content is displayed for a first preset duration, stop displaying and clear the message content.

[0074] In some embodiments, the first server can send the encrypted message content and a second public key to the target client. The target client can then decrypt the encrypted message content using the second public key to obtain the message content, display it, and stop displaying the message content and clearing it after a first preset display period. This achieves self-destructing message functionality on the target client.

[0075] Step 207: Clear the reading status information corresponding to the target client stored in the preset location, and after clearing the reading status information corresponding to all second clients stored in the preset location, clear the message information stored in the preset location.

[0076] The specific implementation process and principle of step 207 can be referred to the description of the above embodiments, and will not be repeated here.

[0077] In summary, the message processing method provided in this application stores the message information of the target message sent by the first client in a group, along with the reading status information corresponding to each of the second clients in the group, in a preset location. When the target client reads the target message and retrieves its corresponding reading status information from the preset location, the method retrieves the first encrypted message from the message information stored in the preset location, obtains the first private key of the first client for the target message, and decrypts the first encrypted message based on the first private key to obtain the decrypted message content. Then, it retrieves the second public key and second private key of the target client for the target message from the reading status information corresponding to the target client, encrypts the decrypted message content based on the second private key, and sends the encrypted message content and the second public key to the target client, enabling the target client to use the second public key to encrypt the message content. The public key decrypts the encrypted message content and enables the target client to display the message content. After the message content is displayed for a first preset duration, the display stops and the message content is cleared. The reading status information of the target client stored in a preset location is then cleared. This allows different clients to use different key information to encrypt and decrypt the target message content, improving message security. Furthermore, once a target client in the group has read the target message once, it cannot read it again. By clearing the reading status information of all second clients stored in the preset location and then clearing the message information stored in the preset location, the message information is deleted and destroyed after all second clients in the group have read the target message. This effectively achieves self-destructing messages in point-to-group communication, improving the security of point-to-group messages.

[0078] The above analysis shows that the first server can store the message information of the target message and the reading status information of the target message corresponding to each second client in a preset location. The following section combines... Figure 3 The process of the first server acquiring and storing the message information of the target message and the reading status information of the target message corresponding to each second client in the message processing method of this application embodiment will be further explained.

[0079] Figure 3 This is a flowchart illustrating another message processing method provided in an embodiment of this application. Figure 3 As shown, the message processing method includes the following steps 301-308.

[0080] Step 301: In response to the first client sending the target message in the group, obtain message information.

[0081] In some embodiments, the message information may include: a message identifier of the target message, and a second encrypted message obtained by encrypting the message identifier based on a first public key of the first client for the target message. It should be noted that the second encrypted message may be obtained by encrypting the message identifier of the target message based on the first public key, or it may be obtained by encrypting both the message identifier and the message content of the target message based on the first public key; this application does not impose any limitations on this.

[0082] Accordingly, step 301 can be implemented in the following way: receiving message information sent by the second server, wherein the message information is sent by the second server after receiving the message information sent by the first client and verifying the target message in the following way: based on the message identifier, obtaining the first private key of the first client for the target message, and decrypting the second encrypted message based on the first private key to obtain the decrypted message identifier; comparing the decrypted message identifier with the message identifier, and determining that the verification is successful when the comparison result is consistent.

[0083] The second server is another server configured in the server, used to provide services other than message services, such as authentication services.

[0084] Specifically, when the first client sends a target message to the group, it can encrypt the message identifier of the target message based on the first public key to obtain a second encrypted message, or encrypt both the message identifier and the message content of the target message based on the first public key to obtain a second encrypted message. The second encrypted message and the plaintext message identifier of the target message are then sent to the second server as message information. The message information may also include other information, such as the plaintext identifier of the first client; this is not limited here.

[0085] After receiving the message from the first client, the second server can obtain the first client's first private key for the panel message based on the message identifier. It then decrypts the encrypted message using the first private key to obtain the decrypted message identifier. This decrypted identifier is compared with the plaintext message identifier; if they match, verification is successful. After successful verification, the second server can send the target message information to the first server. Therefore, by having the second server verify the target message using the above method and then sending the target message information to the first server after successful verification, the security of the target message is improved, preventing the first client from tampering with the plaintext message identifier and other information.

[0086] Step 302: Generate reading status information for each second client based on the message information.

[0087] In some embodiments, the message information may include a group identifier and a message identifier for the target message.

[0088] The target message identifier can be carried in the message information of the target message sent by the first client to the second server, and then sent from the second server to the first server. The group identifier can be carried in the message sending request sent by the first client to the second server, and then stored by the second server in a preset location, so that the first server can obtain the group identifier from the preset location. The first client can send a message sending request to the second server before sending a self-destructing message; this request is used to request the second server to send the self-destructing message.

[0089] Accordingly, step 302 can be implemented in the following way: based on the group's identifier, obtain the identifiers of multiple second clients included in the group; for each second client, generate corresponding reading status information including the second client's identifier and the message identifier.

[0090] Specifically, the first server can obtain the identifiers of all second clients included in the group based on the group's identifier, and then generate corresponding reading status information for each second client, including the second client's identifier and message identifier.

[0091] In some embodiments, in addition to the group identifier and the target message identifier, the message information may also include a first encrypted message obtained by encrypting the message content based on the first public key, or a first encrypted message obtained by encrypting the message identifier and the message content based on the first public key. For each second client, the generated reading status information may include, in addition to the corresponding second client identifier and message identifier, the corresponding second client's public key and private key, so that when sending message content to the second client, the message content is encrypted according to the corresponding second client's private key.

[0092] Step 303: Store the message information and each reading status information in a preset location.

[0093] Step 304: Receive the message identifier and the identifier of the target client from the target message sent by the second server.

[0094] Among them, the message identifier and the target client identifier are sent by the second server after receiving the message identifier, group identifier and target client identifier sent by the target client, and verifying the group and target client based on the group identifier and target client identifier and the verification is successful.

[0095] In some embodiments, the first server may push a notification message to each of the second clients to remind them that they have received a message in the group. The notification message displayed by the second client may be an encrypted icon or text notification; this application does not impose any restrictions on this.

[0096] When a user corresponding to the target client in each of the second clients clicks the notification message, the action of reading the target message is triggered on the target client. Accordingly, the target client can send the message identifier of the target message to be read, the group identifier, and the target client identifier to the second server. Among them, the message identifier and the group identifier can be sent to the target client by the first server when pushing the notification message, or they can be sent to the target client by the second server when the target client requests to receive the message. This application does not impose any restrictions on this.

[0097] After receiving the message identifier, group identifier, and target client identifier from the target client, the second server can authenticate the group and target client based on the group identifier and target client identifier. If the authentication is successful, it sends the message identifier and target client identifier of the target message to the first server. The authentication process based on the group identifier and target client identifier may include verifying whether the group actually exists, whether the target client is indeed the target client and not an impersonator, and whether the target client is indeed in the group. The verification process can be found in relevant technologies and will not be elaborated here.

[0098] Step 305: Based on the message identifier and the identifier of the target client, determine the target client to read the target message.

[0099] In some embodiments, after the first server receives the message identifier of the target message and the identifier of the target client sent by the second server, it can determine that the target client has triggered the action of reading the target message, that is, the target client reads the target message.

[0100] Step 306: In response to the target client reading the target message among the multiple second clients included in the group, query the reading status information of the target message corresponding to the target client from a preset location, wherein the target message is the message sent by the first client in the group.

[0101] Step 307: If the reading status information is found, the message content of the target message is obtained based on the message information of the target message stored in the preset location, and the message content is sent to the target client so that the target client can display the message content. After the display time of the message content reaches the first preset time, the display is stopped and the message content is cleared.

[0102] Step 308: Clear the reading status information corresponding to the target client stored in the preset location, and after clearing the reading status information corresponding to all second clients stored in the preset location, clear the message information stored in the preset location.

[0103] The specific implementation process and principle of steps 306-308 can be found in the descriptions of other embodiments, and will not be repeated here.

[0104] In summary, the message processing method provided in this application, in response to a first client sending a target message in a group, obtains message information, generates reading status information corresponding to each second client based on the message information, and stores the message information and reading status information in a preset location. This enables the first server to store the message information of the target message and the reading status information corresponding to each second client in a preset location. By receiving the message identifier of the target message and the identifier of the target client sent by the second server, and based on the message identifier and the target client identifier, it determines that the target client is reading the target message. In response to the target client reading the target message among the multiple second clients included in the group, it queries the preset location for the reading status information of the target message corresponding to the target client. Here, the target message is the message sent by the first client in the group, and the reading status information is retrieved upon querying the target client's status. In the case of a message, based on the message information of the target message stored in a preset location, the message content of the target message is obtained and sent to the target client so that the target client can display the message content. After the message content is displayed for a first preset duration, the display stops and the message content is cleared. The reading status information of the target client corresponding to the preset location is also cleared. This ensures that once the target client in the second client of the group has read the target message once, it cannot read the target message again. Furthermore, by clearing the reading status information of all second clients stored in the preset location and then clearing the message information stored in the preset location, the message information of the target message is deleted and destroyed after all second clients in the group have read the target message. This effectively realizes the self-destruction of messages in point-to-group messages and improves the security of point-to-group messages.

[0105] The message processing method executed on the client side according to the embodiments of this application will be described below. The message processing method provided in the embodiments of this application is configured to be executed on a client. This client can be the target client in the above embodiments.

[0106] Figure 4 This is a flowchart illustrating another message processing method provided in an embodiment of this application.

[0107] like Figure 4 As shown, the message processing method may include the following steps 401-403.

[0108] Step 401: Receive the message content of the target message sent by the first server.

[0109] The message content of the target message is obtained by the first server and sent to the client using the message processing method of the first aspect embodiment described above.

[0110] Step 402: Display the message content.

[0111] Step 403: After the message content has been displayed for a first preset duration, stop displaying and clear the message content.

[0112] The first preset duration can be set as needed and is not limited here. The first preset duration can be a fixed duration set in the client or the duration sent from the server to the client; this application does not impose any restrictions on this. Furthermore, the first preset duration can be the same or different for different messages.

[0113] In some embodiments, after receiving the message content of the target message, the client can display the message content and start a countdown for a first preset duration on the client. When the countdown reaches zero, that is, after the display duration of the message content reaches the first preset duration, the display of the message content stops and the message content is cleared.

[0114] In some embodiments, the message content received by the client may be an encrypted message content that has been encrypted based on the client's private key for the target message.

[0115] Accordingly, before step 402, the process may further include: receiving the client's public key for the target message sent by the first server; and decrypting the encrypted message content based on the public key. The client can then display the decrypted message content.

[0116] In some embodiments, to prevent the leakage of target information, the client may also disable operations such as taking screenshots of the screen.

[0117] The message processing method provided in this application embodiment receives the message content of a target message sent by a first server through a client, displays the message content, and stops displaying and clears the message content after the display duration of the message content reaches a first preset duration, thereby realizing the self-destruction of the target message in the client that reads the message.

[0118] The following is combined Figure 5 , Figure 6 The interaction diagram shown illustrates the message processing method provided in the embodiments of this application.

[0119] Figure 5 This is an interaction diagram of the message processing method provided in the embodiments of this application. Figure 6This is another interaction diagram of the message processing method provided in this application embodiment. The message processing method provided in this application embodiment is executed by a target client among the first server, second server, first client, and second client.

[0120] Step 501: The first client sends a message sending request to the second server. The message sending request includes the group identifier and the identifier of the first client.

[0121] In some embodiments, the group chat window interface may provide a button with a self-destructing message trigger function. The first client can touch this button before sending a self-destructing message, thereby triggering a message sending request to the second server. This request is used to request the sending of a self-destructing message from the second server. It should be noted that in some embodiments, messages sent after the first client sends the message sending request to the second server are all self-destructing messages. The first client can touch the button again to cancel the self-destructing message function.

[0122] Step 502: The second server authenticates the group and the first client based on the group's identifier and the first client's identifier.

[0123] In some embodiments, after receiving a message sending request from the first client, the second server can authenticate the group and the first client based on the group identifier and the first client identifier included in the message sending request.

[0124] The authentication process involves verifying the identity of the group and the first client based on their identifiers. This may include verifying whether the group actually exists, whether the first client is indeed the first client and not an imposter, and whether the first client is indeed in the group. The verification process can refer to relevant technologies and will not be elaborated here.

[0125] Step 503: After successful verification, the second server generates a message identifier for the target message based on the group identifier, and generates a first public key and a first private key for the target message for the first client.

[0126] The message identifier of the target message is the message identifier of the first message sent after the first client sends a message sending request to the second server.

[0127] Step 504: The second server stores the message identifier, group identifier, and first private key of the target message in a preset location, and sends the message identifier and first public key to the first client.

[0128] In some embodiments, the second server may also store the identifier of the first client, the first public key, and the corresponding storage time in a preset location. The storage time is the time it takes for the second server to store each message in the preset location, and this storage time can be used as the creation time of the target message.

[0129] Step 505: The first client sends the message information of the target message to the second server. The message information includes: the message identifier of the target message, a first encrypted message obtained by encrypting the message content of the target message based on the first public key, and a second encrypted message obtained by encrypting the message identifier based on the first public key.

[0130] Step 506: The second server obtains the first private key based on the message identifier.

[0131] Step 507: The second server decrypts the second encrypted message based on the first private key to obtain the decrypted message identifier.

[0132] In some embodiments, since the message identifier of the target message, the group identifier, and the first private key are stored in a preset location, the second server can obtain the first private key of the first client for the target message based on the message identifier, and then decrypt the second encrypted message based on the first private key to obtain the decrypted message identifier.

[0133] Step 508: The second server compares the decrypted message identifier with the original message identifier. If the comparison results are consistent, the verification is confirmed to be successful.

[0134] Step 509: The second server sends a message to the first server.

[0135] Step 510: The first server obtains the group's identifier.

[0136] Step 511: The first server obtains the identifiers of multiple second clients included in the group based on the group's identifier.

[0137] In some embodiments, the first server may obtain the group's identifier from a preset location.

[0138] Step 512: For each second client, the first server generates corresponding information including the second client's identifier, message identifier, and the second client's public and private keys for the target message's reading status.

[0139] Step 513: The first server stores the message information and the reading status information corresponding to each second client in a preset location.

[0140] Step 514: Among the multiple second clients, the target client sends the message identifier, group identifier, and target client identifier of the target message to the second server.

[0141] Step 515: The second server authenticates the group and the target client based on the group's identifier and the target client's identifier.

[0142] Step 516: If the verification is successful, the second server sends a message identifier and the identifier of the target client to the first server.

[0143] Step 517: The first server determines the target client to read the target message based on the message identifier and the target client's identifier.

[0144] Step 518: The first server responds to the target client by reading the target message and queries the reading status information of the target message corresponding to the target client from a preset location.

[0145] Step 519: When the first server finds the reading status information, it retrieves the first encrypted message from the message information stored in the preset location.

[0146] Step 520: The first server obtains the first private key.

[0147] Step 521: The first server decrypts the first encrypted message based on the first private key to obtain the decrypted message content.

[0148] Step 522: The first server obtains the second public key and second private key of the target client for the target message from the message reading message corresponding to the target client.

[0149] Step 523: The first server encrypts the decrypted message content based on the second private key to obtain the encrypted message content.

[0150] Step 524: The first server sends the encrypted message content and the second public key to the target client.

[0151] Step 525: The target client decrypts the encrypted message content using the second public key to obtain the message content.

[0152] Step 526: The target client displays the message content, and after the message content has been displayed for a first preset duration, the display stops and the message content is deleted.

[0153] Step 527: The first server clears the reading status information corresponding to the target client stored in the preset location, and after clearing the reading status information corresponding to all second clients stored in the preset location, clears the message information stored in the preset location.

[0154] Therefore, by storing the message information of the target message sent by the first client in the group, along with the reading status information corresponding to each of the second clients in the group, in a preset location, when the target client in the second client reads the target message and retrieves the reading status information corresponding to the target client from the preset location, the message content of the target message is obtained based on the message information stored in the preset location, the message content of the target message is sent to the target client, and the reading status information corresponding to the target client stored in the preset location is cleared. This ensures that once the target client in the second client of the group has read the target message once, it cannot read the target message again. Furthermore, the message content is displayed through the target client, and after the display time of the message content reaches a first preset time, the display stops and the message content is cleared. This achieves the "read-and-burn" mechanism for the target message in the client that reads the message. Moreover, by clearing the message information stored in the preset location after clearing the reading status information corresponding to all the second clients in the group, the message information of the target message is deleted and destroyed after all the second clients in the group have read the target message. This effectively realizes the "read-and-burn" mechanism for point-to-group messages and improves the security of point-to-group messages.

[0155] In some embodiments, the first server can also periodically query the creation time of the target message and determine the storage duration of the target message based on the creation time and the current time. It then determines whether the storage duration exceeds a second preset duration. If it does, the server clears the message information of the target message stored in the preset location and the reading status information corresponding to each second client. Thus, regardless of whether all second clients in the group have finished reading the target message, the message information of the target message stored in the preset location and the reading status information corresponding to each second client are cleared when the storage duration of the target message exceeds the preset duration, improving the security of point-to-group messages.

[0156] Figure 7 This is a schematic diagram of the server structure provided in an embodiment of this application. The server can execute the message processing method described in the first aspect embodiment. The server can be the first server in the aforementioned embodiment.

[0157] like Figure 7 As shown, the server 700 may include: a query module 710, a first acquisition module 720, a sending module 730, and a clearing module 740.

[0158] The query module 710 is used to query the reading status information of the target message corresponding to the target client from a preset position in response to the target client reading the target message among the multiple second clients included in the group. The target message is the message sent by the first client in the group.

[0159] The first acquisition module 720 is used to acquire the message content of the target message based on the message information of the target message stored in a preset location when the reading status information is found;

[0160] The sending module 730 is used to send message content to the target client so that the target client can display the message content, and stop displaying and clear the message content after the display time of the message content reaches the first preset time.

[0161] The clearing module 740 is used to clear the reading status information corresponding to the target client stored in the preset location, and after clearing the reading status information corresponding to all second clients stored in the preset location, clear the message information stored in the preset location.

[0162] Furthermore, in one possible implementation of this application embodiment, the first acquisition module 720 is specifically used for:

[0163] The first encrypted message is obtained from the message information stored in the preset location. The first encrypted message is obtained by encrypting the message content of the target message based on the first public key of the first client for the target message.

[0164] Obtain the first private key of the first client for the target message, and decrypt the first encrypted message based on the first private key to obtain the decrypted message content;

[0165] Obtain the second public key and second private key of the target client for the target message from the reading status information corresponding to the target client;

[0166] The decrypted message content is encrypted using the second private key to obtain the encrypted message content.

[0167] The sending module is specifically used to send the encrypted message content and the second public key to the target client, so that the target client can decrypt the encrypted message content based on the second public key.

[0168] Furthermore, in one possible implementation of this application embodiment, the server 700 further includes:

[0169] The second acquisition module is used to acquire message information in response to the first client sending a target message in the group;

[0170] The generation module is used to generate reading status information for each second client based on the message information.

[0171] The storage module is used to store message information and reading status information to a preset location.

[0172] Further, in one possible implementation of this application embodiment, the message information includes: a message identifier of the target message, and a second encrypted message obtained by encrypting the message identifier based on the first public key of the first client for the target message; the second acquisition module is specifically used for:

[0173] Receive message information sent by the second server. The message information is received by the second server from the first client, and after the second server verifies the target message and the verification is successful, it is sent back.

[0174] Based on the message identifier, obtain the first private key of the first client for the target message, and decrypt the second encrypted message based on the first private key to obtain the decrypted message identifier;

[0175] The decrypted message identifier is compared with the original message identifier. If the comparison results are consistent, the verification is considered successful.

[0176] Furthermore, in one possible implementation of this application embodiment, the message information includes a group identifier and a target message identifier; correspondingly, the generation module is specifically used for:

[0177] Based on the group's identifier, obtain the identifiers of multiple second clients included in the group;

[0178] For each second client, generate corresponding reading status information including the second client's identifier and the message identifier.

[0179] Furthermore, in one possible implementation of this application embodiment, the server 700 further includes:

[0180] The first receiving module is used to receive the message identifier and the identifier of the target client from the target message sent by the second server. The message identifier and the identifier of the target client are sent by the second server after receiving the message identifier, the group identifier and the identifier of the target client sent by the target client, and verifying the group and the target client based on the group identifier and the identifier of the target client and the verification is successful.

[0181] The first determination module is used to determine the target client to read the target message based on the message identifier and the identifier of the target client.

[0182] Furthermore, in one possible implementation of this application embodiment, the server 700 further includes:

[0183] The third acquisition module is used to obtain the creation time of the target message;

[0184] The second determination module is used to determine the storage duration of the target message based on the creation time and the current time;

[0185] The clearing module is also used to clear the message information stored at the preset location and the reading status information corresponding to each second client when the storage time exceeds the second preset duration.

[0186] It should be noted that the explanations and descriptions in the aforementioned first server-side message processing method embodiment also apply to the server side of this embodiment, and will not be repeated here.

[0187] The server in this application embodiment stores the message information of the target message sent by the first client in the group, along with the reading status information corresponding to each second client in the group, in a preset location. When the target client in the second client reads the target message and retrieves the reading status information corresponding to the target client from the preset location, the server obtains the message content of the target message based on the message information stored in the preset location, and sends the message content to the target client so that the target client can display the message content. After the message content is displayed for a first preset duration, the display stops and the message content is cleared. Then, the reading status information corresponding to the target client stored in the preset location is cleared. This ensures that once the target client in the second client group has read the target message, it cannot read the target message again. Furthermore, by clearing the message information stored in the preset location after clearing the reading status information corresponding to all second clients, the server effectively achieves the deletion and destruction of the target message information after all second clients in the group have read the target message, thereby improving the security of point-to-group messages.

[0188] To implement the above embodiments, this application also provides a client.

[0189] Figure 8 This is a schematic diagram of the client provided in an embodiment of this application. The client can execute the message processing method described in the second aspect embodiment.

[0190] like Figure 8 As shown, the client 800 may include: a second receiving module 810, a display module 820, and a processing module 830.

[0191] The second receiving module 810 is used to receive the message content of the target message sent by the first server using the message processing method of the first aspect embodiment described above.

[0192] Display module 820 is used to display message content;

[0193] The processing module 830 is used to stop displaying and clear the message content after the display time of the message content reaches the first preset time.

[0194] Furthermore, in one possible implementation of this application embodiment, the message content is the encrypted message content based on the client's private key for the target message;

[0195] Client 800 also includes:

[0196] The third receiving module is used to receive the public key of the client for the target message sent by the first server;

[0197] The decryption module is used to decrypt encrypted message content based on the public key.

[0198] It should be noted that the explanations and descriptions in the aforementioned message processing method embodiment executed on the target client side also apply to the client of this embodiment, and will not be repeated here.

[0199] The client in this embodiment of the application receives the message content of the target message sent by the first server, displays the message content, and stops displaying and clears the message content after the display time of the message content reaches a first preset time, thereby realizing the self-destruction of the target message in the client that reads the message.

[0200] To implement the above embodiments, this application also proposes a message processing system, including a first client, a second client, and a first server.

[0201] The first client is used to send the target message in the group;

[0202] A first server is configured to execute the message processing method described in the first aspect of the embodiment.

[0203] The second client is used to execute the message processing method of the second aspect embodiment described above.

[0204] It should be noted that the description of the message processing method embodiments in the above embodiments also applies to the first client, second client and first server in the message processing system of this application embodiment, and will not be repeated here.

[0205] Furthermore, in one possible implementation of this application embodiment, the message processing system may further include a second server. The second server is another server configured in the server, used to provide services other than message services, such as authentication services.

[0206] The second server is used for:

[0207] Receive a message sending request from the first client. The message sending request includes the group identifier and the first client identifier.

[0208] The group and the first client are authenticated based on their identifiers.

[0209] In one possible implementation of this application embodiment, the second server is further configured to:

[0210] Generate a message identifier for the target message based on the group's identifier;

[0211] Generate the first client's public and private keys for the target message;

[0212] The message identifier, group identifier, and private key of the target message are stored in a preset location, and the message identifier and public key are sent to the first client.

[0213] In one possible implementation of this application embodiment, the second server is further configured to:

[0214] The message information received from the first client includes: the message identifier of the target message, and the encrypted message obtained by encrypting the message identifier based on the first public key of the first client for the target message;

[0215] Based on the message identifier, obtain the first private key of the first client for the target message, and decrypt the encrypted message based on the first private key to obtain the decrypted message identifier;

[0216] The decrypted message identifier is compared with the original message identifier. If the comparison results are consistent, the verification is considered successful, and the message information is sent to the first server.

[0217] In one possible implementation of this application embodiment, the second server is further configured to:

[0218] The message identifier, group identifier, and second client identifier of the target message received from the second client;

[0219] Authenticate the group and the second client based on the group's identifier and the second client's identifier;

[0220] If the verification is successful, a message identifier and a second client identifier are sent to the first server.

[0221] The message processing system provided in this application embodiment stores the message information of a target message sent by a first client in a group, along with the reading status information corresponding to each second client in the group, in a preset location via a first server. When a target client in a second client reads the target message and retrieves the corresponding reading status information from the preset location, the system obtains the message content of the target message based on the message information stored in the preset location, sends the message content to the target client, and then clears the reading status information corresponding to the target client stored in the preset location. This prevents the target client in the group from reading the target message again after it has been read once. The system also displays the message content on the target client, and stops displaying and clears the message content after the display duration reaches a first preset duration. This achieves self-destruction of the target message in the client reading the message. Furthermore, by clearing the message information stored in the preset location after clearing the reading status information corresponding to all second clients, the system effectively achieves self-destruction of the target message in point-to-group messages, improving the security of point-to-group messages.

[0222] To implement the above embodiments, this application also proposes an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a message processing method as proposed in any of the foregoing embodiments of this application.

[0223] To implement the above embodiments, this application also proposes a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute a message processing method as proposed in any of the foregoing embodiments of this application.

[0224] To implement the above embodiments, this application also proposes a computer program product, including a computer program that, when executed by a processor, implements the message processing method proposed in any of the foregoing embodiments of this application.

[0225] Figure 9 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present application is shown. Figure 9 The electronic device 900 shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application. The electronic device may be a server or a terminal device.

[0226] like Figure 9As shown, the electronic device 900 is presented in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).

[0227] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0228] Electronic device 1600 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 900, including volatile and non-volatile media, removable and non-removable media.

[0229] Memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and / or cache memory 32. Electronic device 1600 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 9 Not shown; usually referred to as a "hard drive"). Although Figure 9Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this application.

[0230] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this application.

[0231] Electronic device 900 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with electronic device 900, and / or with any device that enables electronic device 900 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, electronic device 900 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 900 via bus 18. It should be understood that, although... Figure 9 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0232] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the foregoing embodiments.

[0233] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0234] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0235] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0236] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0237] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0238] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0239] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0240] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. A message processing method characterized by, Applied to a first server, the method comprises: In response to a target client reading a target message in a plurality of second clients included in a group, querying reading state information of the target message corresponding to the target client from a preset position, wherein the target message is a message sent by a first client in the group; In the case of querying the reading state information, based on the message information of the target message stored in the preset position, obtaining the message content of the target message, and sending the message content to the target client, so that the target client displays the message content, and stops displaying and clearing the message content after the display duration of the message content reaches a first preset duration; Clearing the reading state information corresponding to the target client stored in the preset position, and clearing the message information stored in the preset position after clearing the reading state information corresponding to all second clients respectively stored in the preset position.

2. The method of claim 1, wherein, Based on the message information of the target message stored in the preset position, obtaining the message content of the target message, and sending the message content to the target client, comprising: Obtaining a first encrypted message from the message information stored in the preset position, wherein the first encrypted message is obtained by encrypting the message content of the target message based on the first public key of the first client for the target message; Obtaining the first private key of the first client for the target message, and decrypting the first encrypted message based on the first private key to obtain decrypted message content; From the reading state information corresponding to the target client, obtain the second public key and the second private key of the target client for the target message; Based on the second private key, the decrypted message content is encrypted to obtain encrypted message content, and the encrypted message content and the second public key are sent to the target client, so that the target client decrypts the encrypted message content based on the second public key.

3. The method of claim 1, wherein, The method further comprises: In response to the first client sending the target message in the group, obtaining the message information; According to the message information, generate reading state information corresponding to each second client; Store the message information and each reading state information to the preset position.

4. The method of claim 3, wherein, The message information includes: message identifier of the target message, and second encrypted message obtained by encrypting the message identifier based on the first public key of the first client for the target message; In response to the first client sending the target message in the group, obtaining the message information, comprising: Receiving the message information sent by the second server, wherein the message information is sent by the second server after receiving the message information sent by the first client and passing the message verification of the target message by using the following way: Based on the message identifier, a first private key of the first client for the target message is obtained, and the second encrypted message is decrypted based on the first private key to obtain a decrypted message identifier; The decrypted message identifier is compared with the message identifier, and when the comparison result is consistent, it is determined that the verification is passed.

5. The method of claim 3, wherein, The message information includes an identifier of the group and a message identifier of the target message; The message information includes an identifier of the group and a message identifier of the target message; The message information includes an identifier of the group and a message identifier of the target message; Based on the identifier of the group, the identifiers of a plurality of second clients included in the group are obtained; 6. The method according to any one of claims 1-5, characterized in that, For each of the second clients, the reading state information corresponding to the second client is generated, which includes the identifier of the second client and the message identifier. Before the target client reads the target message in the plurality of second clients included in the group, the method further comprises: Receiving the message identifier of the target message and the identifier of the target client sent by the second server, wherein the message identifier and the identifier of the target client are sent by the second server in the case that the second server receives the message identifier, the identifier of the group and the identifier of the target client sent by the target client, and performs identity authentication on the group and the target client according to the identifier of the group and the identifier of the target client, and the authentication is passed; 7. The method according to any one of claims 1-5, characterized in that, Based on the message identifier and the identifier of the target client, it is determined that the target client reads the target message. The method further comprises: Obtaining the creation time of the target message; Based on the creation time and the current time, the storage duration of the target message is determined; 8. A message processing method characterized by, In the case that the storage duration exceeds a second preset duration, the message information stored in the preset position and the reading state information corresponding to each of the second clients are cleared. Applied to a client, the method comprises: Receiving the message content of the target message sent by the first server using the message processing method of any one of claims 1-7; Displaying the message content; 9. The method of claim 8, wherein, After the display duration of the message content reaches a first preset duration, stop displaying and clearing the message content. The message content is an encrypted message content encrypted based on a private key of the client for the target message; Before displaying the message content, the method further comprises: Receiving the public key of the client for the target message sent by the first server; 10. A server, characterized by Decrypting the encrypted message content based on the public key. Comprise: The query module is configured to query the reading state information of the target message corresponding to the target client from a preset position in response to the target client reading the target message in a plurality of second clients included in a group, wherein the target message is a message sent by a first client in the group; The first obtaining module is configured to, in the case that the reading state information is queried, obtain the message content of the target message based on the message information of the target message stored in the preset position; The first obtaining module is configured to, in the case that the reading state information is queried, obtain the message content of the target message based on the message information of the target message stored in the preset position; The sending module is configured to send the message content to the target client, so that the target client displays the message content, and stops displaying and clears the message content after a display duration of the message content reaches a first preset duration. The clearing module is configured to clear the reading state information corresponding to the target client stored in the preset position, and clear all reading state information corresponding to second clients respectively stored in the preset position after clearing the message information stored in the preset position.

11. A client, characterized in that, The method comprises the following steps: The second receiving module is configured to receive message content of a target message sent by a first server using the message processing method in any one of claims 1-7. The display module is configured to display the message content. The processing module is configured to stop displaying and clear the message content after a display duration of the message content reaches a first preset duration.

12. A message processing system characterized by The method comprises the following steps: A first client for sending a target message in a group; A first server for executing the message processing method in any one of claims 1-7; A second client for executing the message processing method in claim 8 or 9.

13. The message processing system of claim 12, wherein, Further comprising a second server configured to: Receive a message sending request sent by the first client, wherein the message sending request comprises an identifier of a group and an identifier of the first client; Verify the group and the first client based on the identifier of the group and the identifier of the first client.

14. The message processing system of claim 13, wherein, The second server is further configured to: Generate a message identifier of the target message based on the identifier of the group; Generate a public key and a private key of the first client for the target message; Store the message identifier of the target message, the identifier of the group, and the private key in a preset position, and send the message identifier and the public key to the first client.

15. The message processing system of claim 13, wherein, The second server is further configured to: Receive message information of the target message sent by the first client, wherein the message information comprises the message identifier of the target message, and an encrypted message obtained by encrypting the message identifier based on a first public key of the first client for the target message; Obtain a first private key of the first client for the target message based on the message identifier, and decrypt the encrypted message based on the first private key to obtain a decrypted message identifier; Compare the decrypted message identifier with the message identifier, and determine that the verification is passed when the comparison result is consistent, and send the message information to the first server.

16. The message processing system of claim 13, wherein, The second server is further configured to: Receive the message identifier of the target message, the identifier of the group, and the identifier of the second client sent by the second client; Verify the group and the second client based on the identifier of the group and the identifier of the second client; In the case of passing the verification, send the message identifier and the identifier of the second client to the first server.

17. An electronic device, comprising: The method comprises the following steps: At least one processor; And The memory is connected in communication with the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7, or the method of claim 8 or 9.

18. A non-transitory computer-readable storage medium having stored thereon computer instructions, wherein, The computer instructions are for causing the computer to perform the method of any one of claims 1-7, or the method of claim 8 or 9.

Citation Information

Patent Citations

  • Reading state display method of group messages, instant messaging client, and server

    CN108400924A

  • Information prompting method, device and equipment and storage medium

    CN112291134A