CN116015992A - Session message display method, storage medium and electronic device - Google Patents

Session message display method, storage medium and electronic device Download PDF

Info

Publication number
CN116015992A
CN116015992A CN202111222139.7A CN202111222139A CN116015992A CN 116015992 A CN116015992 A CN 116015992A CN 202111222139 A CN202111222139 A CN 202111222139A CN 116015992 A CN116015992 A CN 116015992A
Authority
CN
China
Prior art keywords
target
user account
session message
character string
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111222139.7A
Other languages
Chinese (zh)
Inventor
韩宇波
龙建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202111222139.7A priority Critical patent/CN116015992A/en
Publication of CN116015992A publication Critical patent/CN116015992A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for displaying session messages, a storage medium and electronic equipment. Wherein the method comprises the following steps: displaying a chat window of a target group where a first user account is located in a first client, wherein the target group comprises at least three user accounts; displaying a target character string and a target session message to be interacted in a target information input box of the first client, wherein the target character string carries account characters of at least one target user account in at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message; the target string and the target session message are displayed in the chat window in response to a send operation performed on the target string and the target session message. The invention solves the technical problem of lower display efficiency of the session message.

Description

Session message display method, storage medium and electronic device
Technical Field
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
In the group chat scenario, if a user wants to individually designate a member of a group for interaction of session messages, a new chat window is generally created for the individual member, and the individual session message is interacted with the member in the new chat window. However, the interaction mode of the session message has complicated steps, and reduces the display efficiency of the session message. That is, the related art has a technical problem that the display efficiency of the session message is low.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method for displaying session messages, a storage medium and electronic equipment, which are used for at least solving the technical problem of low display efficiency of the session messages.
According to an aspect of an embodiment of the present invention, there is provided a method for displaying a session message, including: displaying a chat window of a target group where a first user account is located in a first client, wherein the target group comprises at least three user accounts; displaying a target character string and a target session message to be interacted in a target information input box of the first client, wherein the target character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account to the target session message; and displaying the target character string and the target session message in the chat window in response to a transmission operation performed on the target character string and the target session message.
According to an aspect of the embodiment of the present invention, there is provided another method for displaying a session message, including: acquiring a target character string and a target session message to be interacted, wherein the target character string and the target session message are sent by a first client of a first user account, the first user account is a user account in a target group, the target group comprises at least three user accounts, the target character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message; analyzing the target character string to obtain a character format of the target character string; and forwarding the target session message to a second client of the second user account under the condition that the character format of the target character string is the target specified format of the second user account, wherein the at least one target user account comprises the second user account.
According to another aspect of the embodiment of the present invention, there is also provided a display device for a session message, including: the first display unit is used for displaying a chat window of a target group where a first user account is located in a first client, wherein the target group comprises at least three user accounts; the second display unit is configured to display a target character string and a target session message to be interacted in a target information input box of the first client, where the target character string carries account characters of at least one target user account of the at least three user accounts, and the target character string is used to indicate viewing authority of the target user account to the target session message; and a third display unit configured to display the target character string and the target session message in the chat window in response to a transmission operation performed on the target character string and the target session message.
As an alternative, the second display unit includes: the first display module is 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.
As an alternative, the first display module further includes: and the first display sub-module is used for displaying the first character string, the target session message and first prompt information in the chat window, wherein the first prompt information is used for prompting the target session message to allow the target user account to view the target session message.
As an alternative, the second display unit includes: the second display module is 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 instruct to prohibit the target user account from viewing the target session message.
As an alternative, the second display module further includes: and the second display sub-module is used for displaying the second character string, the target session message and second prompt information in the chat window, wherein the second prompt information is used for prompting the target session message to prohibit the target user account from viewing the target session message.
As an alternative, it includes: a first obtaining unit, configured to obtain a target specified character in the target message input box before the target character string and a target session message to be interacted are displayed, where the target character string includes the target specified character; and the second acquisition unit is used for acquiring target account number characters in the target message input box before the target character string and the target session message to be interacted are displayed, wherein the target account number characters are account number characters of the at least one target user account number.
As an alternative, it includes: a fourth display unit, configured to display a target account list when the target specified character is obtained in the target message input box before the target character string and the target session message to be interacted are displayed, where account characters of the at least three user accounts are displayed in the target account list; and the fifth display unit is used for responding to the selected operation triggered on the target account list before the target character string and the target session message to be interacted are displayed, and displaying the target account character in the target message input box.
As an alternative, the first obtaining unit includes: the third display module is configured to display third prompt information when a first designated sub-character is acquired in the target message input box, where the target designated character includes the first designated sub-character, and the third prompt information is configured to prompt the target message input box to input a second designated sub-character, so as to instruct at least one account of the at least three user accounts to view a session message to be interacted, where the view permission is input by the first user account, by using the at least one account; and the acquisition module is used for acquiring the second designated sub-character in the target message input box, wherein the target designated character comprises the second designated sub-character.
As an alternative, the apparatus further includes: 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 the at least one target user account, and the third string is used to indicate viewing authority of the target user account on the target additional information; and a sixth display unit configured to display the third character string and the target additional message in the chat window in response to a transmission operation performed on the third character string and the target additional message.
As an alternative, the 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 forward the target session message to a second client of a second user account if a character format of the target string is a target specified format of the second user account, and the at least one target user account includes the second user account; and the fourth display module is used for displaying the target character string and the target session message on the chat window.
According to another aspect of the embodiment of the present invention, there is also provided another display apparatus for a session message, including: a fourth obtaining unit, configured to obtain a target character string and a target session message to be interacted, where the target character string is 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 character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used to indicate viewing authority of the target user account on the target session message; the analysis unit is used for analyzing the target character string to obtain a character format of the target character string; and the forwarding unit is used for forwarding the target session message to a second client of the second user account when the character format of the target character string is the target specified format of the second user account, wherein the at least one target user account comprises the second user account.
As an alternative, the forwarding unit includes: the temporary storage module is used for temporarily storing the target session message to the target server under the condition that a communication channel between the second client and the target server is in a closed state; and the forwarding module is used for forwarding the target session message to the second client of the second user account under the condition that the communication channel between the second client and the target server is in an open state.
According to yet another aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the display method of the session message as above.
According to still another aspect of the embodiment of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above-mentioned method for displaying session messages through the computer program.
In the embodiment of the invention, a chat window of a target group where a first user account is located is displayed in a first client, wherein the target group comprises at least three user accounts; displaying a target character string and a target session message to be interacted in a target information input box of the first client, wherein the target character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account to the target session message; and in response to the sending operation performed on the target character string and the target session message, displaying the target character string and the target session message in the chat window, and indicating the viewing authority of a specific target user account in the target group to the session message through the target character string, thereby omitting the step of creating a chat window, further achieving the aim of directly carrying out interaction of the session message on the specific user account in the group chat scene, further realizing the technical effect of improving the display efficiency of the session message, and further solving the technical problem of lower display efficiency of the session message.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative method of displaying session messages according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of a flow of an alternative method of displaying session messages according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an alternative method of displaying a conversation message, according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another alternative method of displaying a conversation message, according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another alternative method of displaying a conversation message, according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another alternative method of displaying a conversation message, according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another alternative method of displaying a conversation message, in accordance with embodiments of the present invention;
FIG. 8 is a schematic diagram of another alternative method of displaying a conversation message, according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of another alternative method of displaying a conversation message, in accordance with embodiments of the present invention;
FIG. 10 is a schematic diagram of another alternative method of displaying a conversation message, in accordance with an embodiment of the present invention;
FIG. 11 is a schematic illustration of a flow of another alternative method of displaying a conversation message, in accordance with an embodiment of the present invention;
FIG. 12 is a schematic diagram of an alternative display device for session messages according to an embodiment of the invention;
FIG. 13 is a schematic diagram of another alternative display device for conversation messages in accordance with embodiments of the present invention;
fig. 14 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present invention, there is provided a method for displaying a session message, optionally, as an optional implementation manner, the method for displaying a session message may be applied, but is not limited to, to the environment shown in fig. 1. Including but not limited to a user device 102, a network 110, and a server 112, where the user device 102 may include but is not limited to a display 108, a processor 106, and a memory 104.
The specific process comprises the following steps:
step S102, the user equipment 102 acquires an operation instruction corresponding to the sending operation, wherein the operation instruction also carries a target character string displayed in a target information input box of the first client and a target session message to be interacted;
steps S104-S106, the user equipment 102 sends the operation instruction to the server 112 through the network 110;
step S108, the server 112 searches the group identifier of the target group indicated by the target character string and the account identifier of the target account in the target group through the database 114, and processes the target character string through the processing engine 116, so as to generate an execution result of the sending operation, where the execution result is used to indicate an object to be sent of the target session message, that is, the account to be sent in the target group;
In steps S110-S112, the server 112 sends the execution result to the user equipment 102 through the network 110, and the processor 106 in the user equipment 102 displays the target character string and the target session message in the display 108 according to the execution result, and stores the target character string and the target session message in the memory 104.
In addition to the example shown in fig. 1, the above steps may be independently performed by the user equipment 102, that is, the steps of generating the execution result and the like are performed by the user equipment 102, thereby reducing the processing pressure of the server. The user device 102 includes, but is not limited to, a handheld device (e.g., a mobile phone), a notebook computer, a desktop computer, a vehicle-mounted device, etc., and the invention is not limited to a particular implementation of the user device 102.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for displaying the session message includes:
s202, displaying a chat window of a target group where a first user account is located in a first client, wherein the target group comprises at least three user accounts;
s204, displaying a target character string and a target session message to be interacted in a target information input box of the first client, wherein the target character string carries account characters of at least one target user account in at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message;
S206, in response to the sending operation performed on the target character string and the target session message, the target character string and the target session message are displayed in the chat window.
Optionally, in this embodiment, the method for displaying a session message may be, but not limited to, applied in a group chat scenario, and the method for adjusting the viewing authority of the group member to the session message by using the target character string directly implements interaction of the privacy session message in the group chat window, thereby improving the display efficiency of the session message.
Optionally, in this embodiment, the target group may be, but is not limited to, a group corresponding to the target group identifier, and in the process of displaying the target session message, the target group identifier of the target group may be, but is not limited to, acquired first, and then the target session message is displayed in the corresponding group chat window based on the target group identifier.
Optionally, in this embodiment, the target information input box may be, but not limited to, a first input box configured on a chat window of the target group, or may be, but not limited to, a second input box in the first client, where the second input box has an association with the chat window of the target group, and related information acquired in the second input box may be displayed in the chat window of the target group through the association.
Optionally, in this embodiment, the target character string carries account characters of at least one target user account of the at least three user accounts; in addition, the target character string can also be, but is not limited to being, provided with a target designated character for indicating the viewing authority of the target user account to the target session message.
Optionally, in this embodiment, the viewing authority of the target user account to the target session message may include, but is not limited to: allowing the target user account to view all/part of the target session message, or prohibiting the target user account from viewing all/part of the target session message, or allowing the target user account to view all/part of the target session message for a first predetermined period of time, or prohibiting the user account from viewing all/part of the target session message for a second predetermined period of time.
Optionally, in this embodiment, the types of the target strings may be multiple, for example, a first type of target string is used to indicate that the target user account is allowed to view all target session messages, a second type of target string is used to indicate that the target user account is prohibited from viewing all target session messages, a third type of target string is used to indicate that the target user account is allowed to view part of target session messages, a fourth type of target string is used to indicate that the target user account is prohibited from viewing part of target session messages, a fifth type of target string is used to indicate that the target user account is allowed to view target session messages in a first preset time period, a sixth type of target string is used to indicate that the target user account is prohibited from viewing target session messages in a second preset time period, and so on. And multiple types of target character strings can be flexibly matched for use, for example, a first type of target character string is used for selecting a user account 1, a user account 2, a user account 3 and a user account 4 in a target group, so that all target session messages are allowed to be checked, and a second type of target character string is used for selecting a user account 1 in the user account 1, the user account 2, the user account 3 and the user account 4, so that all target session messages are forbidden to be checked, and therefore, the finally presented checking authority comprises: user account 1, user account 2, and user account 4 in the target group allow viewing of all target session messages.
It should be noted that, in general, the chat window of the group provides a convenient chat platform for group members (user accounts), and the session messages generated in the chat platform are often disclosed to the group members, but in the group chat scene, there is inevitably an interaction requirement of the session messages with higher privacy, and in the face of the interaction requirement, it is generally necessary to separate from the existing group chat window, and then establish a non-group chat window to meet the interaction requirement; however, in this embodiment, the complex step of additionally establishing a non-group chat window is omitted, and the mode of adjusting the viewing authority of the group members to the session message by using the target character string directly realizes the interaction of the privacy session message in the group chat window, thereby improving the display efficiency of the session message.
Further by way of example, as shown in fig. 3, optionally, a chat window 302 of a target group in which the first user account is located is displayed in the first client, where the target group includes at least three user accounts (such as user account 1, user account 2, and the first user account); displaying a target character string 306 (such as "+ @ user account 1") and a target session message to be interacted (such as "i want to eat a chafing dish") in a target information input box 304 of the first client, wherein the target character string 306 carries account characters (such as "user account 1") of at least one target user account of at least three user accounts, and the target character string 306 is used for indicating the viewing authority of the user account 1 on the target session message 308, for example, allowing the user account 1 to view the target session message 308; in response to a send operation (e.g., a click operation triggered on the virtual button "send") performed on the target string 306 and the target session message 308, the target string 306 and the target session message 308 are displayed in the chat window 302 (not shown temporarily).
According to the embodiment provided by the application, a chat window of a target group where a first user account is located is displayed in a first client, wherein the target group comprises at least three user accounts; displaying a target character string and a target session message to be interacted in a target information input box of the first client, wherein the target character string carries account characters of at least one target user account in at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message; in response to the sending operation performed on the target character string and the target session message, the target character string and the target session message are displayed in the chat window, the viewing authority of the specific target user account in the target group to the session message is indicated through the target character string, and the step of newly creating a chat window is omitted, so that the aim of directly carrying out interaction of the session message with stronger privacy on the specific user account in the group chat scene is fulfilled, and the technical effect of improving the display efficiency of the session message is realized.
As an alternative, displaying the target character string and the target session message to be interacted in the target information input box of the first client, including:
And displaying a first character string and a target session message in the target information input box, wherein the first character string carries at least one account number character of the target user account number, and the first character string is used for indicating that the target user account number is allowed to view the target session message.
Optionally, in this embodiment, the first string is used to indicate that the target user account is allowed to view the target session message, which may, but is not limited to, indicate 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 the user account a, the user account B can view the first half of the target session message, and indicate that the user account C can view the second half of the target session message, where the user account a, the user account B, and the user account C belong to the same target group.
Optionally, in this embodiment, the first string may be used to indicate, but is not limited to, that the target user account is allowed to view the target session message within the first predetermined time. For example, the first string is used to indicate that the user account a can view the target session message in the target time period; in other words, the first string is used to instruct the user account a to prohibit viewing of the target session message outside the target period of time.
Further illustratively, as shown in fig. 3, a first character string (target character 306) and a target session message 308 are optionally displayed in the target information input box 304, where the first character string carries at least one account character of a target user account (e.g., "user account 1"), and the first character string is used to indicate that the user account 1 is allowed to view the target session message 308.
According to the embodiment of the invention, the first character string and the target session message are displayed in the target information input box, wherein the first character string carries at least one account number character of the target user account number, and the first character string is used for indicating that the target user account number is allowed to view the target session message, so that the aim of directly carrying out interaction of the session message with stronger privacy on the specific user account number in the group chat scene is fulfilled, and the technical effect of improving the display efficiency of the session message is realized.
As an alternative, displaying the target character string and the target session message in the chat window further includes:
and displaying the first character string, the target session message and first prompt information in the chat window, wherein the first prompt information is used for prompting the target session message to allow the target user account to view the target session message.
Optionally, in this embodiment, to improve the intuitiveness of displaying the target session message, the displayed first prompt information is reused to prompt that the displayed target session message will only open the viewing authority to the target user account at the same time of displaying the target session message.
Further illustratively, continuing with the scenario shown in FIG. 3, for example, as shown in FIG. 4, assuming that a click operation is detected on the virtual button "send" associated with the target information input box 304, as shown in (a) in FIG. 4; further, in response to the click operation, a first character string (target character string 306) currently displayed in the target information input box 304 and a target session message 308 are displayed in the chat window, as shown in (b) of fig. 4; in addition, while the first string (target string 306) and the target session message 308 are displayed in the chat window, a first prompt 402 (e.g. "you sent a whisper, only user account 1 is visible") is displayed, where the first prompt 402 is used to prompt the target session message 308 to allow the target user account (e.g. "user account 1") to view the target session message 308.
As an alternative, displaying the target character string and the target session message to be interacted in the target information input box of the first client, including:
And displaying a second character string and a target session message in the target information input box, wherein the second character string carries at least one account number character of the target user account number, and the second character string is used for indicating that the target user account number is forbidden to view the target session message.
Optionally, in this embodiment, the second string is used to indicate that the target user account is allowed to view the target session message, which may, but is not limited to, indicate 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 the user account a, the user account B, and the user account C belong to the target group, and indicate that the user account a, the user account B, and the user account C are prohibited from viewing the first half of the target session message.
Optionally, in this embodiment, the second string may be further used, but not limited to, to indicate that the target user account is prohibited from viewing the target session message for a second predetermined time. For example, the second character string is used for indicating that the user account A is prohibited from viewing the target session message in 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 of the target time period.
Further illustratively, based on the scenario shown in fig. 3, and continuing with the scenario shown in fig. 5, a second string (target character 402) and a target session message 308 are displayed in the target information input box 304, where the second string carries at least one account character of a target user account (e.g. "user account 1"), and the first string is used to instruct to prohibit the user account 1 from viewing the target session message 308.
According to the embodiment provided by the application, the second character string and the target session message are displayed in the target information input box, wherein the second character string carries at least one account number character of the target user account number, and the second character string is used for indicating to prohibit the target user account number from checking the target session message, so that the aim of directly carrying out interaction of the session message with stronger privacy on the specific user account number in the group chat scene is fulfilled, and the technical effect of improving the display efficiency of the session message is achieved.
As an alternative, displaying the target character string and the target session message in the chat window further includes:
and displaying a second character string, the target session message and second prompt information in the chat window, wherein the second prompt information is used for prompting the target session message to prohibit the target user account from viewing the target session message.
Optionally, in this embodiment, to improve the intuitiveness of displaying the target session message, the displayed second prompting information is reused to prompt that the displayed target session message will close the viewing authority to the target user account at the same time of displaying the target session message.
Further by way of example, and optionally based on the scenario shown in FIG. 5, continuing with the example shown in FIG. 6, assume that a click operation is detected on the virtual button "send" associated with the target information input box 304, as shown in FIG. 6 (a); further, in response to the click operation, a second character string (target character string 502) currently displayed in the target information input box 304 and the target session message 308 are displayed in the chat window, as shown in (b) of fig. 6; in addition, while the second string (the target string 502) and the target session message 308 are displayed in the chat window, a second prompt 602 (e.g. "you sent a whisper, not visible to the user account 1") is displayed, where the first prompt 402 is used to prompt the target session message 308 to prohibit the target user account (e.g. "user account 1") from viewing the target session message 308.
As an alternative, before displaying the target character string and the target session message to be interacted, the method includes:
S1, acquiring target specified characters in a target message input box, wherein a target character string comprises the target specified characters;
s2, acquiring target account number characters in a target message input box, wherein the target account number characters are account number characters of at least one target user account number.
Optionally, in this embodiment, the target character string carries, in addition to account characters (target account characters) of at least one target user account, a target specific character, where the target specific character is used to trigger an interaction specific instruction in the target group, where the interaction specific instruction is used to indicate to determine a viewing authority of at least one target user account in the target group on information sent by the first user account in the target group.
Further by way of example, the first user account may optionally enter a target designation character and a target account character in a target information input box to collectively form a target character string; in addition, since the target specified character and the target account number character may be, but are not limited to, commonly used characters, when the target specified character and the target account number character are obtained in the target information input box, the target specified character and the target account number character may be, but are not limited to, highlighted for prompting the first user account number that the composition of the target character string may be triggered; however, if the cancellation operation performed by the first user account is further acquired, the highlighting is cancelled, and the target specified character and the target account character are regarded as common characters. Wherein, highlighting can also be replaced by prompting information, which is not limited herein.
As an alternative, before displaying the target character string and the target session message to be interacted, the method includes:
s1, displaying a target account list under the condition that target specified characters are acquired from a target message input box, wherein account characters of at least three user accounts are displayed in the target account list;
and S2, responding to the selected operation triggered on the target account list, and displaying the target account character in the target message input box.
Optionally, in this embodiment, in order to improve the display efficiency of the target account number character, in a case where the target specified character is obtained in the target message input box, the target account number list is directly displayed to assist in further displaying the target account number character.
Optionally, in this embodiment, account characters of at least three user accounts are shown in the target account list, and the account characters of the at least three user accounts may be, but are not limited to, user accounts that are currently allowed to adjust viewing rights. For example, assuming that the target group includes the first user account, the user account a, the user account B, and the user account C, and then the second designated character "- @" is used first to remove the user account B in the target group (that is, to indicate that the user account B is prohibited from viewing the session message currently to be sent by the first user account), when the first designated character "+ @" is used, the target account list of the user account B, the user account a, and the user account C is displayed.
It should be noted that, when the target specified character is obtained in the target message input box, displaying a target account list, wherein account characters of at least three user accounts are displayed in the target account list; and responding to the selected operation triggered on the target account list, and displaying target account characters in a target message input box.
Further illustratively, continuing with the scenario shown in FIG. 3, for example, as shown in FIG. 7, assuming that the target specified character 702 is obtained in the target message input box 304, as shown in (a) of FIG. 7; further, as shown in (b) in fig. 7, a target account list 704 is displayed, wherein account characters (such as "user account 1" and "user account 2") of at least three user accounts are displayed in the target account list 704; in response to a selection operation triggered on the target account list 704, a target account character (e.g., "user account 1") is displayed in the target message input box 304, as shown in (c) of fig. 7.
According to the embodiment provided by the application, when the target specified characters are acquired in the target message input box, displaying a target account list, wherein account characters of at least three user accounts are displayed in the target account list; and in response to the selected operation triggered on the target account list, displaying the target account character in the target message input box, so that the aim of quickly inputting the account character is fulfilled, and the effect of improving the acquisition efficiency of the target character string is realized.
As an alternative, the method for obtaining the target specified character in the target message input box includes:
s1, displaying third prompt information under the condition that a first appointed sub-character is acquired in a target message input box, wherein the target appointed character comprises the first appointed sub-character, and the third prompt information is used for prompting the second appointed sub-character to be input in the target message input box so as to indicate the viewing authority of at least one account of at least three user accounts to the session message to be interacted, which is input by the first user account;
s2, acquiring a second designated sub-character in the target message input box, wherein the target designated character comprises the second designated sub-character.
Optionally, in this embodiment, in order to prompt the user in time to implement the interactive function of the session message with higher privacy in the target group, in the case that the first designated sub-character is acquired, third prompt information for prompting the user to input the second designated sub-character in the target message input box is displayed.
Further illustratively, and optionally based on the scenario shown in FIG. 3, continuing with FIG. 8, for example, assuming that a first designated sub-character 802 is obtained in the target message input box 304 as shown in (a) of FIG. 8; further as shown in fig. 8 (b), a third prompt 804 (e.g. "you can re-enter @ turn on whisper function"); assuming again that the user sees the third alert 804, the entry of the second designated sub-character 806 is completed in the target message input box 304, and the second designated sub-character 806 is displayed in the target message input box 304.
As an alternative, the method further comprises:
s1, acquiring target additional information to be interacted under the condition that a third character string is displayed in a target information input box, wherein the third character string carries account characters of at least one target user account, and the third character string is used for indicating the viewing authority of the target user account on the target additional information;
and S2, displaying the third character string and the target additional message in the chat window in response to the sending operation performed on the third character string and the target additional message.
Alternatively, in the present embodiment, assuming that the session message is used to represent text-based information, the target additional information may be, but is not limited to, used to represent non-text-based information, such as image information, video information, audio information, and the like.
It should be noted that, in order to improve the comprehensiveness of information interaction, in the case that the third character string is displayed in the target information input box, an information service capable of concealing interaction in the target group is provided for the target additional information, and the user can display the target additional information to a single group member or members in the target group in the same interaction manner of the target session message by using the information service.
According to the embodiment provided by the application, under the condition that the third character string is displayed in the target information input box, target additional information to be interacted is obtained, wherein the third character string carries at least one account number character of the target user account number, and the third character string is used for indicating the viewing authority of the target user account number to the target additional information; and in response to the sending operation executed on the third character string and the target additional message, displaying the third character string and the target additional message in the chat window, thereby realizing the effect of improving the comprehensiveness of the information interaction.
As an alternative, displaying the target character string and the target session message in the chat window in response to a transmission operation performed on the target character string and the target session message, includes:
s1, responding to a sending operation executed on a target character string and a target session message, and sending the target character string and the target session message to a target server, wherein the target server is used for analyzing the target character string and forwarding the target session message to a second client of a second user account when the character format of the target character string is in a target specified format of the second user account, and at least one target user account comprises the second user account;
S2, displaying the target character string and the target session message on the chat window.
Alternatively, in this embodiment, the target server may be, but not limited to, a state server, a session server, and a queue server, where the state server is configured to receive target information sent from the client, and execute a corresponding operation according to an instruction carried in the target information, for example, forwarding a session message carried in the target information; the session server may be, but is not limited to, configured to perform a corresponding operation on the received target information according to the above instruction; the queue server may be, but is not limited to, configured to temporarily store the target information, for example, in a case where the target information does not carry a related instruction for indicating an object to be forwarded, temporarily store the target information, and delete the target information in a case where the related instruction is not received within a predetermined period of time; or, under the condition that the object to be forwarded does not establish a communication channel with the target server, the target information is temporarily stored, and under the condition that the communication channel is established, the target information is forwarded.
Further by way of example, an alternative, e.g., as shown in fig. 9, specific steps are as follows:
step S902, acquiring an establishment request for the target group triggered on the client 902 (the client 902 may be understood as a client corresponding to each group member in the target group, such as the first client);
Step S904, establishing a long connection between the client 902 corresponding to each group member in the target group and the target server 904;
step S906, a user account list associated with the target group is created.
It should be noted that, in response to a sending operation performed on the target character string and the target session message, the target character string and the target session message are sent to a target server, where the target server is configured to parse the target character string, and forward the target session message to a second client of the second user account when a character format of the target character string is a target specified format of the second user account, where at least one target user account includes the second user account; the target string and the target session message are displayed on a chat window.
Further by way of example, based on the scenario shown in fig. 9, the following steps may be performed, for example, as shown in fig. 10:
step S1002, the first user account logs in to the chat interface where the target group is located through the client 902 (e.g., the first client);
step S1004, the session server 904-2 obtains the interaction information sent in the client 902 and to be sent to the target group;
step S1006, the session server 904-2 analyzes the group identifier carried in the interaction information;
Step S1008, the user account of the target group is called by using the group identification;
step S1010, determining an online user account by the state server 904-1;
step S1012, the session server 904-2 analyzes the appointed identifier and account identifier carried in the interaction information;
step S1014, forwarding the interaction information to the corresponding user account in the online target group according to the analysis result of the session server 904-2;
step S1016, according to the analysis result of the session server 904-2, the queue server 904-3 temporarily stores the interaction information for the user account in the corresponding offline target group.
Alternatively, as another alternative embodiment, as shown in fig. 11, a method for displaying a session message includes:
s1102, a target character string and a target session message to be interacted, which are sent by a first client of a first user account, are obtained, wherein the first user account is a user account in a target group, the target group comprises at least three user accounts, the target character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message;
S1104, analyzing the target character string to obtain a character format of the target character string;
and S1106, forwarding the target session message to a second client of the second user account under the condition that the character format of the target character string is the target specified format of the second user account, wherein at least one target user account comprises the second user account.
Optionally, in this embodiment, the method for displaying a session message may be, but not limited to, applied in a group chat scenario, and the method for adjusting the viewing authority of the group member to the session message by using the target character string directly implements interaction of the privacy session message in the group chat window, thereby improving the display efficiency of the session message.
Optionally, in this embodiment, the target group may be, but is not limited to, a group corresponding to the target group identifier, and in the process of displaying the target session message, the target group identifier of the target group may be, but is not limited to, acquired first, and then the target session message is displayed in the corresponding group chat window based on the target group identifier.
Optionally, in this embodiment, the target information input box may be, but not limited to, a first input box configured on a chat window of the target group, or may be, but not limited to, a second input box in the first client, where the second input box has an association with the chat window of the target group, and related information acquired in the second input box may be displayed in the chat window of the target group through the association.
Optionally, in this embodiment, the target character string carries account characters of at least one target user account of the at least three user accounts; in addition, the target character string can also be, but is not limited to being, provided with a target designated character for indicating the viewing authority of the target user account to the target session message.
Optionally, in this embodiment, the viewing authority of the target user account to the target session message may include, but is not limited to: allowing the target user account to view all/part of the target session message, or prohibiting the target user account from viewing all/part of the target session message, or allowing the target user account to view all/part of the target session message for a first predetermined period of time, or prohibiting the user account from viewing all/part of the target session message for a second predetermined period of time.
Optionally, in this embodiment, the types of the target strings may be multiple, for example, a first type of target string is used to indicate that the target user account is allowed to view all target session messages, a second type of target string is used to indicate that the target user account is prohibited from viewing all target session messages, a third type of target string is used to indicate that the target user account is allowed to view part of target session messages, a fourth type of target string is used to indicate that the target user account is prohibited from viewing part of target session messages, a fifth type of target string is used to indicate that the target user account is allowed to view target session messages in a first preset time period, a sixth type of target string is used to indicate that the target user account is prohibited from viewing target session messages in a second preset time period, and so on. And multiple types of target character strings can be flexibly matched for use, for example, a first type of target character string is used for selecting a user account 1, a user account 2, a user account 3 and a user account 4 in a target group, so that all target session messages are allowed to be checked, and a second type of target character string is used for selecting a user account 1 in the user account 1, the user account 2, the user account 3 and the user account 4, so that all target session messages are forbidden to be checked, and therefore, the finally presented checking authority comprises: user account 1, user account 2, and user account 4 in the target group allow viewing of all target session messages.
It should be noted that, in general, the chat window of the group provides a convenient chat platform for group members (user accounts), and the session messages generated in the chat platform are often disclosed to the group members, but in the group chat scene, there is inevitably an interaction requirement of the session messages with higher privacy, and in the face of the interaction requirement, it is generally necessary to separate from the existing group chat window, and then establish a non-group chat window to meet the interaction requirement; however, in this embodiment, the complex step of additionally establishing a non-group chat window is omitted, and the mode of adjusting the viewing authority of the group members to the session message by using the target character string directly realizes the interaction of the privacy session message in the group chat window, thereby improving the display efficiency of the session message.
Further by way of example, an alternative, e.g., as shown in fig. 9, specific steps are as follows:
step S902, acquiring an establishment request for the target group triggered on the client 902 (the client 902 may be understood as a client corresponding to each group member in the target group, such as the first client);
step S904, establishing a long connection between the client 902 corresponding to each group member in the target group and the target server 904;
Step S906, a user account list associated with the target group is created.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
According to the embodiment provided by the application, a target character string and a target session message to be interacted, which are sent by a first client of a first user account, are obtained, wherein the first user account is a user account in a target group, the target group comprises at least three user accounts, the target character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message; analyzing the target character string to obtain a character format of the target character string; and forwarding the target session message to a second client of the second user account under the condition that the character format of the target character string is the target appointed format of the second user account, wherein at least one target user account comprises the second user account, and indicating the viewing authority of the specific target user account in the target group to the session message through the target character string, so that the step of creating a chat window is omitted, and the aim of directly carrying out interaction of the session message with stronger privacy on the specific user account in the group chat scene is fulfilled, thereby realizing the technical effect of improving the display efficiency of the session message.
As an alternative, forwarding the target session message to the second client of the second user account includes:
s1, under the condition that a communication channel between a second client and a target server is in a closed state, temporarily storing a target session message to the target server;
and S2, forwarding the target session message to the second client of the second user account under the condition that a communication channel between the second client and the target server is in an open state.
It should be noted that, under the condition that the communication channel between the second client and the target server is in a closed state, the target session message is temporarily stored to the target server; and forwarding the target session message to the second client of the second user account under the condition that a communication channel between the second client and the target server is in an open state.
Further by way of example, based on the scenario shown in fig. 9, the following steps may be performed, for example, as shown in fig. 10:
step S1002, the first user account logs in to the chat interface where the target group is located through the client 902 (e.g., the first client);
step S1004, the session server 904-2 obtains the interaction information sent in the client 902 and to be sent to the target group;
Step S1006, the session server 904-2 analyzes the group identifier carried in the interaction information;
step S1008, the user account of the target group is called by using the group identification;
step S1010, determining an online user account by the state server 904-1;
step S1012, the session server 904-2 analyzes the appointed identifier and account identifier carried in the interaction information;
step S1014, forwarding the interaction information to the corresponding user account in the online target group according to the analysis result of the session server 904-2;
step S1016, according to the analysis result of the session server 904-2, the queue server 904-3 temporarily stores the interaction information for the user account in the corresponding offline target group.
As an alternative solution, for convenience of understanding, the application of the method for displaying session messages in the group chat scenario is described as follows:
assuming group A, after logging in successfully, establishing long connection with a central server, and sending a message in group 1, wherein the message transmits data to the central server by a session transmission protocol, the central server receives the data and analyzes the data according to the session transmission protocol to identify a group number, then, pushing messages according to the session reception protocol to all users (currently online) under the group which are connected, namely, users not currently online, putting the messages to be sent into an offline user message queue according to a message offline protocol, notifying a queue service when the offline user is online, and pushing the offline message to the current user which has just logged in by the queue service.
Alternatively, a long connection may be used to indicate, but is not limited to, that a client establishes a TCP path with a server that is not inadvertently broken, based on which the client and the server may interwork messages. After the client establishes a connection with the server, the client generates a session ID that uniquely identifies the user, and the server may push a message for the session ID.
Wherein, session sending protocol: the protocol is a data protocol, and the specific contents are as follows:
{
GroupId: { val:12, type: number, mark: 'group id',
from UId { val:1222, type: number, mark: 'user sending message uid',
content { val: 'here is Content', type: string (255), mark: 'sent Content',
Touid:[
{ val:89, type: number, mark: 'user id of special @',
{}]
}
session reception protocol:
{
GroupId: { val:12, type: number, mark: 'group id',
from UId { val:1222, type: number, mark: 'user sending message uid',
content { val: 'here is Content', type: string (255), mark: 'sent Content',
ToMe { val: true, type: bol, mark: 'whether @ own' }
}
Message offline protocol: the protocol is a data protocol, and the specific contents are as follows:
Figure BDA0003312995870000241
Figure BDA0003312995870000251
optionally, in this embodiment, it is assumed that a pretty talk feature is configured and that a whisper is used to indicate that a talk in a group is visible only to someone or someone; the pretty function is realized by relying on the input of a whisper symbol, wherein the whisper symbol comprises "- @" representing that only the user is excluded and "+ @" representing that only the user is speaking pretty;
Further, the principle of pretty talk minimum range: if the user uses "- @" and "+ @" in the same record, the user with the smallest value of the two results is the user who can receive the message, for example, group 1 has user a, user B, user C, user D, and user a sends a pretty word, and the input content is as follows:
the + @ user B- @ user B, representing that no one can/can see the message; the + @ user B- @ user C, representing that only user B sees the message; - @ user B, representing user C, user a, user D seeing the message, etc.
Further by way of example, optionally user a successfully logs into the chat software, for example; entering a certain group, and inputting "+" into a group 1 input panel; the upper part of the input panel can prompt that you can input @ again to realize the pretty and pretty of a person or a certain person; the user continues to input @ on the group 1 input panel, and then pulls up a group user selection box, namely, selects which person to talk to; similarly, if the same sentence is required to be spoken to a plurality of people, the steps are just described; after finishing group friend selection, the user A inputs the corresponding speaking content and then sends the content; after the user A sends the pretty call successfully, the user A can see the following prompts on the chat interface of the group 1, and the prompts are as follows: "you sent a whisper, only user B is visible"; on the group 1 chat interface display of user B, user B can see the following prompts in the form of: "user A sent a whisper, the message is visible only to you"; there is no content presentation on the group 1 interface of user C or other group friends.
Optionally, in this embodiment, the new session sending protocol is modified as follows:
{
GroupId: { val:12, type: number, mark: 'group id',
from UId { val:1222, type: number, mark: 'user sending message uid',
content { val: 'here is Content', type: string (255), mark: 'sent Content',
Touid:[
{ val:89, type:number, mark: 'user receiving the pretty word', tag: 'symbol, + represents pretty word to this user only, -represents excluding this user',
{}]
}
message offline protocol:
Figure BDA0003312995870000261
Figure BDA0003312995870000271
session reception protocol:
{
GroupId: { val:12, type: number, mark: 'group id',
from UId { val:1222, type: number, mark: 'user sending message uid',
content { val: 'here is Content', type: string (255), mark: 'sent Content',
tag { val: true, type: bol, mark: 'whether or not to pretty talk' }
}
Session protocol resolution:
and analyzing whether a Touid.tag value exists in the transmitted session protocol, if not, carrying out normal group session, and if so, executing push message or ignoring the user according to whether the tag is "-" or "+".
Through the embodiment, the function of privacy transfer of information is realized; by the implementation mode of the "@ and nickname" technology side, only people who want to receive information can receive the short message, so that the information is hidden from people who do not want to know. The operation cost of the user is reduced, and the user experience is improved; when the scheme is not adopted, the purpose of sending the private messages can be achieved through operation for more than ten minutes, and after the function is adopted, only 1 character is input more than in a "@ + nickname" mode, so that the operation cost of a user is greatly reduced, and the user experience is provided. The chat list is optimized, and the management cost is reduced; because the private message is transferred in the same group chat, no additional new group is needed to be created, the redundant group created for sending the private message is reduced, and the management of the redundant group pair is also reduced.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is also provided a session message display apparatus for implementing the above-mentioned session message display method. As shown in fig. 12, the apparatus includes:
a first display unit 1202, configured to display, in a first client, a chat window of a target group in which a first user account is located, where the target group includes at least three user accounts;
a second display unit 1204, configured to display, in a target information input box of the first client, a target character string and a target session message to be interacted, where the target character string carries account characters of at least one target user account of at least three user accounts, and the target character string is used to indicate a viewing authority of the target user account on the target session message;
The third display unit 1206 is configured to display the target character string and the target session message in the chat window in response to a transmission operation performed on the target character string and the target session message.
Optionally, in this embodiment, the display device of the session message may be, but is not limited to, applied in a group chat scenario, and the method of adjusting the viewing authority of the group member to the session message by using the target character string directly implements interaction of the privacy session message in the group chat window, thereby improving the display efficiency of the session message.
Optionally, in this embodiment, the target group may be, but is not limited to, a group corresponding to the target group identifier, and in the process of displaying the target session message, the target group identifier of the target group may be, but is not limited to, acquired first, and then the target session message is displayed in the corresponding group chat window based on the target group identifier.
Optionally, in this embodiment, the target information input box may be, but not limited to, a first input box configured on a chat window of the target group, or may be, but not limited to, a second input box in the first client, where the second input box has an association with the chat window of the target group, and related information acquired in the second input box may be displayed in the chat window of the target group through the association.
Optionally, in this embodiment, the target character string carries account characters of at least one target user account of the at least three user accounts; in addition, the target character string can also be, but is not limited to being, provided with a target designated character for indicating the viewing authority of the target user account to the target session message.
Optionally, in this embodiment, the viewing authority of the target user account to the target session message may include, but is not limited to: allowing the target user account to view all/part of the target session message, or prohibiting the target user account from viewing all/part of the target session message, or allowing the target user account to view all/part of the target session message for a first predetermined period of time, or prohibiting the user account from viewing all/part of the target session message for a second predetermined period of time.
Optionally, in this embodiment, the types of the target strings may be multiple, for example, a first type of target string is used to indicate that the target user account is allowed to view all target session messages, a second type of target string is used to indicate that the target user account is prohibited from viewing all target session messages, a third type of target string is used to indicate that the target user account is allowed to view part of target session messages, a fourth type of target string is used to indicate that the target user account is prohibited from viewing part of target session messages, a fifth type of target string is used to indicate that the target user account is allowed to view target session messages in a first preset time period, a sixth type of target string is used to indicate that the target user account is prohibited from viewing target session messages in a second preset time period, and so on. And multiple types of target character strings can be flexibly matched for use, for example, a first type of target character string is used for selecting a user account 1, a user account 2, a user account 3 and a user account 4 in a target group, so that all target session messages are allowed to be checked, and a second type of target character string is used for selecting a user account 1 in the user account 1, the user account 2, the user account 3 and the user account 4, so that all target session messages are forbidden to be checked, and therefore, the finally presented checking authority comprises: user account 1, user account 2, and user account 4 in the target group allow viewing of all target session messages.
It should be noted that, in general, the chat window of the group provides a convenient chat platform for group members (user accounts), and the session messages generated in the chat platform are often disclosed to the group members, but in the group chat scene, there is inevitably an interaction requirement of the session messages with higher privacy, and in the face of the interaction requirement, it is generally necessary to separate from the existing group chat window, and then establish a non-group chat window to meet the interaction requirement; however, in this embodiment, the complex step of additionally establishing a non-group chat window is omitted, and the mode of adjusting the viewing authority of the group members to the session message by using the target character string directly realizes the interaction of the privacy session message in the group chat window, thereby improving the display efficiency of the session message.
Specific embodiments may refer to examples shown in the display device of the session message, which are not described herein.
According to the embodiment provided by the application, a chat window of a target group where a first user account is located is displayed in a first client, wherein the target group comprises at least three user accounts; displaying a target character string and a target session message to be interacted in a target information input box of the first client, wherein the target character string carries account characters of at least one target user account in at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message; in response to the sending operation performed on the target character string and the target session message, the target character string and the target session message are displayed in the chat window, the viewing authority of the specific target user account in the target group to the session message is indicated through the target character string, and the step of newly creating a chat window is omitted, so that the aim of directly carrying out interaction of the session message with stronger privacy on the specific user account in the group chat scene is fulfilled, and the technical effect of improving the display efficiency of the session message is realized.
As an alternative, the second display unit 1204 includes:
the first display module is used for displaying a first character string and a target session message in the target information input box, wherein the first character string carries at least one account number character of the target user account number, and the first character string is used for indicating that the target user account number is allowed to view the target session message.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
As an alternative, the first display module further includes:
the first display sub-module is used for displaying a first character string, a target session message and first prompt information in the chat window, wherein the first prompt information is used for prompting the target session message to allow the target user account to view the target session message.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
As an alternative, the second display unit 1204 includes:
the second display module is used for displaying a second character string and a target session message in the target information input box, wherein the second character string carries at least one account number character of the target user account number, and the second character string is used for indicating that the target user account number is forbidden to view the target session message.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
As an alternative, the second display module further includes:
and the second display sub-module is used for displaying a second character string, the target session message and second prompt information in the chat window, wherein the second prompt information is used for prompting the target session message to prohibit the target user account from viewing the target session message.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
As an alternative, it includes:
the first acquisition unit is used for acquiring target specified characters in a target message input box before displaying a target character string and a target session message to be interacted, wherein the target character string comprises the target specified characters;
and the second acquisition unit is used for acquiring target account number characters in a target message input box before displaying the target character string and the target session message to be interacted, wherein the target account number characters are account number characters of at least one target user account number.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
As an alternative, it includes:
a fourth display unit, configured to display a target account list when a target specified character is obtained in a target message input box before displaying a target character string and a target session message to be interacted, where account characters of at least three user accounts are displayed in the target account list;
and the fifth display unit is used for responding to the selected operation triggered on the target account list before displaying the target character string and the target session message to be interacted, and displaying the target account character in the target message input box.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
As an alternative, the first obtaining unit includes:
the third display module is used for displaying third prompt information under the condition that the first appointed sub-character is acquired in the target message input box, wherein the target appointed character comprises the first appointed sub-character, and the third prompt information is used for prompting the second appointed sub-character to be input in the target message input box so as to indicate the viewing authority of at least one account of at least three user accounts to the session message to be interacted, which is input by the first user account;
And the acquisition module is used for acquiring the second designated sub-character in the target message input box, wherein the target designated character comprises the second designated sub-character.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
As an alternative, the apparatus further includes:
the third acquisition unit is used for acquiring target additional information to be interacted under the condition that a third character string is displayed in the target information input box, wherein the third character string carries account number characters of at least one target user account number and is used for indicating the viewing authority of the target user account number on the target additional information;
and a sixth display unit for displaying the third character string and the target additional message in the chat window in response to a transmission operation performed on the third character string and the target additional message.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
As an alternative, the third display unit 1206 includes:
the sending module is used for responding to the sending operation executed on the target character string and the target session message and sending the target character string and the target session message to the target server, wherein the target server is used for analyzing the target character string and forwarding the target session message to a second client of the second user account when the character format of the target character string is in a target appointed format of the second user account, and at least one target user account comprises the second user account;
And the fourth display module is used for displaying the target character string and the target session message on the chat window.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
According to another aspect of the embodiment of the present invention, there is also provided another session message display apparatus for implementing the above-mentioned session message display method. As shown in fig. 13, the apparatus includes:
a fourth obtaining unit 1302, configured to obtain a target character string and a target session message to be interacted, where the target character string is sent by a first client of a first user account, the first user account is a user account in a target group, the target group includes at least three user accounts, the target character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used to indicate a viewing authority of the target user account on the target session message;
an parsing unit 1304, configured to parse the target character string to obtain a character format of the target character string;
and a forwarding unit 1306, configured to forward the target session message to a second client of the second user account when the character format of the target character string is the target specified format of the second user account, where at least one target user account includes the second user account.
Optionally, in this embodiment, the display device of the session message may be, but is not limited to, applied in a group chat scenario, and the method of adjusting the viewing authority of the group member to the session message by using the target character string directly implements interaction of the privacy session message in the group chat window, thereby improving the display efficiency of the session message.
Optionally, in this embodiment, the target group may be, but is not limited to, a group corresponding to the target group identifier, and in the process of displaying the target session message, the target group identifier of the target group may be, but is not limited to, acquired first, and then the target session message is displayed in the corresponding group chat window based on the target group identifier.
Optionally, in this embodiment, the target information input box may be, but not limited to, a first input box configured on a chat window of the target group, or may be, but not limited to, a second input box in the first client, where the second input box has an association with the chat window of the target group, and related information acquired in the second input box may be displayed in the chat window of the target group through the association.
Optionally, in this embodiment, the target character string carries account characters of at least one target user account of the at least three user accounts; in addition, the target character string can also be, but is not limited to being, provided with a target designated character for indicating the viewing authority of the target user account to the target session message.
Optionally, in this embodiment, the viewing authority of the target user account to the target session message may include, but is not limited to: allowing the target user account to view all/part of the target session message, or prohibiting the target user account from viewing all/part of the target session message, or allowing the target user account to view all/part of the target session message for a first predetermined period of time, or prohibiting the user account from viewing all/part of the target session message for a second predetermined period of time.
Optionally, in this embodiment, the types of the target strings may be multiple, for example, a first type of target string is used to indicate that the target user account is allowed to view all target session messages, a second type of target string is used to indicate that the target user account is prohibited from viewing all target session messages, a third type of target string is used to indicate that the target user account is allowed to view part of target session messages, a fourth type of target string is used to indicate that the target user account is prohibited from viewing part of target session messages, a fifth type of target string is used to indicate that the target user account is allowed to view target session messages in a first preset time period, a sixth type of target string is used to indicate that the target user account is prohibited from viewing target session messages in a second preset time period, and so on. And multiple types of target character strings can be flexibly matched for use, for example, a first type of target character string is used for selecting a user account 1, a user account 2, a user account 3 and a user account 4 in a target group, so that all target session messages are allowed to be checked, and a second type of target character string is used for selecting a user account 1 in the user account 1, the user account 2, the user account 3 and the user account 4, so that all target session messages are forbidden to be checked, and therefore, the finally presented checking authority comprises: user account 1, user account 2, and user account 4 in the target group allow viewing of all target session messages.
It should be noted that, in general, the chat window of the group provides a convenient chat platform for group members (user accounts), and the session messages generated in the chat platform are often disclosed to the group members, but in the group chat scene, there is inevitably an interaction requirement of the session messages with higher privacy, and in the face of the interaction requirement, it is generally necessary to separate from the existing group chat window, and then establish a non-group chat window to meet the interaction requirement; however, in this embodiment, the complex step of additionally establishing a non-group chat window is omitted, and the mode of adjusting the viewing authority of the group members to the session message by using the target character string directly realizes the interaction of the privacy session message in the group chat window, thereby improving the display efficiency of the session message.
Specific embodiments may refer to examples shown in the display device of the session message, which are not described herein.
According to the embodiment provided by the application, a target character string and a target session message to be interacted, which are sent by a first client of a first user account, are obtained, wherein the first user account is a user account in a target group, the target group comprises at least three user accounts, the target character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message; analyzing the target character string to obtain a character format of the target character string; and forwarding the target session message to a second client of the second user account under the condition that the character format of the target character string is the target appointed format of the second user account, wherein at least one target user account comprises the second user account, and indicating the viewing authority of the specific target user account in the target group to the session message through the target character string, so that the step of creating a chat window is omitted, and the aim of directly carrying out interaction of the session message with stronger privacy on the specific user account in the group chat scene is fulfilled, thereby realizing the technical effect of improving the display efficiency of the session message.
As an alternative, the forwarding unit 1306 includes:
the temporary storage module is used for temporarily storing the target session message to the target server under the condition that a communication channel between the second client and the target server is in a closed state;
and the forwarding module is used for forwarding the target session message to the second client of the second user account under the condition that a communication channel between the second client and the target server is in an open state.
Specific embodiments may refer to examples shown in the above-mentioned method for displaying session messages, which are not described herein.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above-described method of displaying a conversation message, the electronic device comprising a memory 1402 and a processor 1404, as shown in fig. 14, the memory 1402 having stored therein a computer program, the processor 1404 being arranged to execute the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, displaying a chat window of a target group where a first user account is located in a first client, wherein the target group comprises at least three user accounts;
s2, displaying a target character string and a target session message to be interacted in a target information input box of the first client, wherein the target character string carries account characters of at least one target user account in at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message;
and S3, in response to the sending operation performed on the target character string and the target session message, displaying the target character string and the target session message in a chat window.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 14 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 14 is not limited to the structure of the electronic device described above. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 14, or have a different configuration than shown in FIG. 14.
The memory 1402 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for displaying a session message in the embodiment of the present invention, and the processor 1404 executes the software programs and modules stored in the memory 1402 to perform various functional applications and data processing, that is, to implement the method for displaying a session message. Memory 1402 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1402 may further include memory located remotely from processor 1404, which may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1402 may be used to store, but not limited to, information such as a target group, a target string, and a target session message. As an example, as shown in fig. 14, the memory 1402 may include, but is not limited to, a first display unit 1202, a second display unit 1204, and a third display unit 1206 (or a fourth acquisition unit 1302, a parsing unit 1304, and a forwarding unit 1306 not shown in the figure) in a display device including the session message. In addition, other module units in the display device of the session message may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1406 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1406 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1406 is a Radio Frequency (RF) module that is used to communicate wirelessly with the internet.
In addition, the electronic device further includes: a display 1408 for displaying information such as the target group, the target character string, and the target session message; and a connection bus 1410 for connecting the respective module parts in the above-described electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to one aspect of the present application, a computer program product is provided, comprising a computer program/instructions containing program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. When executed by a central processing unit, performs the various functions provided by the embodiments of the present application.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
Alternatively, the computer system includes a central processing unit (Central Processing Unit, CPU) which can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) or a program loaded from a storage section into a random access Memory (Random Access Memory, RAM). In the random access memory, various programs and data required for the system operation are also stored. The CPU, the ROM and the RAM are connected to each other by bus. An Input/Output interface (i.e., I/O interface) is also connected to the bus.
The following components are connected to the input/output interface: an input section including a keyboard, a mouse, etc.; an output section including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and the like, and a speaker, and the like; a storage section including a hard disk or the like; and a communication section including a network interface card such as a local area network card, a modem, and the like. The communication section performs communication processing via a network such as the internet. The drive is also connected to the input/output interface as needed. Removable media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, and the like are mounted on the drive as needed so that a computer program read therefrom is mounted into the storage section as needed.
In particular, according to embodiments of the present application, the processes described in the various method flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. The computer program, when executed by a central processing unit, performs the various functions defined in the system of the present application.
According to an aspect of the present application, there is provided a computer-readable storage medium, from which a processor of a computer device reads the computer instructions, the processor executing the computer instructions, so that the computer device performs the above-described method of displaying a session message.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying a chat window of a target group where a first user account is located in a first client, wherein the target group comprises at least three user accounts;
s2, displaying a target character string and a target session message to be interacted in a target information input box of the first client, wherein the target character string carries account characters of at least one target user account in at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message;
and S3, in response to the sending operation performed on the target character string and the target session message, displaying the target character string and the target session message in a chat window.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (14)

1. A method for displaying a session message, comprising:
displaying a chat window of a target group where a first user account is located in a first client, wherein the target group comprises at least three user accounts;
Displaying a target character string and a target session message to be interacted in a target information input box of the first client, wherein the target character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account to the target session message;
and displaying the target character string and the target session message in the chat window in response to a sending operation performed on the target character string and the target session message.
2. The method of claim 1, wherein displaying the target string and the target session message to be interacted with in the target information input box of the first client comprises:
and displaying a first character string and the target session message in the target information input box, wherein the first character string carries account number characters of the at least one target user account number, and the first character string is used for indicating that the target user account number is allowed to view the target session message.
3. The method of claim 2, wherein displaying the target string and the target session message in the chat window further comprises:
And displaying the first character string, the target session message and first prompt information in the chat window, wherein the first prompt information is used for prompting the target session message to allow the target user account to view the target session message.
4. The method of claim 1, wherein displaying the target string and the target session message to be interacted with in the target information input box of the first client comprises:
and displaying a second character string and the target session message in the target information input box, wherein the second character string carries account number characters of the at least one target user account number, and the second character string is used for indicating that the target user account number is forbidden to view the target session message.
5. The method of claim 4, wherein displaying the target string and the target session message in the chat window further comprises:
and displaying the second character string, the target session message and second prompt information in the chat window, wherein the second prompt information is used for prompting the target session message to prohibit the target user account from viewing the target session message.
6. The method of claim 1, comprising, prior to said displaying the target string and the target session message to be interacted with:
acquiring a target specified character in the target message input box, wherein the target character string comprises the target specified character;
and acquiring target account number characters in the target message input box, wherein the target account number characters are account number characters of the at least one target user account number.
7. The method of claim 6, comprising, prior to said displaying the target string and the target session message to be interacted with:
displaying a target account list under the condition that the target designated characters are acquired from the target message input box, wherein account characters of the at least three user accounts are displayed in the target account list;
and responding to the selected operation triggered on the target account list, and displaying the target account character in the target message input box.
8. The method of claim 6, wherein the obtaining the target specified character in the target message input box comprises:
displaying third prompting information under the condition that a first designated sub-character is acquired in the target message input box, wherein the target designated character comprises the first designated sub-character, and the third prompting information is used for prompting the second designated sub-character to be input in the target message input box so as to indicate the viewing authority of at least one account of the at least three user accounts on the session message to be interacted, which is input by the first user account;
And acquiring the second designated sub-character in the target message input box, wherein the target designated character comprises the second designated sub-character.
9. The method according to claim 1, wherein the method further comprises:
acquiring target additional information to be interacted under the condition that a third character string is displayed in the target information input box, wherein the third character string carries account number characters of the at least one target user account number and is used for indicating the viewing authority of the target user account number on the target additional information;
and displaying the third character string and the target additional message in the chat window in response to a transmission operation performed on the third character string and the target additional message.
10. The method according to any one of claims 1 to 9, wherein 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 comprises:
transmitting the target character string and the target session message to a target server in response to a transmitting operation performed on the target character string and the target session message, wherein the target server is used for analyzing the target character string and forwarding the target session message to a second client of a second user account when the character format of the target character string is in a target specified format of the second user account, and the at least one target user account comprises the second user account;
And displaying the target character string and the target session message on the chat window.
11. A method for displaying a session message, comprising:
acquiring a target character string and a target session message to be interacted, wherein the target character string and the target session message are sent by a first client of a first user account, the first user account is a user account in a target group, the target group comprises at least three user accounts, the target character string carries account characters of at least one target user account in the at least three user accounts, and the target character string is used for indicating the viewing authority of the target user account on the target session message;
analyzing the target character string to obtain a character format of the target character string;
and forwarding the target session message to a second client of a second user account under the condition that the character format of the target character string is the target specified format of the second user account, wherein the at least one target user account comprises the second user account.
12. The method of claim 10, wherein the forwarding the target session message to the second client of the second user account comprises:
Under the condition that a communication channel between the second client and a target server is in a closed state, temporarily storing the target session message to the target server;
and forwarding the target session message to a second client of the second user account under the condition that a communication channel between the second client and the target server is in an open state.
13. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 12.
14. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 12 by means of the computer program.
CN202111222139.7A 2021-10-20 2021-10-20 Session message display method, storage medium and electronic device Pending CN116015992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111222139.7A CN116015992A (en) 2021-10-20 2021-10-20 Session message display method, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111222139.7A CN116015992A (en) 2021-10-20 2021-10-20 Session message display method, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116015992A true CN116015992A (en) 2023-04-25

Family

ID=86023505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111222139.7A Pending CN116015992A (en) 2021-10-20 2021-10-20 Session message display method, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116015992A (en)

Similar Documents

Publication Publication Date Title
CN109587044B (en) Group creation and message interaction method and device
US11558437B2 (en) Communication system and method of using the same
US9451014B2 (en) Across-application network communication method and device
US20160261648A1 (en) Communication system and method of using the same
US8775561B2 (en) Expanding a social network by the action of a single user
US20090254616A1 (en) Simultaneous Instant Messaging In Single Window
WO2015162072A2 (en) Instant messaging systems and methods
CN102138156A (en) Persisting a group in an instant messaging application
CN106572002B (en) Intelligent session method, intelligent session method for customizing and relevant device
CN111970188B (en) Capability forwarding method and device
US20110307565A1 (en) Group messaging integration system, method and apparatus
CN113760145A (en) Interaction method, interaction device, electronic equipment and storage medium
CN107786415B (en) Service processing method and related equipment and system
CN112838976A (en) Message processing method and device
CN105704001A (en) WeChat server message distribution method and WeChat server message distribution system
CN111314201B (en) Application data processing method, system and related equipment
CN111147348B (en) Instant message sending method, device and readable medium
CN114005440A (en) Question-answering method, system, electronic equipment and storage medium based on voice interaction
CN106796523B (en) Intelligent control method, device, electronic equipment and system
CN107920019A (en) Pay close attention to method and device, computer equipment and the storage medium of good friend
WO2019023974A1 (en) Communication control apparatus and method for multi-topic dialogue, and computer processing device
US11012382B2 (en) State display information transmission system using chatbot
CN116015992A (en) Session message display method, storage medium and electronic device
CN110224924A (en) State updating method and device, storage medium and electronic device
CN114417201A (en) Message processing method and device, computer equipment and storage medium

Legal Events

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