Display method of session messages, storage medium and electronic device
By adjusting viewing permissions using the target string in the group chat window, directly displaying session messages, solving the problem of low-efficiency display of session messages in the prior art, and simplifying the interaction process and improving efficiency.
Patent Information
- Application Number
- CN202111222139.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-20
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2041-10-20
AI Technical Summary
In group chat scenarios, the display efficiency of session messages in the prior art is low, and users need to cumbersomely create new chat windows for separate interactions.
Adjust the viewing permissions of the user account through the target string in the group chat window, and directly display the target session message in the chat window, eliminating the step of creating a new chat window.
It improves the efficiency of displaying session messages and realizes the interaction of session messages directly on specific user accounts in group chat scenarios.
Smart Images

Figure CN116015992B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular, to a method for displaying session messages, a storage medium, and an electronic device. Background Art
[0002] In the scenario of group chat, if a user wants to specifically interact with a certain group member for session messages, the commonly used method is to create a new chat window separately and interact with that member for session messages in the new chat window. However, the above-mentioned method of interacting with session messages has relatively cumbersome steps and reduces the display efficiency of session messages. That is, there is a technical problem of low display efficiency of session messages in the related art.
[0003] In view of the above problems, no effective solution has been proposed yet. Summary of the Invention
[0004] Embodiments of the present invention provide a method for displaying session messages, a storage medium, and an electronic device to at least solve the technical problem of low display efficiency of session messages.
[0005] According to one aspect of the embodiments of the present invention, a method for displaying session messages is provided, including: displaying a chat window of a target group where a first user account is located in a first client, where at least three user accounts are included in the target group; displaying a target string and a target session message to be interacted in a target information input box of the first client, where the target string carries account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message; in response to a sending operation performed on the target string and the target session message, displaying the target string and the target session message in the chat window.
[0006] According to one aspect of the embodiments of the present invention, another method for displaying session messages is provided, including: obtaining a target string and a target session message to be interacted sent by a first client of a first user account, where the first user account is a user account in a target group, at least three user accounts are included in the target group, the target string carries account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message; parsing the target string to obtain the character format of the target string; in the case where the character format of the target string is the target specified format of a second user account, forwarding the target session message to a second client of the second user account, where the at least one target user account includes the second user account.
[0007] According to another aspect of the embodiments of the present invention, there is also provided a display device for session messages, including: a first display unit, configured to display a chat window of a target group where a first user account is located in a first client, where the target group includes at least three user accounts; a second display unit, configured to display a target string and a target session message to be interacted with in a target information input box of the first client, where the target string carries account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message; a third display unit, configured to, in response to a sending operation performed on the target string and the target session message, display the target string and the target session message in the chat window.
[0008] As an optional solution, the second display unit includes: a first display module, configured to display a first string and the target session message in the target information input box, where the first string carries account characters of the at least one target user account, and the first string is used to indicate that the target user account is allowed to view the target session message.
[0009] As an optional solution, the first display module further includes: a first display sub-module, configured to display the first string, the target session message, and a first prompt message in the chat window, where the first prompt message is used to prompt that the target session message allows the target user account to view the target session message.
[0010] As an optional solution, the second display unit includes: a second display module, configured to display a second string and the target session message in the target information input box, where the second string carries account characters of the at least one target user account, and the second string is used to indicate that the target user account is prohibited from viewing the target session message.
[0011] As an optional solution, the second display module further includes: a second display sub-module, configured to display the second string, the target session message, and a second prompt message in the chat window, where the second prompt message is used to prompt that the target session message prohibits the target user account from viewing the target session message.
[0012] As an alternative solution, it includes: a first acquisition unit, configured to acquire a target specified character in the target message input box before the above-mentioned display of the target string and the target session message to be interacted with, where the above-mentioned target string includes the above-mentioned target specified character; a second acquisition unit, configured to acquire a target account character in the target message input box before the above-mentioned display of the target string and the target session message to be interacted with, where the above-mentioned target account character is the account character of the above-mentioned at least one target user account.
[0013] As an alternative solution, it includes: a fourth display unit, configured to display a target account list in the target message input box when the above-mentioned target specified character is acquired before the above-mentioned display of the target string and the target session message to be interacted with, where the above-mentioned target account list displays the account characters of the above-mentioned at least three user accounts; a fifth display unit, configured to display the above-mentioned target account character in the target message input box in response to a selection operation triggered on the above-mentioned target account list before the above-mentioned display of the target string and the target session message to be interacted with.
[0014] As an alternative solution, the above-mentioned first acquisition unit includes: a third display module, configured to display a third prompt message when a first specified sub-character is acquired in the target message input box, where the above-mentioned target specified character includes the above-mentioned first specified sub-character, and the above-mentioned third prompt message is used to prompt to input a second specified sub-character in the target message input box to indicate the viewing permission of the session message to be interacted with, input by the above-mentioned first user account, by at least one account among the above-mentioned at least three user accounts; an acquisition module, configured to acquire the above-mentioned second specified sub-character in the target message input box, where the above-mentioned target specified character includes the above-mentioned second specified sub-character.
[0015] As an alternative solution, the above-mentioned device further includes: a third acquisition unit, configured to acquire a target additional information to be interacted with when a third string is displayed in the target information input box, where the above-mentioned third string carries the account characters of the above-mentioned at least one target user account, and the above-mentioned third string is used to indicate the viewing permission of the above-mentioned target user account for the above-mentioned target additional message; a sixth display unit, configured to display the above-mentioned third string and the above-mentioned target additional message in the chat window in response to a sending operation performed on the above-mentioned third string and the above-mentioned target additional message.
[0016] As an alternative solution, the above third display unit includes: a sending module, configured to send the target string and the target session message to a target server in response to a sending operation performed on the target string and the target session message, where the target server is configured to parse the target string and, when the character format of the target string is the target specified format of the second user account, forward the target session message to the second client of the second user account, and the at least one target user account includes the second user account; a fourth display module, configured to display the target string and the target session message on the chat window.
[0017] According to another aspect of the embodiments of the present invention, there is also provided another display device for session messages, including: a fourth obtaining unit, configured to obtain a target string and a target session message to be interacted sent by a first client of a first user account, where the first user account is a user account in a target group, at least three user accounts are included in the target group, an account character of at least one target user account among the at least three user accounts is carried in the target string, and the target string is used to indicate the viewing permission of the target user account for the target session message; a parsing unit, configured to parse the target string to obtain the character format of the target string; a forwarding unit, configured to forward the target session message to the second client of the second user account when the character format of the target string is the target specified format of the second user account, where the at least one target user account includes the second user account.
[0018] As an alternative solution, the above forwarding unit includes: a temporary storage module, configured to temporarily store the target session message in the target server when the communication channel between the second client and the target server is in a closed state; a forwarding module, configured to forward the target session message to the second client of the second user account when the communication channel between the second client and the target server is in an open state.
[0019] According to yet another aspect of the embodiments of the present application, there is provided a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the display method for session messages as described above.
[0020] According to another aspect of the embodiments of the present invention, an electronic device is further provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. Wherein, the above-mentioned processor executes the above-mentioned display method of the session message through the computer program.
[0021] In the embodiments of the present invention, a chat window of a target group where the first user account is located is displayed in the first client, where at least three user accounts are included in the above-mentioned target group; a target string and a target session message to be interacted with are displayed in the target information input box of the above-mentioned first client, where the above-mentioned target string carries account characters of at least one target user account among the above-mentioned at least three user accounts, and the above-mentioned target string is used to indicate the viewing permission of the above-mentioned target user account for the above-mentioned target session message; in response to the sending operation performed on the above-mentioned target string and the above-mentioned target session message, the above-mentioned target string and the above-mentioned target session message are displayed in the above-mentioned chat window. By indicating the viewing permission of a specific target user account in the target group for the session message through the target string, the step of creating a new chat window is omitted, and thus the purpose of directly interacting with the session message for a specific user account in the group chat scenario is achieved, thereby realizing the technical effect of improving the display efficiency of the session message, and further solving the technical problem of the low display efficiency of the session message. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of this application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1 is a schematic diagram of an application environment of an optional display method of a session message according to an embodiment of the present invention;
[0024] Figure 2 is a schematic diagram of a process of an optional display method of a session message according to an embodiment of the present invention;
[0025] Figure 3 is a schematic diagram of an optional display method of a session message according to an embodiment of the present invention;
[0026] Figure 4 is a schematic diagram of another optional display method of a session message according to an embodiment of the present invention;
[0027] Figure 5 is a schematic diagram of another optional display method of a session message according to an embodiment of the present invention;
[0028] Figure 6Schematic diagram of another alternative method for displaying session messages according to an embodiment of the present invention;
[0029] Figure 7 Schematic diagram of another alternative method for displaying session messages according to an embodiment of the present invention;
[0030] Figure 8 Schematic diagram of another alternative method for displaying session messages according to an embodiment of the present invention;
[0031] Figure 9 Schematic diagram of another alternative method for displaying session messages according to an embodiment of the present invention;
[0032] Figure 10 Schematic diagram of another alternative method for displaying session messages according to an embodiment of the present invention;
[0033] Figure 11 Schematic diagram of the process of another alternative method for displaying session messages according to an embodiment of the present invention;
[0034] Figure 12 Schematic diagram of an alternative display device for session messages according to an embodiment of the present invention;
[0035] Figure 13 Schematic diagram of another alternative display device for session messages according to an embodiment of the present invention;
[0036] Figure 14 Schematic diagram of the structure of an alternative electronic device according to an embodiment of the present invention. Detailed implementation manners
[0037] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0038] It should be noted that the terms "first", "second", etc. in the description, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0039] According to one aspect of an embodiment of the present invention, a method for displaying session messages is provided. Optionally, as an alternative implementation manner, the above-mentioned method for displaying session messages can be, but is not limited to, applied to an environment as Figure 1 shown. Among them, it may include, but is not limited to, a user device 102, a network 110 and a server 112. Among them, the user device 102 may include, but is not limited to, a display 108, a processor 106 and a memory 104.
[0040] The specific process can be as follows:
[0041] Step S102, the user device 102 obtains an operation instruction corresponding to a send operation. Among them, the operation instruction also carries a target string and a target session message to be interacted in the target information input box of the first client;
[0042] Steps S104 - S106, the user device 102 sends the operation instruction to the server 112 through the network 110;
[0043] Step S108, the server 112 looks up the group identifier of the target group indicated by the target string and the account identifier of the target account in the target group through the database 114, and processes the target string through the processing engine 116 to generate an execution result of the send operation. Among them, the execution result is used to indicate the object to which the target session message is to be sent, that is, the account to be sent in the target group;
[0044] Steps S110 - S112, the server 112 sends the execution result to the user device 102 through the network 110. The processor 106 in the user device 102 displays the target string and the target session message on the display 108 according to the execution result, and stores the target string and the target session message in the memory 104.
[0045] Except Figure 1In addition to the examples shown, the above steps can be independently completed by the user device 102, that is, the user device 102 performs steps such as generating the execution result, thereby reducing the processing pressure on the server. The user device 102 includes, but is not limited to, a handheld device (such as a mobile phone), a laptop computer, a desktop computer, a vehicle-mounted device, etc. The present invention does not limit the specific implementation manner of the user device 102.
[0046] Optionally, as an alternative implementation, as Figure 2 shown, the method for displaying a session message includes:
[0047] S202, display a chat window of a target group where the first user account is located in the first client, where the target group includes at least three user accounts;
[0048] S204, display a target string and a target session message to be interacted with in a target information input box of the first client, where the target string carries account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message;
[0049] S206, in response to a send operation performed on the target string and the target session message, display the target string and the target session message in the chat window.
[0050] Optionally, in this embodiment, the above method for displaying a session message can be, but is not limited to, applied in a group chat scenario. By using the target string to adjust the viewing permission of group members for the session message, the interaction of private session messages can be directly implemented in the group chat window, thereby improving the display efficiency of the session message.
[0051] Optionally, in this embodiment, the target group can be, but is not limited to, understood as the group corresponding to the target group identifier. During the display process of the target session message, the target group identifier of the target group can be, but is not limited to, obtained first, and then the target session message is displayed in the corresponding group chat window based on the target group identifier.
[0052] Optionally, in this embodiment, the target information input box can be, but is not limited to, the first input box configured on the chat window of the target group, or can also be, but is not limited to, the second input box in the first client, and the second input box has an associated relationship with the chat window of the target group. The relevant information obtained in the second input box can be displayed in the chat window of the target group through this associated relationship.
[0053] Optionally, in this embodiment, the target string carries account characters of at least one target user account among at least three user accounts; in addition, the target string may but is not limited to carry target specified characters for indicating the viewing permission of the target user account for the target session message.
[0054] Optionally, in this embodiment, the viewing permission of the target user account for the target session message may but is not limited to include: allowing the target user account to view all / some of the target session messages, or prohibiting the target user account from viewing all / some of the target session messages, or allowing the target user account to view all / some of the target session messages within a first predetermined time period, or prohibiting the user account from viewing all / some of the target session messages within a second predetermined time period.
[0055] Optionally, in this embodiment, the type of the target string may but is not limited to multiple types. For example, the first type of target string is used to indicate that the target user account is allowed to view all of the target session messages, the second type of target string is used to indicate that the target user account is prohibited from viewing all of the target session messages, the third type of target string is used to indicate that the target user account is allowed to view some of the target session messages, the fourth type of target string is used to indicate that the target user account is prohibited from viewing some of the target session messages, the fifth type of target string is used to indicate that the target user account is allowed to view the target session messages within a first preset time period, the sixth type of target string is used to indicate that the target user account is prohibited from viewing the target session messages within a second preset time period, etc. And multiple types of target strings can be used flexibly. For example, first use the first type of target string to select user account 1, user account 2, user account 3, and user account 4 in the target group and allow them to view all of the target session messages, and then use the second type of target string to select user account 1 from user account 1, user account 2, user account 3, and user account 4 and prohibit it from viewing all of the target session messages. In this way, the final presented viewing permission includes: user account 1, user account 2, and user account 4 in the target group are allowed to view all of the target session messages.
[0056] It should be noted that usually, the chat window of a group provides a public and convenient chat platform for group members (user accounts). The conversation messages generated in this chat platform are often also public to group members. However, in this group chat scenario, there is inevitably a need to interact with conversation messages with a high level of privacy. In the face of this interaction requirement, it is usually necessary to break away from the existing group chat window and create a non-group chat window to meet this interaction requirement. However, in this embodiment, the complex step of additionally creating a non-group chat window is omitted. By using the target string to adjust the viewing permissions of group members for conversation messages, the interaction of private conversation messages is directly realized in the group chat window, thereby improving the display efficiency of conversation messages.
[0057] For further illustration by way of example, optionally, for example Figure 3 As shown, the chat window 302 of the target group where the first user account is located is displayed in the first client. Among them, the target group includes at least three user accounts (such as user account 1, user account 2, and the first user account); the target string 306 (such as "+@user account 1") and the target conversation message to be interacted with (such as "I want to eat hot pot") are displayed in the target information input box 304 of the first client. Among them, the target string 306 carries the account characters of at least one target user account among the at least three user accounts (such as "user account 1"), and the target string 306 is used to indicate the viewing permission of user account 1 for the target conversation message 308. For example, user account 1 is allowed to view the target conversation message 308; in response to the send operation performed on the target string 306 and the target conversation message 308 (such as a click operation triggered on the virtual button "Send"), the target string 306 and the target conversation message 308 are displayed in the chat window 302 (not shown in the figure for the time being).
[0058] Through the embodiment provided by this application, the chat window of the target group where the first user account is located is displayed in the first client, where the target group includes at least three user accounts; the target string and the target conversation message to be interacted with are displayed in the target information input box of the first client, where the target string carries the account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target conversation message; in response to the send operation performed on the target string and the target conversation message, the target string and the target conversation message are displayed in the chat window. By using the target string to indicate the viewing permission of specific target user accounts in the target group for conversation messages, the step of creating a new chat window is omitted, thereby achieving the purpose of directly interacting with conversation messages with relatively strong privacy for specific user accounts in the group chat scenario, and thus realizing the technical effect of improving the display efficiency of conversation messages.
[0059] As an alternative solution, in the target information input box of the first client, display the target string and the target session message to be interacted with, including:
[0060] In the target information input box, display the first string and the target session message. Among them, the first string carries the account characters of at least one target user account, and the first string is used to indicate that the target user account is allowed to view the target session message.
[0061] Optionally, in this embodiment, the first string is used to indicate that the target user account is allowed to view the target session message, and it can, but is not limited to, indicating that at least one or more target user accounts are allowed to view all or part of the target session message. For example, the first string is used to indicate that user account A and user account B can view the first half of the target session message, and it indicates that user account C can view the second half of the target session message. Among them, user account A, user account B, and user account C belong to the same target group.
[0062] Optionally, in this embodiment, the first string can also, but is not limited to, be used to indicate that the target user account is allowed to view the target session message within a first predetermined time. For example, the first string is used to indicate that user account A can view the target session message during the target time period; in other words, the first string is used to indicate that user account A is prohibited from viewing the target session message outside the target time period.
[0063] For further illustration by example Figure 3 As shown, in the target information input box 304, display the first string (target character 306) and the target session message 308. Among them, the first string carries the account characters of at least one target user account (such as "user account 1"), and the first string is used to indicate that user account 1 is allowed to view the target session message 308.
[0064] Through the embodiment provided by this application, in the target information input box, display the first string and the target session message. Among them, the first string carries the account characters of at least one target user account, and the first string is used to indicate that the target user account is allowed to view the target session message, thereby achieving the purpose of directly interacting with the session message with relatively strong privacy for specific user accounts in the group chat scenario, and thus realizing the technical effect of improving the display efficiency of the session message.
[0065] As an alternative solution, in the chat window, display the target string and the target session message, and further include:
[0066] In the chat window, display the first string, the target session message, and the first prompt message, where the first prompt message is used to prompt that the target session message allows the target user account to view the target session message.
[0067] Optionally, in this embodiment, to improve the display intuitiveness of the target session message, while the target session message is being displayed, the first prompt message that is displayed is further used to prompt that the displayed target session message will only enable the target user account to view the permission.
[0068] For further illustration by way of example, optionally based on Figure 3 the scenario shown, continuing for example Figure 4 as shown, assuming that a click operation is detected on the virtual button "Send" associated with the target information input box 304, as Figure 4 shown in (a) of ; further in response to this click operation, the first string (target string 306) currently displayed in the target information input box 304 and the target session message 308 are displayed in the chat window, as Figure 4 shown in (b) of ; in addition, while the first string (target string 306) and the target session message 308 are being displayed in the chat window, the first prompt message 402 (such as "You sent a whisper, only visible to user account 1") is also displayed, where the first prompt message 402 is used to prompt that the target session message 308 allows the target user account (such as "user account 1") to view the target session message 308.
[0069] As an optional solution, displaying a target string and a target session message to be interacted with in the target information input box of the first client includes:
[0070] Displaying a second string and a target session message in the target information input box, where the second string carries the account characters of at least one target user account, and the second string is used to indicate that the target user account is prohibited from viewing the target session message.
[0071] Optionally, in this embodiment, the second string is used to indicate that the target user account is allowed to view the target session message, and may but is not limited to indicating that at least one or more target user accounts are prohibited from viewing all or part of the target session message. For example, the second string is used to indicate that user account A and user account B are prohibited from viewing the first half of the target session message, and to indicate that user account C is prohibited from viewing the second half of the target session message, where user account A, user account B, and user account C belong to the same target group.
[0072] Optionally, in this embodiment, the second string may also but is not limited to being used to indicate that the target user account is prohibited from viewing the target session message within a second predetermined time. For example, the second string is used to indicate that user account A is prohibited from viewing the target session message during the target time period; in other words, the second string is used to indicate that user account A will be allowed to view the target session message outside the target time period.
[0073] For further illustration, optionally based on Figure 3 the scenario shown, continue for example Figure 5 as shown, the second string (target character 402) and the target session message 308 are displayed in the target information input box 304, where the second string carries the account characters of at least one target user account (such as "user account 1"), and the first string is used to indicate that user account 1 is prohibited from viewing the target session message 308.
[0074] Through the embodiments provided by the present application, the second string and the target session message are displayed in the target information input box, where the second string carries the account characters of at least one target user account, and the second string is used to indicate that the target user account is prohibited from viewing the target session message, thereby achieving the purpose of directly interacting with the session message with strong privacy for a specific user account in the group chat scenario, and thus realizing the technical effect of improving the display efficiency of the session message.
[0075] As an optional solution, displaying the target string and the target session message in the chat window further includes:
[0076] displaying the second string, the target session message, and the second prompt message in the chat window, where the second prompt message is used to prompt that the target session message prohibits the target user account from viewing the target session message.
[0077] Optionally, in this embodiment, to improve the display intuitiveness of the target session message, while the target session message is being displayed, the displayed second prompt message is further used to prompt that the viewing permission of the displayed target session message will be closed for the target user account.
[0078] For further illustration, optionally based on Figure 5 the scenario shown, continue for example Figure 6 as shown, assuming that a click operation is detected on the virtual button "Send" associated with the target information input box 304, as Figure 6 shown in (a) of ; and then in response to the click operation, the second string (target string 502) and the target session message 308 currently displayed in the target information input box 304 are displayed in the chat window, as Figure 6 shown in (b) of ; in addition, while the second string (target string 502) and the target session message 308 are being displayed in the chat window, the second prompt message 602 (such as "You sent a whisper that is invisible to user account 1") is also displayed, where the first prompt message 402 is used to prompt that the target session message 308 prohibits the target user account (such as "user account 1") from viewing the target session message 308.
[0079] As an alternative, before displaying the target string and the target session message to be interacted with, it includes:
[0080] S1. Obtain a target specified character in the target message input box, where the target string includes the target specified character;
[0081] S2. Obtain a target account character in the target message input box, where the target account character is the account character of at least one target user account.
[0082] Optionally, in this embodiment, in addition to carrying the account characters (target account characters) of at least one target user account, the target string also carries a target specified character, where the target specified character is used to trigger an interactive specified instruction within the target group, and the interactive specified instruction is used to indicate determining the viewing permission of at least one target user account in the target group for the information sent by the first user account in the target group.
[0083] For further illustration by way of example, optionally, for example, the first user account inputs the target specified character and the target account character in the target information input box to jointly form the target string; in addition, since the target specified character and the target account character can be but are not limited to common characters, when the target specified character and the target account character are obtained in the target information input box, the target specified character and the target account character can be but are not limited to being highlighted to prompt the first user account that the composition of the target string can be triggered; however, if a cancellation operation performed by the first user account is further obtained, the highlighting will be cancelled, and the target specified character and the target account character will be regarded as ordinary characters. Among them, the highlighting can also be replaced by a prompt message, which is not limited herein.
[0084] As an alternative, before displaying the target string and the target session message to be interacted with, it includes:
[0085] S1. When the target specified character is obtained in the target message input box, display a target account list, where at least three user account characters are displayed in the target account list;
[0086] S2. In response to a selection operation triggered on the target account list, display the target account character in the target message input box.
[0087] Optionally, in this embodiment, to improve the display efficiency of the target account character, when the target specified character is obtained in the target message input box, the target account list will be directly displayed to assist in the further display of the target account character.
[0088] Optionally, in this embodiment, the account characters of at least three user accounts are displayed in the target account list, and the account characters of the at least three user accounts can be, but are not limited to, understood as the user accounts whose viewing permissions are currently allowed to be adjusted. For example, assume that the target group includes a first user account, user account A, user account B, and user account C. First, the second specified character "-@" is used to remove user account B from the target group (i.e., it means that user account B is prohibited from viewing the session message currently to be sent by the first user account). Then, when using the first specified character "+@", the target account list showing no user account B, having user account A, and having user account C will be displayed.
[0089] It should be noted that when the target specified character is obtained in the target message input box, the target account list is displayed, where the account characters of at least three user accounts are shown in the target account list; in response to the selection operation triggered on the target account list, the target account character is displayed in the target message input box.
[0090] For further illustration by way of example, optionally based on Figure 3 the scenario shown, continuing for example Figure 7 as shown, assume that the target specified character 702 is obtained in the target message input box 304, as shown in Figure 7 (a); further as shown in Figure 7 (b), the target account list 704 is displayed, where the account characters of at least three user accounts (such as "user account 1", "user account 2") are shown in the target account list 704; in response to the selection operation triggered on the target account list 704, the target account character (such as "user account 1") is displayed in the target message input box 304, as shown in Figure 7 (c).
[0091] Through the embodiment provided by this application, when the target specified character is obtained in the target message input box, the target account list is displayed, where the account characters of at least three user accounts are shown in the target account list; in response to the selection operation triggered on the target account list, the target account character is displayed in the target message input box, achieving the purpose of quickly inputting the account character and realizing the effect of improving the acquisition efficiency of the target string.
[0092] As an optional solution, obtaining the target specified character in the target message input box includes:
[0093] S1. When a first specified sub - character is obtained in the target message input box, a third prompt message is displayed. The target specified character includes the first specified sub - character, and the third prompt message is used to prompt the input of a second specified sub - character in the target message input box to indicate the viewing permission of at least one account among at least three user accounts for the session message to be interacted with and input by the first user account.
[0094] S2. Obtain the second specified sub - character in the target message input box, where the target specified character includes the second specified sub - character.
[0095] Optionally, in this embodiment, considering the need to promptly prompt the user that a more private session message interaction function can be achieved in the target group, when the first specified sub - character is obtained, a third prompt message for prompting the input of the second specified sub - character in the target message input box will be displayed.
[0096] For further illustration, optionally based on Figure 3 the scenario shown, continue for example Figure 8 as shown, assume as Figure 8 shown in (a) of, the first specified sub - character 802 is obtained in the target message input box 304; further as Figure 8 shown in (b) of, the third prompt message 804 (such as "You can enter @ again to enable the whisper function") is displayed; then assume the user sees this third prompt message 804 and completes the input of the second specified sub - character 806 in the target message input box 304, and then the second specified sub - character 806 is displayed in the target message input box 304.
[0097] As an optional solution, the method further includes:
[0098] S1. When a third string is displayed in the target information input box, obtain the target additional information to be interacted with, where the third string carries the account characters of at least one target user account, and the third string is used to indicate the viewing permission of the target user account for the target additional message.
[0099] S2. In response to the send operation performed on the third string and the target additional message, display the third string and the target additional message in the chat window.
[0100] Optionally, in this embodiment, assuming the session message is used to represent text - type information, the target additional information can be but is not limited to representing non - text - type information, such as image information, video information, audio information, etc.
[0101] It should be noted that, in order to improve the comprehensiveness of information interaction, when a third string is displayed in the target information input box, an information service that can be privately interacted in the target group will be provided for the target additional information. The user can use this information service to display the target additional information to a single or multiple specific group members in the target group in the same interaction manner as the target session message.
[0102] Through the embodiments provided in this application, when a third string is displayed in the target information input box, the target additional information to be interacted is obtained. Among them, the third string carries the account characters of at least one target user account, and the third string is used to indicate the viewing permission of the target user account for the target additional message; in response to the send operation performed on the third string and the target additional message, the third string and the target additional message are displayed in the chat window, achieving the effect of improving the comprehensiveness of information interaction.
[0103] As an optional solution, in response to the send operation performed on the target string and the target session message, displaying the target string and the target session message in the chat window includes:
[0104] S1, in response to the send operation performed on the target string and the target session message, sending the target string and the target session message to the target server, where the target server is used to parse the target string, and when the character format of the target string is the target specified format of the second user account, forwarding the target session message to the second client of the second user account, and at least one target user account includes the second user account;
[0105] S2, displaying the target string and the target session message on the chat window.
[0106] Optionally, in this embodiment, the target server can be but is not limited to being divided into a status server, a session server, and a queue server. Among them, the status server is used to receive the target information sent from the client and perform corresponding operations according to the instructions carried in the target information, such as forwarding the session message carried in the target information, etc.; the session server can be but is not limited to performing corresponding operations on the received target information according to the above instructions; the queue server can be but is not limited to temporarily storing the target information. For example, when the target information does not carry relevant instructions indicating the object to be forwarded, the target information is temporarily stored, and when the relevant instructions are not received within a predetermined time period, the target information is deleted; or, when the object to be forwarded is not currently communicating with the target server, the target information is temporarily stored, and when the communication channel is established, the target information is forwarded.
[0107] For further illustration by way of example, optionally, for example Figure 9 as shown, the specific steps are as follows:
[0108] Step S902: Obtain a creation request for the target group triggered on the client 902 (the client 902 can be understood as the client corresponding to each group member in the target group, such as the first client).
[0109] Step S904: Establish a long connection between the client 902 corresponding to each group member in the target group and the target server 904.
[0110] Step S906: Create a user account list associated with the target group.
[0111] It should be noted that in response to the sending operation performed on the target string and the target session message, the target string and the target session message are sent to the target server. The target server is used to parse the target string, and when the character format of the target string is the target specified format of the second user account, the target session message is forwarded to the second client of the second user account. At least one target user account includes the second user account; the target string and the target session message are displayed in the chat window.
[0112] For further illustration by way of example, optionally based on Figure 9 the scenario shown, continue for example Figure 10 as shown, the specific steps are as follows:
[0113] Step S1002: The first user account logs in to the chat interface where the target group is located through the client 902 (such as the first client).
[0114] Step S1004: The session server 904-2 obtains the interaction information sent in the client 902 and to be sent to the target group.
[0115] Step S1006: The session server 904-2 parses the group identifier carried in the interaction information.
[0116] Step S1008: Use the group identifier to retrieve the user accounts of the target group.
[0117] Step S1010: The status server 904-1 determines the online user accounts.
[0118] Step S1012: The session server 904-2 parses the specified identifier and the account identifier carried in the interaction information.
[0119] Step S1014: Forward the interaction information to the corresponding, online user accounts in the target group according to the parsing result of the session server 904-2.
[0120] Step S1016: According to the parsing result of the session server 904-2, the queue server 904-3 temporarily stores the interaction information for the corresponding user accounts in the offline target group for the interaction information.
[0121] Optionally, as another alternative implementation, as Figure 11 shown, the method for displaying session messages includes:
[0122] S1102: Obtain the target string and the target session message to be interacted sent by the first client of the first user account, where the first user account is a user account in the target group, the target group includes at least three user accounts, the target string carries the account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message;
[0123] S1104: Parse the target string to obtain the character format of the target string;
[0124] S1106: In the case where the character format of the target string is the target specified format of the second user account, forward the target session message to the second client of the second user account, where at least one target user account includes the second user account.
[0125] Optionally, in this embodiment, the above method for displaying session messages can be but is not limited to being applied in a group chat scenario. By using the target string to adjust the viewing permission of group members for session messages, the interaction of private session messages can be directly implemented in the group chat window, thereby improving the display efficiency of session messages.
[0126] Optionally, in this embodiment, the target group can be but is not limited to being understood as the group corresponding to the target group identifier. During the display process of the target session message, it can be but is not limited to first obtaining the target group identifier of the target group, and then displaying the target session message in the corresponding group chat window based on this target group identifier.
[0127] Optionally, in this embodiment, the target information input box can be but is not limited to the first input box configured on the chat window of the target group, nor can it be but is not limited to the second input box in the first client, and the second input box has an associated relationship with the chat window of the target group. The relevant information obtained in the second input box can be displayed in the chat window of the target group through this associated relationship.
[0128] Optionally, in this embodiment, the target string carries the account characters of at least one target user account among the at least three user accounts; in addition, the target string can also but is not limited to carry the target specified characters for indicating the viewing permission of the target user account for the target session message.
[0129] Optionally, in this embodiment, the viewing permission of the target user account for the target session message may include, but is not limited to: allowing the target user account to view all / some of the target session messages, or prohibiting the target user account from viewing all / some of the target session messages, or allowing the target user account to view all / some of the target session messages within a first predetermined time period, or prohibiting the user account from viewing all / some of the target session messages within a second predetermined time period.
[0130] Optionally, in this embodiment, the type of the target string may include, but is not limited to, multiple types. For example, the target string of the first type is used to indicate that the target user account is allowed to view all of the target session messages, the target string of the second type is used to indicate that the target user account is prohibited from viewing all of the target session messages, the target string of the third type is used to indicate that the target user account is allowed to view some of the target session messages, the target string of the fourth type is used to indicate that the target user account is prohibited from viewing some of the target session messages, the target string of the fifth type is used to indicate that the target user account is allowed to view the target session messages within a first preset time period, the target string of the sixth type is used to indicate that the target user account is prohibited from viewing the target session messages within a second preset time period, and so on. Moreover, multiple types of target strings can be used flexibly in combination. For example, first use the target string of the first type to select user account 1, user account 2, user account 3, and user account 4 in the target group and allow them to view all of the target session messages, and then use the target string of the second type to select user account 1 from user account 1, user account 2, user account 3, and user account 4 and prohibit it from viewing all of the target session messages. In this way, the final presented viewing permission includes: user account 1, user account 2, and user account 4 in the target group are allowed to view all of the target session messages.
[0131] It should be noted that generally, the chat window of a group provides a public and convenient chat platform for group members (user accounts), and the session messages generated in this chat platform are usually also public to group members. However, in this group chat scenario, there is inevitably a need for interaction of session messages with relatively high privacy. In the face of this interaction need, it is usually necessary to break away from the existing group chat window and establish a non-group chat window to meet this interaction need. However, in this embodiment, the complex step of additionally establishing a non-group chat window is omitted, and by using the method of adjusting the viewing permission of group members for session messages with target strings, the interaction of private session messages is directly realized in the group chat window, thereby improving the display efficiency of session messages.
[0132] For further illustration by way of example, optionally, such as Figure 9 shown, the specific steps are as follows:
[0133] Step S902: Obtain a creation request for the target group triggered on the client 902 (the client 902 can be understood as the client corresponding to each group member in the target group, such as the first client).
[0134] Step S904: Establish a long connection between the client 902 corresponding to each group member in the target group and the target server 904.
[0135] Step S906: Create a user account list associated with the target group.
[0136] For specific embodiments, reference can be made to the examples shown in the above method for displaying session messages, and details are not elaborated herein.
[0137] Through the embodiments provided in this application, obtain the target string and the target session message to be interacted sent by the first client of the first user account. The first user account is a user account in the target group, and the target group includes at least three user accounts. The target string carries the account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message; analyze the target string to obtain the character format of the target string; when the character format of the target string is the target specified format of the second user account, forward the target session message to the second client of the second user account. Among them, at least one target user account includes the second user account. By using the target string to indicate the viewing permission of specific target user accounts in the target group for the session message, the step of creating a new chat window is omitted, and thus the purpose of directly interacting with session messages with stronger privacy for specific user accounts in the group chat scenario is achieved, thereby realizing the technical effect of improving the display efficiency of session messages.
[0138] As an optional solution, forwarding the target session message to the second client of the second user account includes:
[0139] S1: When the communication channel between the second client and the target server is in a closed state, temporarily store the target session message in the target server.
[0140] S2: When the communication channel between the second client and the target server is in an open state, forward the target session message to the second client of the second user account.
[0141] It should be noted that when the communication channel between the second client and the target server is closed, the target session message is temporarily stored in the target server; when the communication channel between the second client and the target server is open, the target session message is forwarded to the second client of the second user account.
[0142] For further illustration by way of example, optionally based on Figure 9 the scenario shown, continue for example Figure 10 as shown, the specific steps are as follows:
[0143] Step S1002, the first user account logs in to the chat interface where the target group is located through the client 902 (such as the first client);
[0144] Step S1004, the session server 904-2 obtains the interaction information sent in the client 902 and to be sent to the target group;
[0145] Step S1006, the session server 904-2 parses the group identifier carried in the interaction information;
[0146] Step S1008, uses the group identifier to retrieve the user accounts of the target group;
[0147] Step S1010, the status server 904-1 determines the online user accounts;
[0148] Step S1012, the session server 904-2 parses the specified identifier and the account identifier carried in the interaction information;
[0149] Step S1014, according to the parsing result of the session server 904-2, forwards the interaction information to the corresponding online user accounts in the target group;
[0150] Step S1016, according to the parsing result of the session server 904-2, the queue server 904-3 temporarily stores the interaction information for the corresponding offline user accounts in the target group.
[0151] As an optional solution, for the sake of easy understanding, taking the application of the above session message display method in a group chat scenario as an example, the content is as follows:
[0152] Assume that user A in the group logs in successfully, establishes a long connection with the central server, and sends a message in Group 1. This message transfers data to the central server according to the session sending protocol. The central server receives the data, parses the data according to the session sending protocol, identifies the group ID, and then pushes messages to all users (currently online) who have established connections under this group according to the session receiving protocol. For users who have not established connections (i.e., currently offline), the messages to be sent are placed in the offline user message queue according to the message offline protocol. When an offline user logs in, the queue service is notified, and the queue service pushes the offline messages to the currently logged-in user.
[0153] Optionally, the long connection can be used, but is not limited to, representing the establishment of a TCP channel between the client and the server. This channel will not be easily disconnected, and based on this channel, the client and the server can communicate with each other. After the connection between the client and the server is established, the client will generate a unique session ID to identify the user, and the server can push messages to this session ID.
[0154] Among them, the session sending protocol: This protocol is a data protocol, and the specific content is:
[0155] {
[0156] GroupId: {val: 12, type: number, mark: ’group id’},
[0157] FromUid: {val: 1222, type: number, mark: ’user uid who sends the message’},
[0158] Content: {val: ’Here is the content’, type: string(255), mark: ’sent content’},
[0159] Touid:
[0160] {val: 89, type: number, mark: ’user uid of the specifically @-mentioned user’},
[0161] {}]
[0162] }
[0163] Session receiving protocol:
[0164] {
[0165] GroupId: {val: 12, type: number, mark: ’group id’},
[0166] FromUid: {val: 1222, type: number, mark: 'The user uid who sends the message'},
[0167] Content: {val: 'This is the content', type: string(255), mark: 'The content sent'},
[0168] ToMe: {val: true, type: bol, mark: 'Whether to @ oneself'}
[0169] }
[0170] Message offline protocol: This protocol is a data protocol, and the specific content is as follows:
[0171]
[0172]
[0173] Optionally, in this embodiment, it is assumed that there is a whispering function configured, and whispering is used to represent the words spoken in the group, which are only visible to a certain person or certain people; and the implementation of the whispering function depends on the input of whispering symbols. Among them, the whispering symbols include '-@' representing excluding only this user, and '+@' representing whispering only to these users;
[0174] Furthermore, the whispering minimum range principle: It means that if the user uses both '-@' and '+@' in the same record, then the smaller value of these two results is taken as the user who can receive the message. For example, in group 1, there are users A, B, C, and D. User A sends a whispering message, and the input content is as follows:
[0175] +@ User B -@ User B, which means that all people cannot / can see this message; +@ User B -@ User C, which means that only User B can see this message; -@ User B, which means that users C, A, and D can see this message, etc.
[0176] For further illustration, optionally, for example, user A successfully logs in to the chat software; enters a certain group, and enters "+" in the input panel of Group 1; a prompt will be displayed above the input panel, indicating that you can enter @ to whisper to someone or some people; if the user continues to enter @ in the input panel of Group 1, a group user selection box will be pulled up, that is, to select the person to whom to whisper; similarly, if you need to whisper the same sentence to multiple people, the above steps can be followed; after user A completes the selection of group friends, enters the corresponding content to be spoken, and then sends it; after user A successfully sends the whisper, in the chat interface of Group 1, user A can see a prompt below the whisper, in the form of: "You sent a whisper, which is only visible to user B"; in the chat interface of Group 1 for user B, user B can see a prompt below the whisper, in the form of: "User A sent a whisper, and this message is only visible to you"; there is no content displayed on the interface of Group 1 for user C or other group friends.
[0177] Optionally, in this embodiment, the new session sending protocol is transformed as follows:
[0178] {
[0179] GroupId: {val: 12, type: number, mark: 'group id'},
[0180] FromUid: {val: 1222, type: number, mark: 'user uid sending the message'},
[0181] Content: {val: 'Here is the content', type: string(255), mark: 'content sent'},
[0182] Touid:
[0183] {val: 89, type: number, mark: 'user uid receiving the whisper', tag:'symbol, + means whispering only to this user, - means excluding this user'},
[0184] {}}
[0185] }
[0186] Message offline protocol:
[0187]
[0188]
[0189] Session receiving protocol:
[0190] {
[0191] GroupId: {val: 12, type: number, mark: 'Group ID'},
[0192] FromUid: {val: 1222, type: number, mark: 'User ID of the message sender'},
[0193] Content: {val: 'This is the content', type: string(255), mark: 'Sent content'},
[0194] Tag: {val: true, type: bol, mark: 'Whether it is a whisper'},
[0195] }
[0196] Session protocol parsing:
[0197] Parse whether the Touid.tag value exists in the passed session protocol. If it does not exist, it is a normal group session. If the tag value exists, depending on whether the tag is '-' or '+', push the message to this user or ignore it.
[0198] In this embodiment, the function of privately transmitting messages is realized; in the above technical implementation of "&@+ nickname", only the people who want to receive the information can receive the text message, achieving the purpose of hiding the information from those who do not want them to know. It reduces the user operation cost and improves the user experience; when there is no such scheme, it takes more than ten minutes of operation to send a whisper, but with this function, only one more character needs to be input compared to the "@+ nickname" method, greatly reducing the user operation cost and providing the user experience. Optimize the chat list and reduce the management cost; because the private message is transmitted in the same group chat, there is no need to create a new group additionally, reducing the redundant groups created for sending private messages and also reducing the management of redundant groups.
[0199] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0200] According to another aspect of the embodiments of the present invention, there is also provided a session message display device for implementing the above session message display method. As Figure 12 shown, the device includes:
[0201] The first display unit 1202 is configured to display a chat window of a target group where the first user account is located in the first client, where the target group includes at least three user accounts;
[0202] The second display unit 1204 is configured to display a target string and a target session message to be interacted with in a target information input box of the first client, where the target string carries account characters of at least one target user account among at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message;
[0203] The third display unit 1206 is configured to, in response to a sending operation performed on the target string and the target session message, display the target string and the target session message in the chat window.
[0204] Optionally, in this embodiment, the above session message display device may be, but is not limited to, applied in a group chat scenario. By using the target string to adjust the viewing permission of group members for the session message, the interaction of private session messages can be directly implemented in the group chat window, thereby improving the display efficiency of the session message.
[0205] Optionally, in this embodiment, the target group may be, but is not limited to, understood as the group corresponding to the target group identifier. During the display process of the target session message, the target group identifier of the target group may be, but is not limited to, obtained first, and then the target session message is displayed in the corresponding group chat window based on the target group identifier.
[0206] Optionally, in this embodiment, the target information input box may be, but is not limited to, the first input box configured on the chat window of the target group, or may be, but is not limited to, the second input box in the first client, and the second input box has an associated relationship with the chat window of the target group. The relevant information obtained in the second input box can be displayed in the chat window of the target group through this associated relationship.
[0207] Optionally, in this embodiment, the target string carries account characters of at least one target user account among at least three user accounts; in addition, the target string may also, but is not limited to, carry a target specified character for indicating the viewing permission of the target user account for the target session message.
[0208] Optionally, in this embodiment, the viewing permission of the target user account for the target session message may include, but is not limited to: allowing the target user account to view all / part of the target session messages, or prohibiting the target user account from viewing all / part of the target session messages, or allowing the target user account to view all / part of the target session messages within the first predetermined duration, or prohibiting the user account from viewing all / part of the target session messages within the second predetermined duration.
[0209] Optionally, in this embodiment, the types of the target strings may include, but are not limited to, multiple types. For example, the target string of the first type is used to indicate that the target user account is allowed to view all of the target session messages, the target string of the second type is used to indicate that the target user account is prohibited from viewing all of the target session messages, the target string of the third type is used to indicate that the target user account is allowed to view part of the target session messages, the target string of the fourth type is used to indicate that the target user account is prohibited from viewing part of the target session messages, the target string of the fifth type is used to indicate that the target user account is allowed to view the target session messages within the first preset time period, the target string of the sixth type is used to indicate that the target user account is prohibited from viewing the target session messages within the second preset time period, and so on. Moreover, multiple types of target strings can be used flexibly in combination. For example, first use the target string of the first type to select user account 1, user account 2, user account 3, and user account 4 in the target group and allow them to view all of the target session messages, and then use the target string of the second type to select user account 1 from user account 1, user account 2, user account 3, and user account 4 and prohibit it from viewing all of the target session messages. In this way, the final presented viewing permission includes: user account 1, user account 2, and user account 4 in the target group are allowed to view all of the target session messages.
[0210] It should be noted that generally, the chat window of a group provides a public and convenient chat platform for group members (user accounts), and the session messages generated in this chat platform are usually also public to group members. However, in this group chat scenario, there is inevitably a need for interaction of session messages with relatively high privacy. In the face of this interaction requirement, it is usually necessary to break away from the existing group chat window and establish a non-group chat window to meet this interaction requirement. However, in this embodiment, the complex step of additionally establishing a non-group chat window is omitted. By using the method of adjusting the viewing permission of group members for session messages with target strings, the interaction of private session messages is directly realized in the group chat window, thereby improving the display efficiency of session messages.
[0211] For specific embodiments, reference may be made to the examples shown in the above display device for session messages, and details are not described herein again.
[0212] Through the embodiments provided in this application, a chat window of a target group where the first user account is located is displayed in the first client, where the target group includes at least three user accounts; a target string and a target session message to be interacted with are displayed in a target information input box of the first client, where the target string carries account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target session message by the target user account; in response to a sending operation performed on the target string and the target session message, the target string and the target session message are displayed in the chat window, and the viewing permission of the session message by a specific target user account in the target group is indicated through the target string, eliminating the step of creating a new chat window, thereby achieving the purpose of directly interacting with a session message with relatively strong privacy for a specific user account in a group chat scenario, and thus realizing the technical effect of improving the display efficiency of the session message.
[0213] As an alternative solution, the second display unit 1204 includes:
[0214] A first display module, configured to display a first string and a target session message in the target information input box, where the first string carries account characters of at least one target user account, and the first string is used to indicate that the target user account is allowed to view the target session message.
[0215] For specific embodiments, reference may be made to the examples shown in the above session message display method, and details are not described herein again in this example.
[0216] As an alternative solution, the first display module further includes:
[0217] A first display sub-module, configured to display the first string, the target session message, and a first prompt message in the chat window, where the first prompt message is used to prompt that the target session message allows the target user account to view the target session message.
[0218] For specific embodiments, reference may be made to the examples shown in the above session message display method, and details are not described herein again in this example.
[0219] As an alternative solution, the second display unit 1204 includes:
[0220] A second display module, configured to display a second string and a target session message in the target information input box, where the second string carries account characters of at least one target user account, and the second string is used to indicate that the target user account is prohibited from viewing the target session message.
[0221] For specific embodiments, reference may be made to the examples shown in the above session message display method, and details are not described herein again in this example.
[0222] As an alternative solution, the second display module further includes:
[0223] A second display sub-module, configured to display a second string, a target session message, and a second prompt message in a chat window, where the second prompt message is used to prompt that the target session message prohibits the target user account from viewing the target session message.
[0224] For specific embodiments, reference may be made to the examples shown in the above-mentioned method for displaying session messages, and details thereof are not elaborated herein.
[0225] As an alternative solution, it includes:
[0226] A first acquisition unit, configured to acquire a target specified character in a target message input box before displaying a target string and a target session message to be interacted with, where the target string includes the target specified character;
[0227] A second acquisition unit, configured to acquire a target account character in a target message input box before displaying a target string and a target session message to be interacted with, where the target account character is the account character of at least one target user account.
[0228] For specific embodiments, reference may be made to the examples shown in the above-mentioned method for displaying session messages, and details thereof are not elaborated herein.
[0229] As an alternative solution, it includes:
[0230] A fourth display unit, configured to display a target account list in a target message input box when the target specified character is acquired before displaying a target string and a target session message to be interacted with, where at least three user account characters are displayed in the target account list;
[0231] A fifth display unit, configured to display a target account character in a target message input box in response to a selection operation triggered on the target account list before displaying a target string and a target session message to be interacted with.
[0232] For specific embodiments, reference may be made to the examples shown in the above-mentioned method for displaying session messages, and details thereof are not elaborated herein.
[0233] As an alternative solution, the first acquisition unit includes:
[0234] A third display module, configured to display a third prompt message when a first specified sub-character is obtained in a target message input box, where the target specified character includes the first specified sub-character, and the third prompt message is used to prompt to input a second specified sub-character in the target message input box, so as to indicate the viewing permission of at least one account among at least three user accounts for the session message to be interacted input by the first user account;
[0235] An obtaining module, configured to obtain a second specified sub-character in the target message input box, where the target specified character includes the second specified sub-character.
[0236] For specific embodiments, reference may be made to the examples shown in the above session message display method, and these examples will not be elaborated here.
[0237] As an optional solution, the apparatus further includes:
[0238] A third obtaining unit, configured to obtain target additional information to be interacted when a third string is displayed in the target information input box, where the third string carries account characters of at least one target user account, and the third string is used to indicate the viewing permission of the target user account for the target additional message;
[0239] A sixth display unit, configured to display the third string and the target additional message in the chat window in response to a sending operation performed on the third string and the target additional message.
[0240] For specific embodiments, reference may be made to the examples shown in the above session message display method, and these examples will not be elaborated here.
[0241] As an optional solution, the third display unit 1206 includes:
[0242] A sending module, configured to send the target string and the target session message to a target server in response to a sending operation performed on the target string and the target session message, where the target server is configured to parse the target string, and when the character format of the target string is the target specified format of the second user account, forward the target session message to the second client of the second user account, and at least one target user account includes the second user account;
[0243] A fourth display module, configured to display the target string and the target session message on the chat window.
[0244] For specific embodiments, reference may be made to the examples shown in the above session message display method, and these examples will not be elaborated here.
[0245] According to another aspect of the embodiments of the present invention, there is also provided another session message display apparatus for implementing the above session message display method. AsFigure 13 As shown, the device includes:
[0246] A fourth acquisition unit 1302, configured to acquire a target string and a target session message to be interacted sent by a first client of a first user account, where the first user account is a user account in a target group, the target group includes at least three user accounts, the target string carries account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message;
[0247] A parsing unit 1304, configured to parse the target string to obtain the character format of the target string;
[0248] A forwarding unit 1306, configured to forward the target session message to a second client of a second user account when the character format of the target string is the target specified format of the second user account, where at least one target user account includes the second user account.
[0249] Optionally, in this embodiment, the above session message display device may be applied but not limited to the group chat scenario. By using the target string to adjust the viewing permission of group members for the session message, the interaction of private session messages can be directly implemented in the group chat window, thereby improving the display efficiency of the session message.
[0250] Optionally, in this embodiment, the target group may be understood but not limited to the group corresponding to the target group identifier. During the display process of the target session message, the target group identifier of the target group may be obtained but not limited to first, and then the target session message may be displayed in the corresponding group chat window based on the target group identifier.
[0251] Optionally, in this embodiment, the target information input box may be but not limited to the first input box configured on the chat window of the target group, or may be but not limited to the second input box in the first client, and the second input box has an association relationship with the chat window of the target group. The relevant information obtained in the second input box may be displayed in the chat window of the target group through this association relationship.
[0252] Optionally, in this embodiment, the target string carries account characters of at least one target user account among the at least three user accounts; in addition, the target string may also carry but not limited to target specified characters for indicating the viewing permission of the target user account for the target session message.
[0253] Optionally, in this embodiment, the viewing permission of the target user account for the target session message may include, but is not limited to: allowing the target user account to view all / part of the target session messages, or prohibiting the target user account from viewing all / part of the target session messages, or allowing the target user account to view all / part of the target session messages within a first predetermined duration, or prohibiting the user account from viewing all / part of the target session messages within a second predetermined duration.
[0254] Optionally, in this embodiment, the type of the target string may include, but is not limited to, multiple types. For example, the target string of the first type is used to indicate that the target user account is allowed to view all of the target session messages, the target string of the second type is used to indicate that the target user account is prohibited from viewing all of the target session messages, the target string of the third type is used to indicate that the target user account is allowed to view part of the target session messages, the target string of the fourth type is used to indicate that the target user account is prohibited from viewing part of the target session messages, the target string of the fifth type is used to indicate that the target user account is allowed to view the target session messages within a first predetermined time period, the target string of the sixth type is used to indicate that the target user account is prohibited from viewing the target session messages within a second predetermined time period, and so on. Moreover, multiple types of target strings can be used flexibly in combination. For example, first use the target string of the first type to select user account 1, user account 2, user account 3, and user account 4 in the target group and allow them to view all of the target session messages, and then use the target string of the second type to select user account 1 from user account 1, user account 2, user account 3, and user account 4 and prohibit it from viewing all of the target session messages. In this way, the final presented viewing permission includes: user account 1, user account 2, and user account 4 in the target group are allowed to view all of the target session messages.
[0255] It should be noted that generally, the chat window of a group provides a public and convenient chat platform for group members (user accounts), and the session messages generated in this chat platform are usually also public to group members. However, in this group chat scenario, there is inevitably a need for interaction of session messages with a relatively high privacy level. In the face of this interaction requirement, it is usually necessary to break away from the existing group chat window and establish a non-group chat window to meet this interaction requirement. However, in this embodiment, the complex step of establishing an additional non-group chat window is omitted, and the viewing permission of group members for session messages is adjusted by using target strings, so as to directly implement the interaction of private session messages in the group chat window and improve the display efficiency of session messages.
[0256] For specific embodiments, reference can be made to the examples shown in the above display device for session messages, and details are not described herein again.
[0257] According to the embodiments provided by the present application, obtain the target string and the target session message to be interacted sent by the first client of the first user account. The first user account is a user account in the target group, and the target group includes at least three user accounts. The target string carries the account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message; parse the target string to obtain the character format of the target string; when the character format of the target string is the target specified format of the second user account, forward the target session message to the second client of the second user account. At least one target user account includes the second user account. By indicating the viewing permission of specific target user accounts in the target group for the session message through the target string, the step of creating a new chat window is omitted, thereby achieving the purpose of directly interacting with session messages with stronger privacy for specific user accounts in the group chat scenario, and thus realizing the technical effect of improving the display efficiency of session messages.
[0258] As an optional solution, the forwarding unit 1306 includes:
[0259] A temporary storage module for temporarily storing the target session message to the target server when the communication channel between the second client and the target server is in a closed state;
[0260] A forwarding module for forwarding the target session message to the second client of the second user account when the communication channel between the second client and the target server is in an open state.
[0261] For specific embodiments, reference may be made to the examples shown in the above session message display method, and details are not described herein again.
[0262] According to another aspect of the embodiments of the present invention, an electronic device for implementing the above session message display method is further provided. As Figure 14 shown, the electronic device includes a memory 1402 and a processor 1404. The memory 1402 stores a computer program, and the processor 1404 is configured to execute the steps in any one of the above method embodiments through the computer program.
[0263] Optionally, in this embodiment, the above electronic device may be at least one network device among multiple network devices in a computer network.
[0264] Optionally, in this embodiment, the above processor may be configured to execute the following steps through the computer program:
[0265] S1. Display a chat window of a target group where the first user account is located in the first client, where the target group includes at least three user accounts;
[0266] S2. Display a target string and a target session message to be interacted with in a target information input box of the first client, where the target string carries account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message;
[0267] S3. In response to a sending operation performed on the target string and the target session message, display the target string and the target session message in the chat window.
[0268] Optionally, those of ordinary skill in the art can understand that Figure 14 The structure shown is only for illustration, and the electronic device can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and terminal devices such as Mobile Internet Devices (MID), PAD, etc. Figure 14 It does not limit the structure of the above-mentioned electronic device. For example, the electronic device may further include more or fewer components (such as a network interface, etc.) than those shown Figure 14 in the figure, or have a different configuration from that shown Figure 14 in the figure.
[0269] Among them, the memory 1402 can be used to store software programs and modules, such as the program instructions / modules corresponding to the display method and device of the session message in the embodiment of the present invention. The processor 1404 executes various functional applications and data processing by running the software programs and modules stored in the memory 1402, that is, implements the above-mentioned display method of the session message. The memory 1402 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memories. In some instances, the memory 1402 may further include a memory remotely set relative to the processor 1404, and these remote memories can be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, an enterprise internal network, a local area network, a mobile communication network, and combinations thereof. Among them, the memory 1402 can specifically but not limitedly be used to store information such as the target group, the target string, and the target session message. As an example, such as Figure 14As shown in the figure, the above-mentioned memory 1402 may include, but is not limited to, the first display unit 1202, the second display unit 1204, and the third display unit 1206 in the display device for the above-mentioned session messages (or a fourth acquisition unit 1302, a parsing unit 1304, and a forwarding unit 1306 not shown in the figure). In addition, it may also include, but is not limited to, other module units in the display device for the above-mentioned session messages, which will not be elaborated in this example.
[0270] Optionally, the above-mentioned transmission device 1406 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1406 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable, so as to communicate with the Internet or a local area network. In one example, the transmission device 1406 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0271] In addition, the above-mentioned electronic device further includes: a display 1408, which is used to display information such as the above-mentioned target group, target string, and target session message; and a connection bus 1410, which is used to connect each module component in the above-mentioned electronic device.
[0272] In other embodiments, the above-mentioned terminal device or server may be a node in a distributed system. Among them, the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting multiple nodes through network communication. Among them, the nodes can form a peer-to-peer (Peer To Peer, abbreviated as P2P) network, and any form of computing device, such as servers, terminals and other electronic devices, can become a node in the blockchain system by joining the peer-to-peer network.
[0273] According to one aspect of the present application, a computer program product is provided. The computer program product includes computer programs / instructions, and the computer programs / instructions include program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit, various functions provided by the embodiments of the present application are executed.
[0274] The serial numbers of the above-mentioned embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.
[0275] Optionally, the computer system includes a Central Processing Unit (CPU), which can perform various appropriate actions and processes according to the program stored in the Read-Only Memory (ROM) or the program loaded from the storage section into the Random Access Memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory, and the random access memory are connected to each other via a bus. An Input / Output interface (I / O interface) is also connected to the bus.
[0276] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc. and a speaker, etc.; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as magnetic disks, optical discs, magneto-optical discs, semiconductor memories, etc., are installed on the drive as needed so that computer programs read from them can be installed into the storage part as needed.
[0277] In particular, according to an embodiment of the present application, the processes described in each method flow chart can be implemented as computer software programs. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for executing the methods shown in the flow charts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from the removable media. When the computer program is executed by the central processing unit, various functions defined in the system of the present application are executed.
[0278] According to an aspect of the present application, there is provided a computer-readable storage medium, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned method for displaying session messages.
[0279] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may be set to store a computer program for executing the following steps:
[0280] S1, display a chat window of a target group where the first user account is located in the first client, where at least three user accounts are included in the target group;
[0281] S2. Display a target string and a target session message to be interacted in the target information input box of the first client. The target string carries account characters of at least one target user account among at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message.
[0282] S3. In response to the send operation performed on the target string and the target session message, display the target string and the target session message in the chat window.
[0283] Optionally, in this embodiment, those of ordinary skill in the art can understand that all or part of the steps in the above various methods of the embodiment can be completed by a program instructing the relevant hardware of the terminal device. The program can be stored in a computer-readable storage medium, and the storage medium can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.
[0284] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0285] If the integrated unit in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the above computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in the storage medium and includes several instructions for causing one or more computer devices (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention.
[0286] In the above embodiments of the present invention, the descriptions of each embodiment have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0287] In several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the units or modules can be in an electrical or other form.
[0288] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0289] In addition, each functional unit in various embodiments of the present invention may be integrated in a processing unit, may also exist individually as a physical unit, or two or more units may be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0290] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.
Claims
1. A method for displaying session messages, characterized in that, Including: Display a chat window of a target group where the first user account is located in the first client, where at least three user accounts are included in the target group; Display a target string and a target session message to be interacted with in a target information input box of the first client, where the target string carries account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message; In response to a send operation performed on the target string and the target session message, display the target string and the target session message in the chat window; When the current time period is within a first preset time period and the target string indicates that the target user account is allowed to view a part of the target session message within the preset time period, send the part of the target session message to the target client of the target user account; Display the target string and the part of the target session message on the chat window of the target client.
2. The method according to claim 1, wherein The displaying the target string and the target session message to be interacted with in the target information input box of the first client includes: Display a first string and the target session message in the target information input box, where the first string carries account characters of the at least one target user account, and the first string is used to indicate that the target user account is allowed to view the target session message.
3. The method according to claim 2, wherein The displaying the target string and the target session message in the chat window further includes: Display the first string, the target session message, and a first prompt message in the chat window, where the first prompt message is used to prompt that the target session message allows the target user account to view the target session message.
4. The method according to claim 1, wherein The displaying the target string and the target session message to be interacted with in the target information input box of the first client includes: Display a second string and the target session message in the target information input box, where the second string carries account characters of the at least one target user account, and the second string is used to indicate that the target user account is prohibited from viewing the target session message.
5. The method according to claim 4, wherein The displaying the target string and the target session message in the chat window further includes: Display the second string, the target session message, and a second prompt message in the chat window, where the second prompt message is used to prompt that the target session message prohibits the target user account from viewing the target session message.
6. The method according to claim 1, wherein Before displaying the target string and the target session message to be interacted with, it includes: Obtain a target specified character in the target message input box, where the target string includes the target specified character; Obtain target account characters in the target message input box, where the target account characters are account characters of the at least one target user account.
7. The method according to claim 6, wherein Before displaying the target string and the target session message to be interacted with, it includes: When the target specified character is obtained in the target message input box, a target account list is displayed, where the account characters of the at least three user accounts are shown in the target account list; In response to a selection operation triggered on the target account list, the target account characters are displayed in the target message input box.
8. The method according to claim 6, wherein The obtaining the target specified character in the target message input box includes: When a first specified sub-character is obtained in the target message input box, a third prompt message is displayed, where the target specified character includes the first specified sub-character, and the third prompt message is used to prompt to input a second specified sub-character in the target message input box to indicate the viewing permission of the at least one account among the at least three user accounts for the session message to be interacted input by the first user account; The second specified sub-character is obtained in the target message input box, where the target specified character includes the second specified sub-character.
9. The method according to claim 1, wherein The method further includes: When a third string is displayed in the target information input box, target additional information to be interacted is obtained, where the third string carries the account characters of the at least one target user account, and the third string is used to indicate the viewing permission of the target user account for the target additional message; In response to a sending operation performed on the third string and the target additional message, the third string and the target additional message are displayed in the chat window.
10. The method according to any one of claims 1 to 9, characterized in that The displaying the target string and the target session message in the chat window in response to a sending operation performed on the target string and the target session message includes: In response to a sending operation performed on the target string and the target session message, the target string and the target session message are sent to a target server, where the target server is used to parse the target string, and when the character format of the target string is the target specified format of the second user account, the target session message is forwarded to the second client of the second user account, and the at least one target user account includes the second user account; The target string and the target session message are displayed on the chat window.
11. A method for displaying session messages, characterized in that, Includes: The target string and the target session message to be interacted sent by the first client of the first user account are obtained, where the first user account is a user account in a target group, the target group includes at least three user accounts, the target string carries the account characters of at least one target user account among the at least three user accounts, and the target string is used to indicate the viewing permission of the target user account for the target session message; The target string is parsed to obtain the character format of the target string; When the current time period is within a first preset time period, the target string indicates that the target user account is allowed to view partial target session messages during the first preset time period, and the character format of the target string is the target specified format of the second user account, forward the partial target session messages to the second client of the second user account, where the at least one target user account includes the second user account.
12. The method according to claim 10, characterized in that The forwarding of the target session messages to the second client of the second user account includes: When the communication channel between the second client and the target server is in a closed state, temporarily store the target session messages in the target server; When the communication channel between the second client and the target server is in an open state, forward the target session messages to the second client of the second user account.
13. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1 to 12 are implemented.
14. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 12 through the computer program.
Citation Information
Patent Citations
Instant messaging method and instant messaging device
CN105704002A
Group chat method, server, and client
CN106506177A
Information processing method and device and electronic equipment
CN109995542A
Information processing method and device, electronic equipment and medium
CN110691027A