Chat session creation method and device, equipment and storage medium
By sending a string containing specified symbols and a group chat name in an instant messaging program, temporary group chats can be created automatically, solving the problems of high creation cost and low activity in existing group chat technologies, and achieving convenient group chat creation and a neat message list.
Patent Information
- Application Number
- CN202410593837.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2025-11-11
AI Technical Summary
Creating a group chat in existing instant messaging programs requires the creator's account to perform multiple invitation operations, resulting in high costs, decreased group chat activity, and a loss of message list cleanliness.
By sending a string containing a first specified symbol and the group chat name in the chat interface, the client automatically creates a temporary group chat. Other users can join by clicking the string, and the group chat is automatically disbanded without leaving a trace.
It simplifies the group chat creation process, reduces the number of invitation steps, improves the convenience and activity of group chats, and keeps the message list tidy.
Smart Images

Figure CN120935133A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of instant messaging, and in particular to a method, apparatus, device, and storage medium for creating chat sessions. Background Technology
[0002] Instant messaging applications offer group chat functionality, allowing multiple user accounts to chat together. Optionally, users can create or join group chats based on preset events, such as splitting the bill after a meal or an introduction of new friends by a middleman.
[0003] In related technologies, the creator account creates a group chat in an instant messaging program, selects other user accounts from the contact list, and sends invitations to these user accounts to join the group chat. Once invited, the user accounts can join the group chat through the corresponding actions.
[0004] If a large number of user accounts join a group chat, the creator account needs to perform multiple invitations to other user accounts, resulting in a high cost for creating group chats. Therefore, simplifying the process of creating group chats is a problem that needs to be solved. Summary of the Invention
[0005] This application provides a method, apparatus, device, and storage medium for creating chat sessions, and the technical solution is as follows.
[0006] According to one aspect of this application, a method for creating a chat session is provided, the method being performed by a first client supporting instant messaging, the first client being logged into a first account, the method comprising:
[0007] The chat interface displays the current chat session;
[0008] Receive a first message sent by the first account in the current chat session. The first message includes a first string, which includes a first designated symbol and a first group chat name. The first designated symbol is a predetermined character used to identify the group chat name located in the string.
[0009] In response to a trigger operation on the first string, the chat interface of the first chat session created based on the first string is displayed.
[0010] According to one aspect of this application, a method for creating a chat session is provided, the method being executed by a server, the method comprising:
[0011] Get the first message sent by the first client in the current chat session. The first client is logged in with a first account.
[0012] If a first string is detected in the first message, a first link bound to the first string is determined, and the first link is returned to the first client. The first link is a link for accessing a first chat session created based on the first string.
[0013] Upon receiving the first access request sent by the first client, the system will send the session display content of the first chat session back to the first client.
[0014] The first access request is a request to access the first link triggered by the first string, and the session display content is used for the first client to display the chat interface of the first chat session.
[0015] In some embodiments, the first chat session is a temporary chat session, and the method further includes:
[0016] The temporary chat session will be dissolved if the conditions for automatic dissolution are met.
[0017] The automatic disbandment conditions include at least one of the following:
[0018] Received the disbandment operation from the group owner in the first chat session;
[0019] The activity level of the first chat session is less than the first threshold;
[0020] The logout operation of the last user account in the first chat session was received;
[0021] The time elapsed after receiving the logout operation from the last user account in the first chat session reaches the first duration.
[0022] In some embodiments, the first chat session includes multiple member accounts, and the method further includes: determining the group owner of the first chat session based on the degree of contribution of the multiple member accounts to the first chat session, wherein the degree of contribution includes at least one of the following: the speaking frequency of the member account, the social activity of the member account, and the quality of information provided by the member account.
[0023] According to one aspect of this application, an apparatus is provided, the apparatus comprising:
[0024] The display module is used to display the chat interface of the current chat session;
[0025] The receiving module is configured to receive a first message sent by the first account in the current chat session. The first message includes a first string, which includes a first designated symbol and a first group chat name. The first designated symbol is a predetermined character used to identify the group chat name located in the string.
[0026] The display module is used to display the chat interface of the first chat session created based on the first string in response to a trigger operation on the first string.
[0027] According to one aspect of this application, an apparatus is provided, the apparatus comprising:
[0028] The acquisition module is used to acquire the first message sent by the first client in the current chat session. The first client is logged in with a first account.
[0029] The identification module is used to identify a first link bound to the first string when the first string is detected in the first message, and to return the first link to the first client. The first link is a link for accessing a first chat session created based on the first string.
[0030] The feedback module is used to provide feedback on the session display content of the first chat session to the first client upon receiving the first access request sent by the first client.
[0031] The first access request is a request to access the first link triggered by the first string, and the session display content is used for the first client to display the chat interface of the first chat session.
[0032] According to another aspect of this application, a computer device is provided, comprising: a processor and a memory, wherein the memory stores at least one computer program, the at least one computer program being loaded and executed by the processor to implement the chat session creation method as described above.
[0033] According to another aspect of this application, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, the at least one computer program being loaded and executed by a processor to implement the chat session creation method as described above.
[0034] According to another aspect of this application, a computer program product is provided, comprising a computer program stored in a computer-readable storage medium; the computer program is read from and executed by a processor of a computer device from the computer-readable storage medium, causing the computer device to perform the chat session creation method as described above.
[0035] The beneficial effects of the technical solution provided in this application include at least the following:
[0036] This application provides a method for creating a chat session, displaying the chat interface of the current chat session; receiving a first message sent by a first account in the current chat session, the first message including a first string; and displaying the chat interface of the first chat session in response to a trigger operation on the first string. In related technologies, the creation of a chat session requires the first account to perform an operation to create the chat session and invite at least one user account before the chat session can be completed. In this application embodiment, the first account only needs to send a text message containing the first string to trigger the client to automatically create a chat session, omitting cumbersome creation steps and simplifying the method of creating a chat session. Furthermore, the first string is a clickable text message; other user accounts can enter the corresponding chat session by clicking the first string, omitting the step of the first account sending invitations to other user accounts to join the chat session one by one, and simplifying the method of joining a chat session. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is an architectural diagram of a computer system provided in an exemplary embodiment of this application;
[0039] Figure 2 This is a schematic diagram illustrating the creation of a chat session provided in an exemplary embodiment of this application;
[0040] Figure 3 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0041] Figure 4 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0042] Figure 5 This is a schematic diagram illustrating the creation of a chat session provided in an exemplary embodiment of this application;
[0043] Figure 6 This is a schematic diagram illustrating the creation of a chat session provided in an exemplary embodiment of this application;
[0044] Figure 7This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0045] Figure 8 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0046] Figure 9 This is a schematic diagram illustrating the creation of a chat session provided in an exemplary embodiment of this application;
[0047] Figure 10 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0048] Figure 11 This is a schematic diagram illustrating the creation of a chat session provided in an exemplary embodiment of this application;
[0049] Figure 12 This is a schematic diagram illustrating the creation of a chat session provided in an exemplary embodiment of this application;
[0050] Figure 13 This is a schematic diagram illustrating the creation of a chat session provided in an exemplary embodiment of this application;
[0051] Figure 14 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0052] Figure 15 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0053] Figure 16 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0054] Figure 17 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0055] Figure 18 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0056] Figure 19 This is a flowchart illustrating the creation of a chat session according to an exemplary embodiment of this application;
[0057] Figure 20 This is a structural block diagram of a chat session creation apparatus provided in an exemplary embodiment of this application;
[0058] Figure 21 This is a structural block diagram of a chat session creation apparatus provided in an exemplary embodiment of this application;
[0059] Figure 22This is a schematic diagram of the structure of a computer device provided in an exemplary embodiment of this application. Detailed Implementation
[0060] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0061] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0062] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0063] It should be understood that although the terms first, second, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, a first parameter may also be referred to as a second parameter without departing from the scope of this disclosure, and similarly, a second parameter may also be referred to as a first parameter. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0064] It should be noted that the user information (including but not limited to user feedback, browsing information, and operation information) and data (including but not limited to data used for analysis, training, and recommendation) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the settings and operation information involved in this application were obtained with full authorization.
[0065] Before introducing the technical solutions of this application, some terms involved in this application will be explained. The following related explanations are optional solutions and can be arbitrarily combined with the technical solutions of the embodiments of this application, all of which fall within the protection scope of the embodiments of this application. The embodiments of this application include at least some of the following contents.
[0066] The first string: The first string typically refers to the text message sent by the user that contains a first specified symbol and a first group chat name. For example, the first string could be "#Good hot pot restaurants nearby", "#Split the bill after a meal", or "*Traffic congestion on Zhongshan Road*". In different embodiments, the first string can be called tag information, and the first group chat name can be called keyword information.
[0067] First chat session: The first chat session is the chat session corresponding to the first group chat name in the first string. Optionally, the first chat session can be a temporary chat session, or an instant group chat.
[0068] Fuzzy matching: Fuzzy matching is a matching method used to find similar but not identical matches during the matching process. Fuzzy matching is commonly used in various applications, including search engines, text editors, and database queries, to improve the flexibility and error tolerance for users searching for information.
[0069] In fuzzy matching, the server processes the input information and uses a fuzzy matching algorithm to find close matches. For example, suppose there is a string "apple". If fuzzy matching is used, the string "apples", which has a certain similarity to "apple", can also be matched. In this embodiment, fuzzy matching is also called approximate matching.
[0070] Message list: A message list typically refers to a series of messages or communication records displayed in an application, website, or email client, such as text messages, emails, or other forms of messaging. Optionally, message lists are generally arranged in chronological order, with the most recent messages displayed at the top of the list, allowing users to scroll down to view previously received messages. Typically, message lists also display the sender's avatar or nickname so that users can clearly identify different message sources.
[0071] AIO (All in One, Common Chat Window Component): Refers to a common chat window component. Users can participate in various types of conversations, such as with friends, groups, and public accounts. To provide users with a unified interactive experience, the software provides a shared chat window component for different conversations. User input, clicks, and other behavioral habits within this chat window component can be considered consistent. AIO allows users to perform various chat operations on a unified interface, such as sending messages, viewing messages, and managing chat partners. The term "temporary AIO" in this application also refers to a temporary chat window component.
[0072] Figure 1 An architectural diagram of a computer system provided in an exemplary embodiment of this application is given. The computer system 100 includes: a first terminal 110, a server 120, and a second terminal 130.
[0073] The first terminal 110 has a first client 111 that supports instant messaging installed and running. The first client 111 can be an application or a web client with instant messaging functionality. When the first terminal 110 runs the first client 111, the user interface of the first client 111 is displayed on the screen of the first terminal 110. This application can be any one of an instant messaging program, a microblogging program, a voice call program, a conferencing program, an online community program, a payment program, a shopping program, a dating program, or a marriage / relationship program. In this embodiment, the application is described as an instant messaging program. The first terminal 110 is the terminal used by the first user 112, and the first user account of the first user 112 is logged into the first client 111. This embodiment of the application uses an instant messaging program as an example for illustration.
[0074] The second terminal 130 has a second client 131 installed and running that supports instant messaging. The second client 131 can be an application or a web client with instant messaging functionality. When the second terminal 130 runs the second client 131, the user interface of the second client 131 is displayed on the screen of the second terminal 130. This application can be any one of the following: instant messaging program, microblogging program, voice call program, conferencing program, online community program, payment program, shopping program, dating program, or marriage / relationship program. In this embodiment, an instant messaging program is used as an example. The second terminal 130 is the terminal used by the second user 132, and the second user account of the second user 132 is logged into the second client 131.
[0075] Optionally, the first user account and the second user account can be friends in the communication list or have temporary communication permissions.
[0076] Optionally, the applications installed on the first terminal 110 and the second terminal 130 are the same, or the applications installed on the two terminals are the same type of application on different operating system platforms (Android or iOS). The first terminal 110 can refer to one of multiple terminals, and the second terminal 130 can refer to another of multiple terminals; this embodiment only uses the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 may be the same or different, and these device types include at least one of the following: smartphones, tablets, e-book readers, MP3 players, MP4 players, laptops, and desktop computers.
[0077] Figure 1Only two terminals are shown in the diagram, but in different embodiments, multiple other terminals 140 can access the server 120. Optionally, one or more terminals 140 may also be terminals corresponding to developers, on which a development and editing platform supporting instant messaging clients is installed. Developers can edit and update the client on the terminal 140 and transmit the updated application installation package to the server 120 via wired or wireless network. The first terminal 110 and the second terminal 130 can download the application installation package from the server 120 to update the client.
[0078] The first terminal 110, the second terminal 130, and other terminals 140 are connected to the server 120 via a wireless network or a wired network.
[0079] Server 120 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 120 is used to provide backend services for clients supporting three-dimensional instant messaging. Optionally, server 120 undertakes the main computing work, and the terminal undertakes the secondary computing work; or, server 120 undertakes the secondary computing work, and the terminal undertakes the main computing work; or, server 120 and the terminal use a distributed computing architecture for collaborative computing.
[0080] In an illustrative example, server 120 includes processor 122, user account database 123, instant messaging service module 124, and user-facing input / output interface (I / O interface) 125. Processor 122 loads instructions stored in server 120 and processes data in user account database 123 and instant messaging service module 124. User account database 123 stores user account data used by first terminal 110, second terminal 130, and other terminals 140, such as user account avatars, nicknames, and group memberships. Instant messaging service module 124 provides multiple chat rooms (two-person or multi-person chat) for users to chat, send emoticons, send red envelopes, etc., in real-time. User-facing I / O interface 125 establishes communication and exchanges data with first terminal 110 and / or second terminal 130 via wireless or wired network.
[0081] Based on the above description of the implementation environment, the method for creating a chat session provided in this application embodiment will be described, taking the execution subject of the method as... Figure 1 The example shown is a client running on a terminal. This terminal runs a client application that supports instant messaging.
[0082] For example, Figure 2A schematic diagram of a chat session creation method provided in an exemplary embodiment of this application is shown.
[0083] In related technologies, when a group chat is required based on a preset event, the creator account creates a group chat in an instant messaging program, selects other user accounts from the contact list, and sends invitations to these user accounts to join the group chat. Invited user accounts can join the group chat through corresponding operations after receiving the invitation. However, when there are many user accounts joining the group chat, this method of creating a group chat and inviting other user accounts becomes costly. Furthermore, after the preset event is completed, the activity level of the group chat decreases, and the group chat occupies space in the user accounts' message lists, affecting the cleanliness of the message lists.
[0084] To address the aforementioned issues, this application provides a method for creating a chat session. Users can quickly create an instant group chat by sending a tag containing "first specified symbol + keyword information" in the current chat interface. Other users can join the instant group chat by clicking the tag information in the chat interface. This instant group chat is temporary and can be displayed as a floating window on the user's chat interface. After completing a preset event, users can quickly exit the instant group chat by closing the floating window. The server will automatically delete the instant group chat and the user's local messages without leaving any trace in the user's message list.
[0085] Reference Figure 2 The method for creating an instant group chat according to embodiments of this application is briefly described below:
[0086] • Display the first chat interface 10 containing tag information 11;
[0087] The first chat interface 10 is the current chat interface containing tag information 11. Tag information 11 includes a first designated symbol and keyword information. Optionally, tag information 11 is used to trigger the creation or joining of an instant group chat based on a preset event. The preset event can be a preset event, purpose, or topic, and can serve as the main factor triggering the instant group chat. For example, preset events could be splitting the bill after a meal, an introduction of new friends by a middleman, or a sudden notification message based on location. The first symbol refers to the character entered by the initiating user when initiating the instant group chat, used to mark the first tag information. Keyword information consists of words or phrases related to a specific purpose or topic within the preset event.
[0088] For example, such as Figure 2As shown in Figure (a), on the first chat interface 10, user A sends a text message with the tag information 11 "#ShenzhenHotpot", where "#" is the first designated symbol and "ShenzhenHotpotAA" is the keyword information. Optionally, the visual salience of the tag information 11 is higher than that of ordinary information. For example, if user A initiates the tag information 11 "#ShenzhenHotpot" and user B sends the ordinary information "Support", the font of "#ShenzhenHotpot" is bolded compared to "Support".
[0089] In one possible implementation, tag information 11 is tag information created by a user account. Optionally, a user sends tag information 11 containing a first specified symbol and keyword information. In response to receiving tag information 11 sent by a user account, the client creates an instant group chat corresponding to tag information 11. Optionally, tag information 11 can also be tag information forwarded by other user accounts, and a user account can enter the corresponding instant group chat by clicking on tag information 11 forwarded by other user accounts.
[0090] • In response to the trigger operation on tag information 11, the chat interface 20 of the instant group chat corresponding to tag information 11 is displayed;
[0091] Among them, instant group chat is a group chat based on preset events created through tag information 11.
[0092] For example, such as Figure 2 As shown in Figure (b), when user B clicks... Figure 2 After tag information 11 "#ShenzhenHotpot" in Figure (a), it will show that user B has joined the instant chat corresponding to "#ShenzhenHotpot".
[0093] In some embodiments, when a user clicks on tag information 11 in the chat interface, they can directly enter the instant group chat corresponding to tag information 11. Optionally, when a user enters tag information 11 in the chat interface, if no instant group chat corresponding to tag information 11 is found, a pop-up window will appear in the user's chat interface to perform fuzzy matching. The server will perform fuzzy matching based on tag information 11 to obtain approximate instant group chats, and the user can choose whether to join the fuzzy-matched approximate instant group chat.
[0094] In some embodiments, the instant messaging client includes a symbol trigger for recognizing a first specified symbol in the tag information 11. When the symbol trigger detects the first specified symbol in the tag information 11, it then sends the tag information 11 to the server.
[0095] Optionally, after the server finds that the instant group chat corresponding to tag information 11 has been created, it returns a hyperlink to the created instant group chat to the client. The client can respond to the user's click on tag information 11 by sending an access request to the server, and the server returns the chat interface of the instant group chat to the client based on the access request. Optionally, after the server finds that the instant group chat corresponding to tag information 11 has not yet been created, it will perform fuzzy matching on the received tag information 11 to find approximate keyword information related to the keyword information in tag information 11. The user can select one of the approximate keyword information, and the server will return the approximate instant group chat corresponding to the approximate keyword information to the client based on the user's selection.
[0096] For example, tag information 11 is "#Nearby delicious hot pot". The symbol trigger identifies the first specified symbol "#" in "#Nearby delicious hot pot" and sends "#Nearby delicious hot pot" to the server. The server performs fuzzy matching on "#Nearby hot pot", which may match near-real-time group chats such as "#Nearby Chongqing hot pot", "#Nearby nine-square grid hot pot", and "#Nearby old Beijing hot pot". The server returns at least one near-real-time group chat to the client. The user can select the near-real-time group chat "#Nearby nine-square grid hot pot". The client displays the near-real-time group chat corresponding to "#Nearby nine-square grid hot pot" based on the user's selection.
[0097] • In response to the triggering operation of the back button 21 on the chat interface 20 for instant group chat, the chat session list interface 30 is displayed, and the instant group chat is displayed in a floating window 31 in a local area of the chat session list interface 30.
[0098] In some embodiments, by clicking the back button 21 on the chat interface 20 of the instant group chat, the chat session list interface 30 is displayed, and the instant group chat is displayed as a floating window 31 overlaid on a local area of the chat session list interface 30.
[0099] For example, such as Figure 2 As shown in Figure (c), when user B clicks... Figure 2 When the back button 21 is pressed in Figure (b), the instant group chat will float on the chat session list interface 30. At the same time, the chat session list interface also includes the user's chat session list. User B can interact with other chat windows in the chat session list without leaving the instant group chat.
[0100] Optionally, users can also quickly return to the instant group chat via the floating window 31.
[0101] • In response to the triggering operation of the close button 32 on the floating window 31, control the user account to exit the instant group chat;
[0102] In some embodiments, a close button 32 is added to the floating window 31. Optionally, when a user triggers the close button 32, the user will exit the instant group chat, and the user's local messages in the instant group chat will not be saved.
[0103] • In response to a trigger action on the area of the floating window 31 other than the close button, the user account is displayed and returned to the instant group chat.
[0104] Optionally, when a user triggers an area on the floating window 31 other than the close button 32, the user will return to the instant group chat.
[0105] Figure 3 This is a flowchart of a method for creating a chat session provided in an exemplary embodiment of this application. This embodiment uses this method... Figure 1 The example shown illustrates the execution of a first client that supports instant messaging. This first client is logged into with a first account. The method includes the following steps:
[0106] Step 210: Display the chat interface of the current chat session;
[0107] Optionally, an instant messaging program is installed in the first client, which provides instant messaging functionality. The first account is the user account logged into the first client. Optionally, the first account can also be an account controlled by Artificial Intelligence (AI), a robot, or a chat assistant; this application does not limit this.
[0108] This application uses the example of a user account as the first account to illustrate the embodiments.
[0109] In some embodiments, the current chat session is either a first type or a second type of chat session. A chat session created based on a string containing specified symbols is a second type of chat session. Optionally, a first type of chat session can be a long-term chat session that needs to be manually dissolved; a first type of chat session can be a temporary chat session that can be automatically dissolved.
[0110] Optionally, the current chat session can be a two-person chat or a group chat. The chat interface of the current chat session displays a message list sorted chronologically. The chat interface of the current chat session displays the avatar of the first account and the message content. Optionally, the current chat session also displays the first account's nickname, group nickname, or custom nickname. The nickname is a name given to the first account by other accounts, the group nickname is the nickname the first account defines for itself in a group, and the custom nickname is the nickname the first account defines for itself in the client.
[0111] Taking a group chat as an example, this group chat includes at least two accounts, namely, a first account, a second account, and other accounts. It should be noted that in the following embodiments, sending a message from the first user to the second user can be understood as the first user sending a message through the first account to the second account controlled by the second user, or the first user sending a message through the first account to all other accounts in the chat session besides the first account.
[0112] Step 220: Receive the first message sent by the first account in the current chat session. The first message includes a first string.
[0113] The first message is the message sent by the first account in the current chat session. The content of the first message includes text, and may also include content other than text, such as emoticons, images, videos, audio, documents, etc. Optionally, the first message includes a first string. The first string includes a first designated symbol and a first group chat name. The first designated symbol is a predefined character used to identify the group chat name located in the string.
[0114] In some embodiments, a first designated symbol is used to identify a predetermined character in the first group chat name located in the first string. The first chat session is the chat session corresponding to the first string. Optionally, the first chat session can be an instant group chat, that is, the first chat session is a temporary chat session; or, the first chat session is a non-temporary chat session, which is not limited in this application. The embodiments of this application are mainly described using the example of the first chat session being a temporary chat session.
[0115] Optionally, the first account sends a first message containing a first string based on a preset event. Other accounts can join the first chat session by clicking on this first string. The preset event is a possible factor that triggers the first chat session. Optionally, the preset event can be any type of event or topic, such as news events, weather forecasts, entertainment topics, sports events, etc. For example, the preset event can be a common situation in various social scenarios, such as splitting the bill after a meal, an introduction of new friends by a middleman, or a sudden notification message based on location. For example, the preset event can also be various topics, such as activity arrangements after a friend's gathering, discussions and exchanges in a professional field, or sharing and exchanging scenery.
[0116] In some embodiments, the first designated symbol is a predetermined character used to identify the name of the first group chat. Examples include "#", "&", "¥", "*", "@", "~", "%", "^", etc. (This is merely an illustrative example; in practice, any symbol that achieves a similar effect can be used as the first designated symbol, and this application does not limit this). The first group chat name is the group chat name of the first chat session. Optionally, the first group chat name includes keyword information, which is a name related to the purpose or topic of a preset event, used to identify the theme of the first chat session. For example, when the first string is "#Gathering AA Split", "#" is the first designated symbol, and "Gathering AA Split" is the first group chat name (or keyword information); when the first string is "*Weekend Good Places", "*" is the first designated symbol, and "Weekend Good Places" is the first group chat name; when the first string is "&Cherry Blossom Festival", "&" is the first designated symbol, and "Cherry Blossom Festival" is the first group chat name.
[0117] In some embodiments, the first client has a built-in symbol trigger for detecting a first specified symbol in a first string. Optionally, when the first account sends a first message containing a first string, the symbol trigger automatically detects whether the first specified symbol in the first string satisfies a preset rule. Optionally, a symbol library can be written by developers using a programming language. The symbol trigger detects whether the first specified symbol in the first string belongs to a predetermined character in the symbol library. When the first specified symbol belongs to any character in the symbol library, it is considered that the first specified symbol satisfies the preset rule. In one possible implementation, the server has a built-in symbol trigger for detecting the first specified symbol in a first string. After the server obtains the first message sent by the first account in the first client, it performs an inspection on the first message. If the first string is detected in the first message, the server determines the first link bound to the first string and returns the first link to the first client. This application embodiment mainly uses the example of the first client setting a symbol trigger for illustration.
[0118] In some embodiments, the first client receives the first message sent by the first account in the current chat session. A symbol trigger identifies the first specified symbol in the first string and displays the first string as triggerable. The first client sends a request to the server to create the first chat session. The server queries the first link bound to the first string and returns the first link to the first client. The first link is used to access the first chat session created based on the first string. Optionally, the server returns the first link to the first client. After receiving the first link, the first client, in response to the first account's triggering operation on the first string, sends a first access request to the server. Based on the received first access request, the server returns the session display content of the first chat session to the first client, i.e., the chat interface of the first chat session.
[0119] In some embodiments, the first string is a message sent by the first account in the current chat session. Optionally, the visual salience of the first string is higher than that of ordinary information. That is, the visibility and attractiveness of the first string on the chat interface are higher than that of ordinary information, and the first string is more likely to attract the user's attention. Optionally, the higher visual salience of the first string than ordinary information can be manifested in at least one of the following aspects (taking "#party AA split" as the first string and "how much did it cost per person" as the ordinary message as an example):
[0120] • The first string can be bolded. For example, in the first chat session, if account A sends the first string "#partyAAsplits" and account B sends a regular message "how much did it cost per person", then "#partyAAsplits" can be bolded compared to "how much did it cost per person", making it more prominent than the regular message.
[0121] The first string can be highlighted. Optionally, a different color or background color can be used to highlight the first string. For example, in the first chat session, the text "#PartyAASplitTheCost" can be highlighted in a more prominent color than "How much does it cost per person", or the bubble containing "#PartyAASplitTheCost" can be highlighted to make it more noticeable than ordinary information.
[0122] • The font size of the first string can be larger than that of the regular message. For example, in the first chat session, the font size of "#partyAAsplits" can be enlarged compared to "how much does it cost per person", making it more prominent than the regular message.
[0123] • The first string can be displayed in a more prominent position. Optionally, if the first message contains the first string, it can be automatically displayed in the center or at the top of the screen. For example, in the first chat session, "#partyAAsplits" can be automatically moved to the top of the screen or to a visually prominent area in the upper middle of the interface.
[0124] It should be noted that the above are merely illustrative examples. The display method of the first string can be any one of the above, or a free combination of at least two display methods. This application does not limit this.
[0125] Step 230: In response to the triggering operation for the first string, display the chat interface of the first chat session created based on the first string.
[0126] In some embodiments, in response to a triggering operation on a first string, a chat interface for a first chat session created based on the first string is displayed. Optionally, the triggering operation on the first string includes, but is not limited to: a click operation, a long press operation, a swipe operation, a touch operation, a button operation, a gesture operation, and a free combination of at least two of the above operations.
[0127] Optionally, the first chat session can be a two-person chat or a group chat. The chat interface of the first chat session displays message records sorted chronologically. Taking a group chat as an example, the group chat includes at least two accounts, and each message in the message record displays the avatars of at least two accounts, as well as the message content. Optionally, each message also displays the nicknames, group nicknames, or custom nicknames of at least two accounts. The nickname is a name given to the current account by other accounts, the group nickname is the nickname defined by the current account in the group, and the custom nickname is the nickname defined by the current account in the client.
[0128] In some embodiments, when a first account triggers a first string, the first client responds to the first account's triggering operation on the first string by displaying a chat interface indicating that the first account has joined the first chat session. Optionally, when a second account triggers a first string, the second client responds to the second account's triggering operation on the first string by displaying a chat interface indicating that the second account has joined the first chat session.
[0129] In summary, the method provided in this embodiment displays the chat interface of the current chat session; receives a first message sent by a first account in the current chat session, the first message including a first string; and displays the chat interface of the first chat session in response to a trigger operation on the first string. By receiving a first string containing a first specified symbol and a first group chat name, the first client is triggered to automatically create a first chat session. This automatic chat session creation method eliminates the need for cumbersome invitation steps, simplifying the process of creating chat sessions.
[0130] In some embodiments, the first account sends a first message including a first string in the current chat session. Optionally, the first chat session corresponding to the first string has not yet been created, or the first chat session corresponding to the first string has already been created.
[0131] For the first chat session that has not yet been created:
[0132] Figure 4 This is a flowchart of a chat session creation method provided in an exemplary embodiment of this application. Step 230 above can be replaced by steps 231 and 232:
[0133] Step 231: In response to the trigger operation for the first string and the fact that the first chat session corresponding to the first string has not yet been created, create the first chat session based on the first string;
[0134] In some embodiments, in response to a triggering operation on the first string, the triggering operation on the first string may optionally include, but is not limited to: a click operation, a long press operation, a swipe operation, a touch operation, a button operation, a gesture operation, and a free combination of at least two of the above operations.
[0135] In some embodiments, the symbol trigger in the first client identifies the first specified symbol in the first string, indicating that the first string is triggerable. When the first account triggers the first string, the first client responds to the first account's triggering operation for the first string by sending a request to the server to create the first chat session corresponding to the first string. The server queries the first link bound to the first string to check if the first chat session corresponding to the first string exists. If the first link exists, the server directly returns the first link to the first client; if the first link does not exist, the server creates the first link corresponding to the first string and returns the created first link to the first client. The first link is a link associated with the first string, used to access the first chat session created based on the first string. The first account can access and participate in the first chat session by clicking the first link.
[0136] Optionally, if the server finds a first link bound to the first string, it means that the first chat session corresponding to the first string has been created, and the server returns the first link of the created first chat session to the first client; or, if the server cannot find a first link bound to the first string, it means that the first chat session corresponding to the first string has not been created, and the server generates a first link for accessing the first chat session, creates a binding relationship between the first chat session and the first link, and returns the first link to the first client.
[0137] Optionally, if the first chat session does not exist, i.e., if the first chat session has not yet been created, the first client will create the first chat session and upload the data for creating the first chat session to the server, and the server will store the data of the first chat session.
[0138] In some embodiments, the first chat session is a temporary chat session. The first client includes a temporary chat window component. Optionally, the first client creates the first chat session based on the temporary chat window component. The first chat session is a session type triggered by a first string. Optionally, a symbol trigger in the first client detects the first string output by the first account to identify a first specified symbol in the first string. When the first client identifies a first string containing the first specified symbol, the temporary chat window component in the first client creates the first chat session corresponding to the first string even if the first chat session has not yet been created. Optionally, the first chat session created based on the temporary chat window component supports functions in one-to-one sessions (i.e., two-person chat) and multi-person sessions (i.e., group chat). For example, the functions supported by the first chat session include, but are not limited to: message sending and receiving, file transfer, message forwarding, message search and retrieval functions, session management, location sharing, voice and video calls, etc.
[0139] Step 231 above can be replaced by steps 231a and 231b:
[0140] Step 231a: In response to a trigger operation on the first string and the first chat session corresponding to the first string has not yet been created, display a selection list of at least one candidate chat session, wherein the similarity between the group chat name of the candidate chat session and the name of the first group chat meets the first condition.
[0141] The first string includes a first designated symbol and a first group chat name. The first designated symbol is a predefined character used to identify the first chat name. The first group chat name is a name or phrase related to the purpose or topic of a preset event, which is related to the first user's intent in creating the first chat session.
[0142] Candidate chat sessions are those highly similar to the first chat session. Optionally, after the first user triggers the first string through the first account, the server performs fuzzy matching on the first string and matches a group of chat sessions related to the first user's intent based on the first group chat name of the first string. The matched chat sessions are the approximate matching results. Optionally, the approximate matching results are filtered, and those that meet the first similarity condition are retained as candidate chat sessions.
[0143] For example, if the first string is "#nearby hot pot", in response to the trigger operation for the first string, the server performs a fuzzy match on "#nearby hot pot", which may match approximate results such as "#nearby nine-square grid hot pot", "#nearby mutton hot pot", "#nearby old Beijing hot pot", etc.
[0144] In some embodiments, the server performs fuzzy matching on the first string based on a fuzzy matching algorithm to obtain an approximate matching result of the first chat session corresponding to the first string, and filters the approximate matching result to obtain candidate chat sessions whose similarity meets the first condition.
[0145] Optionally, a fuzzy matching model can be trained to perform fuzzy matching on the first string. Effective matching is achieved by setting the weights of attributes in the fuzzy matching model, thereby training the model and improving the accuracy of approximate matching results. For example, when performing fuzzy matching on "apple," keywords related to "apple," such as "fruit" and "Fuji," are given higher weights during model training, while keywords less related to "apple" are given lower weights. This allows the fuzzy matching model to better understand the user's intent. By setting weights and training the fuzzy matching model, when the user inputs "apple," the model can output matching results with higher relevance to "apple" based on the weights and matching degrees of each keyword.
[0146] Optionally, the similarity between the group chat name of the candidate chat session and the name of the first group chat meets the first condition. The first condition refers to the condition used to filter the approximate matching results. The approximate matching results can be filtered based on the similarity of the group chat names to obtain candidate chat sessions.
[0147] In some embodiments, the first condition is that the similarity between the group chat name of the candidate chat session and the first group chat name reaches a preset threshold. Optionally, the preset threshold can be expressed as a similarity score. For example, the preset threshold is 80%. When the similarity between the group chat name of a certain approximate matching result and the first group chat name reaches or exceeds 80%, the approximate matching result can be considered to meet the first condition, and the approximate matching result is the candidate chat session.
[0148] For example, the similarity of group chat names can be calculated using edit distance. Edit distance is a commonly used method for calculating string similarity. It measures the similarity between two strings by calculating the minimum number of edit operations required to transform one string into another. For instance, the group chat names of the near-matching results can be considered string A, and the first group chat name can be considered string B. The similarity between the near-matching group chat names and the first group chat name can be measured by calculating the number of edit operations required to transform string A into string B. The near-matching results that meet the first condition are then considered as candidate chat sessions.
[0149] For example, the similarity of group chat names can be calculated using Hamming distance. Hamming distance is a metric that measures the number of distinct characters at corresponding positions in two strings of equal length. When calculating the similarity of two group chat names, they can be treated as two strings of equal length, and the Hamming distance can be used to calculate their similarity. For instance, the group chat name with the approximate match can be considered string C, and the first group chat name can be considered string D. Both group chat names are treated as strings of equal length, assuming each is n. Characters at corresponding positions in strings C and D are compared one by one, and the number of distinct characters at each position is counted. The count of distinct characters is the Hamming distance between strings C and D. The similarity is calculated using the Hamming distance: Similarity = (n - Hamming distance) / n, where n is the string length. The smaller the Hamming distance, the more similar the two strings are, and the higher the similarity. Approximate matches that meet the first similarity condition are considered candidate chat sessions.
[0150] The above is merely an illustrative example of similarity calculation and does not constitute a limitation on similarity calculation.
[0151] In some embodiments, candidate chat sessions that meet the first condition are selected from multiple approximate matching results by calculating the similarity between the group chat name of the approximate matching result and the first group chat name.
[0152] In some embodiments, candidate chat sessions whose group chat names match a first condition in terms of similarity to the first group chat name are displayed on the selection list.
[0153] In this embodiment, an approximate matching result for the first chat session is obtained based on a fuzzy matching algorithm. Candidate chat sessions are then selected from these results. The similarity between the group chat name of a candidate chat session and the name of the first group chat meets a first condition. These candidate chat sessions are displayed in a selection list, and the first account can choose to enter any candidate chat session from the list. Through the fuzzy matching algorithm, the first account can find relevant chat sessions even without an exact match. The fuzzy matching algorithm can quickly filter candidate chat sessions related to the first account's input from a large number of chat sessions, reducing the time and effort required for the first account to search, thereby improving the user experience.
[0154] Step 231b: In response to the confirmation that at least one candidate chat session has not been selected, create a first chat session based on the first string.
[0155] In some embodiments, a selection list of at least one candidate chat session will be displayed on the current chat session of the first account.
[0156] Optionally, a list of at least one candidate chat session is displayed as a pop-up window in the chat interface of the first account. The pop-up window displays the group chat name and the number of participants in each candidate chat session. The first user can select any candidate chat session from the list. Optionally, the pop-up window includes an interactive button to deselect a candidate chat session. In response to the first user's action on this interactive button, the first client creates a first chat session based on a temporary chat window component.
[0157] For example, such as Figure 5 As shown in Figure (a), User A sends a first string 301 containing the first specified symbol in the current chat interface. The first string 301 is "#nearby hot pot". When User A clicks on the first string 301, a selection list 302 of candidate chat sessions will be displayed in User A's current chat session interface. The selection list 302 displays the group chat names and group chat members of three candidate chat sessions, namely "#nearby nine-square grid hot pot (23)", "#nearby mutton hot pot (16)" and "#nearby old Beijing hot pot (32)". The selection list 302 also includes an interactive button 303. When User A clicks the interactive button 303, that is, clicks "do not select any", the client corresponding to User A will create the first chat session 304 corresponding to the first string 301, as shown in Figure (a). Figure 5 As shown in Figure (b) of the document.
[0158] In some embodiments, in response to a selection operation of a target chat session among at least one candidate chat session, the chat interface of the target chat session is displayed.
[0159] The target chat session is the chat session selected by the first account from a selection list of at least one candidate chat sessions. Optionally, when the first user selects any candidate chat session from the selection list using the first account, the user will enter the chat interface of the target chat session.
[0160] For example, such as Figure 6 As shown in Figure (a), User A sends a first string 401 containing the first specified symbol in the current chat interface. The first string 401 is "#nearby hot pot". When User A clicks on the first string 401, a selection list 402 of candidate chat sessions will be displayed in User A's current chat session interface. The selection list 402 displays the group chat names and group chat members of three candidate chat sessions, namely "#nearby nine-square grid hot pot (23)", "#nearby mutton hot pot (16)" and "#nearby old Beijing hot pot (32)". When User A clicks on "#nearby mutton hot pot (16)" in the selection list 402, he can enter the chat interface 403 corresponding to the target chat session, such as Figure 6 As shown in Figure (b) of the document.
[0161] In this embodiment, in response to the first account's selection of a target chat session from the candidate chat sessions, the chat interface of the target chat session can be displayed. The first account can select a target chat session of interest from the candidate chat sessions and chat in the chat interface of the target chat session, which improves the user experience.
[0162] Step 232: Display the chat interface of the newly created first chat session.
[0163] Optionally, in response to a triggering operation by the first account on the first string, the chat interface of the newly created first chat session is displayed.
[0164] In one possible implementation, the chat interface of the first chat session can be displayed as a half-screen overlay on top of the chat interface of the first account's current chat session. A half-screen overlay refers to a floating window located in a partial area of the screen; the display interface of the half-screen overlay can be a portion of the full-screen interface's height. Optionally, the half-screen overlay can be used to display the chat interface of the first chat session, either above or to the side of the chat interface of the first account's current chat session. The first user can view the content of the first chat session and perform corresponding interactive operations through the half-screen overlay without leaving the current chat interface.
[0165] In summary, the method provided in this application, by checking whether the link bound to the first string exists, can prevent the server from repeatedly creating the same chat session. If the first link does not exist, it means that the first chat session corresponding to the first string has not yet been created. The server will generate a new first link and bind it to the first string, ensuring that each first string corresponds to one first link. This approach can avoid creating the same first chat session multiple times, improving resource utilization efficiency.
[0166] For the first chat session that has already been created:
[0167] Figure 7 This is a flowchart of a chat session creation method provided in an exemplary embodiment of this application. Step 230 above can be replaced by step 233:
[0168] Step 233: In response to the trigger operation for the first string and the first chat session corresponding to the first string has been created, display the chat interface of the created first chat session.
[0169] In some embodiments, in response to a triggering operation on the first string, the triggering operation on the first string may optionally include, but is not limited to: a click operation, a long press operation, a swipe operation, a touch operation, a button operation, a gesture operation, and a free combination of at least two of the above operations.
[0170] In some embodiments, the symbol trigger in the first client identifies the first specified symbol in the first string, indicating that the first string is triggerable. When the first account triggers the first string, the first client responds to the first account's triggering operation for the first string by sending a request to the server to create a first chat session corresponding to the first string. The server queries the first link bound to the first string to check if the first chat session corresponding to the first string exists. If the first link exists, the server directly returns the first link to the first client; if the first link does not exist, the server creates the first link corresponding to the first string and returns the created first link to the first client.
[0171] Optionally, when the server finds the first link bound to the first string, i.e., when the first chat session has been created, the server returns the first link of the created first chat session to the first client. Optionally, the first client displays the created first chat session, and the first user can choose whether to join the created first chat session.
[0172] In summary, the method provided in this application can quickly determine whether a first chat session has been created by querying whether the link bound to the first string exists. If the first link exists, the server can directly return the first link to the client, and the first account can immediately access the created first chat session, providing a convenient access method.
[0173] Display the group chat name of the first chat session:
[0174] For cases where the first specified symbol includes a start symbol:
[0175] • Display the start symbol and the first group chat name as the group chat name of the first chat session.
[0176] Optionally, the group chat name of the first chat session includes a start symbol and the first group chat name.
[0177] In some embodiments, the first designated symbol is a predetermined character used to identify the name of the first group chat. Optionally, the start symbol is a starting symbol used to identify the name of the first group chat. For example, the start symbol can be a predetermined symbol such as "#", "&", "¥", or "*". The first group chat name is the group chat name of the first chat session. Optionally, the first group chat name includes keyword information, which can be used to identify the topic of the first chat session.
[0178] In some embodiments, when the first specified symbol in the first string includes a start symbol, the start symbol and the first group chat name are displayed as the group chat name of the first chat session. Optionally, after the first user sends a first message including the first string in the current chat session, the symbol trigger of the first client parses the first string entered by the first user, and parses the start symbol and the first group chat name in the first string. Optionally, the text after the start symbol in the first string is taken as the first group chat name. After determining the start symbol and the first group chat name, the start symbol and the first group chat name are combined and displayed as the group chat name of the first chat session.
[0179] For example, the first string is “#GatheringAASplit”, where “#” is the starting symbol and “GatheringAASplit” is the name of the first group chat. The combination of “#” and “GatheringAASplit” can be displayed as the group chat name of the first chat session.
[0180] In some embodiments, the group chat name of the first chat session is determined based on a first string, and the group chat name is displayed by combining the start symbol in the first string with the first group chat name. Optionally, the group chat name of the first chat session has greater visual prominence than the group chat name of a regular chat session.
[0181] For example, the font size of the group chat name in the first chat session is larger than that of the group chat name in a regular chat session; or, the font color of the group chat name in the first chat session is higher than that of the group chat name in a regular chat session; or, a background highlight or border is added around the group chat name in the first chat session to distinguish it from the group chat name in a regular chat session.
[0182] In this embodiment of the application, when the first designated symbol in the first string includes a start symbol, in response to the first user's triggering operation on the first string, the start symbol and the first group chat name are displayed as the group chat name of the first chat session. Optionally, the text after the start symbol in the first string is used as the first group chat name. This method of creating the group chat name of the first chat session is simple and quick, and at the same time provides the first user with an intuitive visual indication.
[0183] For cases where the first specified symbol includes both a start symbol and a stop symbol:
[0184] • Display the start symbol, first group chat name, and end symbol as the group chat name of the first chat session.
[0185] Optionally, the group chat name of the first chat session includes a start symbol, a first group chat name, and an end symbol.
[0186] In some embodiments, the first designated symbol is a predetermined character used to identify the first group chat name. Optionally, the start symbol is a beginning symbol identifying the first group chat name, which can be used to identify the beginning position of the group chat name in the first chat session. The first group chat name is the group chat name of the first chat session. The end symbol is an end symbol identifying the first group chat name, which can be used to identify the end position of the group chat name in the first chat session. Optionally, the start symbol and the end symbol are boundary symbols of the group chat name in the first chat session.
[0187] In some embodiments, when the first specified symbol in the first string includes a start symbol, the start symbol and the first group chat name are displayed as the group chat name of the first chat session. Optionally, after the first user sends a first message including the first string in the current chat session, the symbol trigger of the first client parses the first string entered by the first user, and parses the start symbol, the first group chat name, and the end symbol in the first string. Optionally, the text between the start symbol and the end symbol in the first string is used as the first group chat name, and the start symbol, the first group chat name, and the end symbol are combined and displayed as the group chat name of the first chat session.
[0188] Optionally, the start symbol and the end symbol can be the same or different.
[0189] For example, the first string is "*Zhongshan Road Traffic Jam*", where the first "*" is the start symbol, "Zhongshan Road Traffic Jam" is the name of the first group chat, and the second "*" is the end symbol. The first "*", "Zhongshan Road Traffic Jam", and the second "*" can be combined to display the group chat name of the first chat session. For example, the first string is "#Weekend Getaways*", where "#" is the start symbol, "Weekend Getaways" is the name of the first group chat, and "*" is the end symbol. The "#", "Weekend Getaways", and "*" can be combined to display the group chat name of the first chat session.
[0190] In this embodiment of the application, when the first designated symbol in the first string includes a start symbol and a stop symbol, in response to the first user's triggering operation on the first string, the start symbol, the first group chat name, and the stop symbol are displayed as the group chat name of the first chat session. Optionally, the text between the start symbol and the stop symbol in the first string is used as the first group chat name. This method of creating the group chat name of the first chat session is simple and quick, and at the same time provides the first user with an intuitive visual indication.
[0191] Information on selecting your group identity upon entering the first chat session:
[0192] In some embodiments, in response to a first user’s triggering operation on a first string, before the first user enters the first chat session corresponding to the first string, the chat interface of the current chat session will display information on the identity selection for joining the group, and the first user can select the identity information for joining the group (this embodiment of the application takes the first user entering the first chat session as an example for explanation).
[0193] Figure 8 This is a flowchart of a method for creating a chat session provided in an exemplary embodiment of this application. The method includes steps 310 and 320.
[0194] Step 310: Before entering the first chat session, display the group entry identity selection information, which is used to select real account identity or anonymous account identity;
[0195] The group entry identity information refers to the identity information of the first user entering the first chat session. Optionally, the group entry identity information includes real account identity and anonymous account identity.
[0196] In some embodiments, before the first user enters the first chat session, the chat interface of the current chat session will display an interface for selecting the identity information of the first user to enter the first chat session. The first user can select the identity information of the first user to enter the first chat session through the interface for selecting the identity information of the first user to enter the first chat session.
[0197] Optionally, the interface for selecting the identity information to join the group can take various forms. For example, the interface can be a pop-up window, where a pop-up window appears on the chat interface of the current chat session before the first user enters the first chat session, allowing the first user to select their identity information to join the first chat session; or the interface can be a page prompt, where a prompt message is displayed at the top or bottom of the chat interface of the current chat session before the first user enters the first chat session, asking the first user to select their identity information to join the first chat session.
[0198] In some embodiments, the interface for selecting group membership information includes the membership information of the first user joining the first chat session. Optionally, the membership information may include the first user's avatar, which may be a custom image uploaded by the first user or a default avatar provided by the first client; or, the membership information may include the first user's name.
[0199] Optionally, the interface for selecting the identity information when joining the group also includes selection buttons for real account identity and anonymous account identity. The first user can select the identity information to join the first chat session by selecting the button.
[0200] For example, in conjunction with reference Figure 9 User A sends a message containing the first string "501" in the current chat interface. The first string "501" is "#nearby hotpot". When User A clicks on the first string "501", a pop-up window "502" will appear in the chat interface of User A's current chat session before User A enters the first chat session corresponding to the first string "501". This pop-up window "502" is used by User A to select the identity information to join the first chat session. Optionally, the pop-up window "502" includes selection buttons for real account identity and anonymous account identity. Optionally, if User A selects the real account identity, the first chat session will be entered with the real account's avatar and name; if User A selects the anonymous account identity, the first chat session will be entered with the anonymous account's avatar and name.
[0201] Step 320: In response to the selection of an anonymous account identity, enter the first chat session as an anonymous account.
[0202] In some embodiments, in response to the first user's selection of an anonymous account identity, the system displays that the first user has entered the first chat session as an anonymous account. Optionally, in response to the first user's selection of an anonymous account identity, the system displays that the first user has entered the first chat session with an anonymous avatar and name.
[0203] In some embodiments, after the first user selects an anonymous account identity on the group entry identity selection screen, a confirmation button will be displayed on the screen to ensure that the first user confirms joining the first chat session as an anonymous account. Optionally, the anonymous account identity can be a randomly generated anonymous identity. After the first user joins the first chat session as an anonymous account, the chat session will display the first user's messages as an anonymous account.
[0204] In some embodiments, a first user chooses to join a first chat session as an anonymous account. Optionally, some functions of the first user as an anonymous account may be blocked in the first chat session to ensure the privacy and security of the anonymous account. For example, video calling under the anonymous account is blocked to protect the identity privacy of the anonymous account, and location sharing under the anonymous account is blocked to protect the location privacy of the anonymous account. The above is an exemplary description, and this application does not limit it.
[0205] In summary, the method provided in this application displays group entry identity selection information before the first account enters the first chat session. The first account can choose a real account identity or an anonymous account identity. In response to the first account's selection of an anonymous account identity, the first account enters the first chat session as an anonymous account. The group entry identity selection information provides the first account with a choice of identity information, allowing the first user to select a group entry identity as needed, thus improving the first user's experience when joining the first chat session.
[0206] Join the second chat session by clicking on the forwarded second string:
[0207] In some embodiments, a first client receives a second message including a second string forwarded by a second account. The first account can join a second chat session corresponding to the second string by clicking on the second string forwarded by the second account.
[0208] Figure 10 This is a flowchart of a method for creating a chat session provided in an exemplary embodiment of this application. This embodiment uses this method... Figure 1 The following steps are illustrated using the example of a first client supporting instant messaging:
[0209] Step 410: Receive the second message sent by the second account in the current chat session;
[0210] The second message includes a second string. The second string includes a first designated symbol and a second group chat name. The first designated symbol is a predefined character used to identify the second group chat name. The second group chat name is the group chat name of the second chat session.
[0211] In some embodiments, the second string may be a message forwarded by the second account in the current chat session. Optionally, the first account can join the second chat session corresponding to the second string by clicking on the second string forwarded by the second account.
[0212] In some embodiments, the first client has a built-in symbol trigger for detecting a first specified symbol in the second string. Optionally, when the second account sends a second message containing the second string, the symbol trigger automatically detects whether the first specified symbol in the second string satisfies a preset rule. Optionally, a symbol library can be written by the developer using a programming language, and the symbol trigger detects whether the first specified symbol in the second string belongs to a character in the symbol library. When the first specified symbol belongs to any symbol in the symbol library, it can be considered that the first specified symbol satisfies the preset rule.
[0213] Step 420: In response to the triggering action for the second string, display the chat interface of the second chat session created based on the second string.
[0214] Optionally, the second account sends a second message containing a second string, and other accounts (such as the first account) can join the second chat session by clicking on the second string.
[0215] In some embodiments, a first client receives a second message sent by a second account in the current chat session. A symbol trigger in the first client identifies a first specified symbol in the second string, indicating that the second string is triggerable. The first client sends a request to the server to create a first chat session. The server queries the second link bound to the second string and returns the second link to the first client. The second link is used to access the second chat session created based on the second string. Optionally, the server returns the second link to the first client. After receiving the second link, the first client, in response to the first account's triggering operation on the second string, sends a second access request to the server. Based on the second access request, the server returns the session display content of the second chat session to the first client, i.e., the chat interface of the second chat session.
[0216] In summary, the method provided in this application embodiment allows a first account to receive a second string forwarded by a second account in the current chat session. The second message includes the second string, and in response to a triggering operation on the second string, the chat interface of the second chat session is displayed. By receiving the second string containing a first specified symbol and a second group chat name, the first account can join the second chat session by clicking on the second string forwarded by the second account. This method simplifies the steps of joining a chat session.
[0217] Designate a preset account to directly enter the third chat session:
[0218] In some embodiments, the first client receives a third message sent by the first account in the current chat session. The third message includes a third string, which includes a first designated symbol, a third group chat name, a second designated symbol, and a preset account. The second designated symbol can specify the preset account to join the third chat session.
[0219] • Receive a third message sent by the first account in the current chat session;
[0220] The third message includes a third string, which contains a first designated symbol, a third group chat name, a second designated symbol, and a preset account. The first designated symbol is a predefined character used to identify the group chat name. Optionally, the first designated symbol is also a predefined character used to identify the third group chat name. The third group chat name is the group chat name of the third chat session. The third chat session is a chat session created based on the third string. The second designated symbol can specify a preset account to join the third chat session. The preset account can be any user account from the user list of the current chat session.
[0221] In some embodiments, the first account sends a third message in the current chat session, the third message including a third string. Optionally, the third string may include a second designation symbol for specifying a preset account to join the third chat session, the specified preset account can directly join the third chat session.
[0222] For example, the third string is “#GatheringAASplit@LiSi”, where “#” is the first designation symbol, “GatheringAASplit” is the name of the third group chat, “@” is the second designation symbol, and “LiSi” is the preset account. The “LiSi” specified by the second designation symbol can directly join the chat session corresponding to “#GatheringAASplit”. Optionally, the third string may include a preset number of second designation symbols and preset accounts, wherein the number of second designation symbols and preset accounts is the same.
[0223] In some embodiments, after the first account sends a third message in the current chat session, a pop-up window for joining the third chat session will be displayed on the chat interface of the designated preset account. Optionally, the pop-up window includes interactive buttons for confirming joining the third chat session and canceling joining the third chat session, and the preset account can use these interactive buttons to choose to join or cancel joining the third chat session.
[0224] • Displays the chat interface for a preset account joining a third-party chat session.
[0225] Optionally, when the preset account selects the "Confirm Joining Third Chat Session" interaction button, it will directly enter the third chat session corresponding to the third string. The first client responds to the preset account's confirmation operation and displays the chat interface of the preset account joining the third chat session.
[0226] In this embodiment, the first account sends a third message in the current chat session. The third message includes a third string, which further includes a second designation symbol and a preset account. The second designation symbol is used to specify the preset account to join the third chat session. The preset account receives the third message sent by the first account in the current chat session and, in response to the preset account's confirmation operation, displays a chat interface indicating that the preset account has joined the third chat session. The first account can directly add the preset account to the specified chat session through a simple operation, without having to manually search for and add it. This method of directly specifying the preset account to join the chat session can quickly introduce the specified preset account into the chat session, which helps to improve the operational efficiency of the chat session.
[0227] The first chat session is displayed partially as a floating window:
[0228] • In response to a return operation for the first chat session, the chat session list interface is displayed, and the entry control of the first chat session is overlaid as a floating window in a local area of the chat session list interface;
[0229] The chat session list interface displays a list item for at least one chat session.
[0230] In some embodiments, in response to a first account's return operation for a first chat session, a chat session list interface is displayed, and the entry control of the first chat session is overlaid as a floating window in a partial area of the chat session list interface. Optionally, the return operation for the first chat session includes, but is not limited to: click operation, long press operation, swipe operation, touch operation, button operation, gesture operation, and free combination of at least two of the above operations.
[0231] Optionally, the chat interface of the first chat session includes a back button. In response to an action on the back button, a chat session list interface is displayed. The chat session list interface is the interface through which the first account displays chat sessions on the instant messaging application. The chat session list interface displays list items with at least one chat session. Optionally, each chat session is presented as a list item, and the list items typically contain information related to that chat session, such as the name of the chat partner, recent messages, and the number of unread messages.
[0232] Optionally, in response to a return operation for the first chat session, a chat session list interface is displayed, and the entry control for the first chat session is overlaid as a floating window in a partial area of the chat session list interface. The entry control is an interactive element used to enter the first chat session. The entry control is overlaid as a floating window on a partial area of the chat session list interface.
[0233] Optionally, the local area is a preset area for displaying the floating window. The local area can be any area within the chat session list interface so that the entry control for the first chat session can be displayed in that area. Optionally, the local area is located in the upper-middle part of the chat session list interface, or it is located in the lower-middle part of the chat session list interface; this application does not limit this. Optionally, the display area of the local area is smaller than the display area of the chat session list interface. Optionally, the local area is an independent interface element on the chat session list interface; for example, the local area can be an independent child window, a pop-up box, a floating window, or at least one of other forms of interface elements.
[0234] In some embodiments, a floating window refers to a floating window displayed in a partial area of the chat session list interface. In some embodiments, the first chat session is displayed in a thumbnail manner, and the floating window can provide a quick preview function. While the first account is chatting with others in any chat session in the chat session list interface, it can quickly return to or exit the first chat session as needed through the floating window.
[0235] For example, such as Figure 11 As shown in Figure (a), a back button 601 is displayed on the chat interface of the first chat session. In response to user A's back operation on the back button 601, the chat session list interface 602 is displayed, as shown in Figure (a). Figure 11 As shown in Figure (b), the chat session list interface 602 displays at least one list item for a chat session. The list item for the at least one chat session includes a two-person chat or a group chat. At the same time, the entry control 603 of the first chat session is displayed as a floating window in a local area of the chat session list interface 602. Optionally, the entry control 603 is displayed as a floating window in a local area of the chat session list interface 602. The first account can return to or exit the first chat session through the entry control 603.
[0236] Exit the first chat session by closing the button:
[0237] • In response to a trigger action on the close button, display the chat interface indicating exit from the first chat session.
[0238] The entry control for the first chat session is displayed as a floating window overlaid in a partial area of the chat session list interface. Optionally, the floating window includes a close button to indicate whether the first chat session is closed.
[0239] In some embodiments, the close button has different display forms. Optionally, the close button can be an icon or text. For example, when it is an icon, the close button can be displayed as an "X", and when it is text, the close button can be displayed as "Close". This application does not limit this. Optionally, the close button is an interactive element in a floating window.
[0240] Optionally, in response to a trigger action on the close button, a chat interface indicating exit from the first chat session is displayed. The trigger action is an operation performed on the close button, and includes at least one of the following: single click, double click, swipe, long press, etc. Optionally, when the first account exits the first chat session, the server deletes the first account's local message history within the first chat session.
[0241] For example, such as Figure 12 As shown in Figure (a), the first chat session is displayed as a floating window overlaid on the chat session list interface. Optionally, the floating window includes a close button 701. In response to a trigger operation on the close button 701, the chat interface of the first account exiting the first chat session is displayed, as shown below. Figure 12 As shown in Figure (b) of the document.
[0242] In this embodiment, a close button is provided on the floating window. Upon triggering the close button, the chat interface indicating that the first account has exited the first chat session is displayed. The first account can quickly exit the chat interface of the first chat session by triggering the close button, providing a convenient way for the first account to leave the group.
[0243] Redisplay the chat interface of the first chat session:
[0244] • In response to a trigger action on the area of the floating window other than the close button, redisplay the chat interface of the first chat session.
[0245] In some embodiments, when the first account clicks on an area of the floating window other than the close button, the first client recognizes the first account's triggering action and redisplays the chat interface of the first chat session based on the triggering action. The first account can quickly switch to the chat interface of the first chat session by clicking on an area of the floating window other than the close button without closing the floating window.
[0246] In response to a trigger operation on the area of the floating window other than the close button, the chat interface of the first account is displayed to return to the first chat session via the floating window.
[0247] For example, such as Figure 13 As shown in Figure (a), in response to the first account's trigger operation on area 801 of the floating window (excluding the close button), the chat interface of the first account returns to the first chat session, as shown in Figure (a). Figure 13 As shown in Figure (b) of the document.
[0248] In this embodiment, in response to a trigger operation on the area of the floating window other than the close button, the chat interface of the first chat session is redisplayed. The first account can quickly return to the chat interface of the first chat session by triggering the area of the floating window other than the close button, providing the first account with a convenient way to return to the group chat.
[0249] Confirm the group owner in the first chat session:
[0250] In some embodiments, the first chat session includes multiple member accounts. Optionally, the group owner of the first chat session is determined based on the contribution of the multiple member accounts to the first chat session.
[0251] The degree of contribution includes at least one of the following: the frequency of posts by member accounts, the social engagement of member accounts, and the quality of information provided by member accounts.
[0252] The metrics used are as follows: **Speaking Frequency:** This evaluates the frequency with which a member account speaks in the first chat session. Optionally, a member account with a higher speaking frequency may contribute more to the discussion and activity of the first chat session. **Social Engagement:** This evaluates the member account's social engagement in the first chat session, such as replying to messages from other member accounts, providing help and advice, etc. Optionally, a member account with higher social engagement may contribute more to promoting communication and interaction. **Information Quality:** This evaluates the quality of information provided by a member account. Optionally, a member account that provides valuable insights, knowledge, or experience contributes more to the first chat session.
[0253] Based on the above factors, the contribution level of each member account to the first chat session is determined, and the account with the highest contribution level is selected as the group owner of the first chat session. The group owner has the authority to disband the chat session, which ensures that the management and decision-making power of the first chat session are in the hands of the most contributing member account.
[0254] Automatically disband the first chat session:
[0255] In some embodiments, the first chat session is a temporary chat session, which is automatically dissolved when automatic dissolution conditions are met. The automatic dissolution conditions include at least one of the following:
[0256] • Received the group owner's disbandment command in the first chat session;
[0257] In some embodiments, the first chat session includes multiple member accounts. Optionally, the group owner of the first chat session is determined based on the contribution of the multiple member accounts to the first chat session. The contribution level includes at least one of the following: the frequency of the member account's posts, the social activity of the member account, and the quality of the information provided by the member account.
[0258] • The activity level of the first chat session is less than the first threshold;
[0259] The first threshold is the lowest threshold used to determine the activity level of the first chat session.
[0260] In some embodiments, the server detects and evaluates the activity level of the first chat session, and disbands the first chat session when the activity level of the first chat session is less than a first threshold.
[0261] Alternatively, activity level can be assessed using at least one of the following metrics.
[0262] • Assess the activity level of the first chat session by message count: Record the number of messages sent in the first chat session. If the number of messages consistently falls below a set first threshold, it indicates low activity in the first chat session. For example, suppose in temporary chat session A, the first threshold is the minimum activity threshold, which is at least 100 messages per week. If the number of messages in temporary chat session A is less than 100 within a week, it can be considered that the activity level of temporary chat session A is below the first threshold, and the server will terminate temporary chat session A.
[0263] • Assess the activity level of the first chat session through user engagement: Evaluate user engagement in the first chat session, including the number of users speaking and the frequency of speaking. If user engagement is less than a set first threshold, it indicates that the activity level of the first chat session is low. For example, suppose in temporary chat session B, the first threshold is the minimum threshold for activity, which is at least 10 different users participating in the discussion each week. If less than 10 different users participate in the discussion in temporary chat session B within a week, it can be considered that the activity level of temporary chat session B is below the first threshold, and the server will disband temporary chat session B.
[0264] • Assess the activity level of the first chat session through interactivity: Evaluate the level of interaction between member accounts in the first chat session, including actions such as replying, asking questions, and sharing. If the interactivity is less than a set first threshold, it indicates that the activity level of the first chat session is low. For example, suppose in a temporary chat session C, the first threshold is the minimum threshold for activity, set to at least 5 interactions between members per hour, including actions such as replying, asking questions, and sharing. If the number of interactions is less than 5 in a certain hour, the interactivity of the temporary chat session C can be considered less than the first threshold, and the server will disband the temporary chat session C.
[0265] Based on the above metrics, a first threshold can be set to determine whether the activity level of the first chat session meets the conditions for automatic disbandment. If the activity level remains below the set first threshold, the server can trigger a disbandment operation to disband the first chat session, thus ensuring the quality and effectiveness of the first chat session.
[0266] • Received the logout request from the last user account in the first chat session;
[0267] In some embodiments, the first chat session includes multiple user accounts. When the last user account in the first chat session leaves the first chat session, the server will dissolve the first chat session to release resources and avoid the existence of idle chat sessions.
[0268] • The first duration is reached after the last user account in the first chat session has logged out.
[0269] The first duration refers to the preset duration after the last user account logs out in the first chat session.
[0270] In some embodiments, by setting a first duration after the last user account logs out, it can be ensured that even if the last user account logs out, the first chat session will continue to exist if a new user account joins or interacts within the first duration. Only if no new user account joins or interacts will the server terminate the first chat session after the first duration, to avoid idle sessions continuing to exist.
[0271] For example, in the first chat session, the initial duration is 30 minutes. When the last user account in the first chat session logs out, if no new user account joins or interacts within 30 minutes, the server will terminate the first chat session.
[0272] In this embodiment of the application, the automatic disbanding conditions for temporary chat sessions are introduced. When the automatic disbanding conditions are met, such as the group owner initiating a disbanding operation, the activity level of the first chat session being lower than a first threshold, receiving the exit operation of the last user account in the first chat session, and the duration after receiving the exit operation of the last user account in the first chat session reaching a first duration, the temporary chat session will be automatically disbanded. These provisions help ensure that temporary chat sessions will not continue to exist under inactive or unnecessary circumstances, thereby improving the user experience.
[0273] The following section explains how to create chat sessions on the server side.
[0274] Figure 14 A flowchart illustrating a method for creating a chat session according to an exemplary embodiment of this application is shown. This method can be applied to, for example... Figure 1 In the server 120 shown, the method includes:
[0275] Step 510: Obtain the first message sent by the first client in the current chat session. The first client is logged in with the first account.
[0276] The first message is the message sent by the first account in the current chat session. Optionally, the first message includes a first string. The first string includes a first designated symbol and a first group chat name. The first designated symbol is a predefined character used to identify the first group chat name.
[0277] Step 520: If the first string is detected in the first message, determine the first link bound to the first string and return the first link to the first client;
[0278] The first link is a link used to access the first chat session created based on the first string.
[0279] In some embodiments, after receiving the first message sent by the first account, the server identifies the first message. Optionally, the server listens for the first message by setting up a listener or receiving interface. Upon receiving the first message, the server parses whether a first string exists in the first message. If the first string is identified, the server queries whether a first link bound to the first string exists. The first link is a link used to access the first chat session created based on the first string. Optionally, when the server finds a first link bound to the first string, it returns the first link to the first client.
[0280] Step 530: Upon receiving the first access request from the first client, send feedback to the first client on the session display content of the first chat session.
[0281] The first access request is a request triggered by the first string to access the first link. The session display content is used by the first client to display the chat interface of the first chat session.
[0282] In some embodiments, after receiving the first link, the first client, in response to a triggering operation by the first account targeting the first string, executes a triggering operation related to the first string and sends a first access request to the server to retrieve the session display content of the first chat session. Upon receiving the first access request, the server retrieves the content of the first chat session, including message records and a user list, based on the information in the first access request. The server generates a chat interface for displaying the first chat session, formats the message records into a format displayable on the first client, and generates a user list interface, etc. The server returns the generated session display content as a response to the first client. Upon receiving the server's response, the first client displays the session display content, i.e., the chat interface of the first chat session.
[0283] In summary, the method provided in this application involves the server obtaining the first message sent by the first account in the current chat session, identifying whether a first link bound to a first string exists, and if the server identifies a first link bound to the first string, returning it to the first client. The first client can then send a first access request to the server through a corresponding trigger operation targeting the first link. Based on the first access request, the server returns the session display content of the first chat session to the first client. By providing a convenient way to create and access the first chat session, the first account can quickly enter and participate in the first chat session, improving user efficiency and experience.
[0284] Check if the first link bound to the first string exists:
[0285] Regarding the case where the first link exists:
[0286] Figure 15 This is a flowchart of a chat session creation method provided in an exemplary embodiment of this application. Step 520 above can be replaced by step 521:
[0287] Step 521: If the first string is detected in the first message and the first link bound to the first string is found, return the first link of the created first chat session to the first client;
[0288] In some embodiments, the first account sends a first message including a first string in the current chat session. Optionally, the first chat session corresponding to the first string has not yet been created, or the first chat session corresponding to the first string has already been created.
[0289] Optionally, when the server detects the presence of a first string in the first message and finds a first link bound to the first string, it indicates that the first chat session corresponding to the first string has been created. Optionally, when the server finds the first link bound to the first string, i.e., the first chat session has been created, the server returns the first link of the created first chat session to the first client. Optionally, the first client displays the created first chat session, and the first user can choose whether to join the created first chat session.
[0290] In this embodiment, the server queries whether a first link bound to a first string exists. If the first link exists, it indicates that a first chat session corresponding to the first string has been created. The server can then report the existence of the first chat session to the first client. This automatic query and feedback method provides a clear result for the first account.
[0291] For the case where the first link does not exist:
[0292] Figure 16 This is a flowchart of a chat session creation method provided in an exemplary embodiment of this application. Step 520 above can be replaced by steps 522 and 523:
[0293] Step 522: If the first string is detected in the first message and the first link bound to the first string cannot be found, generate a first link for accessing the first chat session;
[0294] Optionally, if the server detects the presence of a first string in the first message and cannot find the first link bound to the first string, it indicates that the first chat session corresponding to the first string has not yet been created.
[0295] In some embodiments, if the server cannot find the first link bound to the first string, i.e., if the first chat session has not yet been created, the server will generate a first link for accessing the first chat session. Optionally, the first link is a link generated by the server based on the first string, and it is unique and valid.
[0296] Step 522 above can be replaced by steps 522a and 522b.
[0297] Step 522a: If the first string is detected in the first message and the first link bound to the first string cannot be found, at least one candidate chat session is obtained based on the fuzzy matching algorithm. The similarity between the group chat name of the candidate chat session and the name of the first group chat meets the first condition.
[0298] Among them, candidate chat sessions are chat sessions that are highly similar to the first chat session. Optionally, after the first user triggers the first string through the first account, the server performs fuzzy matching on the first string and matches a group of chat sessions related to the first user's intent based on the first group chat name of the first string. The matched chat sessions are the candidate chat sessions.
[0299] In some embodiments, the server performs fuzzy matching on the first string based on a fuzzy matching algorithm to obtain approximate matching results for the first chat session corresponding to the first string. The approximate matching results are then filtered to obtain candidate chat sessions whose similarity meets a first condition. The first condition refers to the criteria used to filter the approximate matching results, which can be based on the similarity of the group chat names to obtain the candidate chat sessions displayed in the selection list.
[0300] The approximate matching result is obtained based on the fuzzy matching algorithm, and the candidate chat sessions that meet the first condition are obtained after filtering the approximate matching result. For details, please refer to the detailed content in step 231a above, which will not be repeated here.
[0301] Step 522b: Return candidate links for at least one candidate chat session to the first client. The candidate links are links used to access the candidate chat sessions.
[0302] In some embodiments, the server queries and finds candidate chat sessions that meet similarity criteria, obtains candidate links for the candidate chat sessions, and returns the candidate links to the first client. The candidate links are links used to access the candidate chat sessions. The first client can send an access request for the candidate chat sessions to the server in response to a triggering operation on the candidate links.
[0303] In this embodiment, when the first chat session corresponding to the first string has not yet been created, the server obtains an approximate matching result for the first chat session based on a fuzzy matching algorithm. Candidate chat sessions are then selected from the approximate matching results. The similarity between the group chat name of the candidate chat session and the name of the first group chat meets a first condition. Candidate chat sessions meeting the first condition are displayed in a selection list, and the first user can select any candidate chat session from the list. Through the fuzzy matching algorithm, the first user can find relevant chat sessions even without an exact match. The fuzzy matching algorithm can quickly filter out candidate chat sessions related to the first user's input from a large number of chat sessions, reducing the first user's search time and effort, thereby improving the first user's experience.
[0304] Step 523: Create a binding relationship between the first chat session and the first link, and return the first link to the first client.
[0305] The binding relationship ensures the correspondence between the first chat session and its corresponding first link.
[0306] In some embodiments, the server creates a binding relationship between a first chat session and a first link, and then returns the first link to the first client. The first link serves as the identifier of the first chat session, and the first account can enter the first chat session by triggering a first string.
[0307] In summary, the method provided in this application involves a first account sending a first message containing a first string in the current chat session. The server checks if a first link bound to the first string exists. If the first link exists, it indicates that the first chat session corresponding to the first string has been created, and the server can directly return the first link to the first client. If the first link does not exist, it indicates that the first chat session corresponding to the first string has not yet been created, and the server can generate a first link, establish a binding relationship between the first string and the first link, and return the first link to the first client. By automatically handling the creation of the first chat session and the return of the first link, the user does not need to manually operate or provide additional information. The server automatically determines and executes corresponding operations based on the existence of the first string, simplifying user operations and improving the user experience.
[0308] The server processes the forwarded second message and receives the second access request:
[0309] In some embodiments, the server obtains a second message sent by the second client. If a second string exists in the second message, the server queries whether a second link bound to the second string exists. If the second link exists, the server returns the second link to the first client. The first client then sends a second access request to the server, displaying the chat interface of the first account entering the second chat session corresponding to the second string.
[0310] Figure 17 This is a flowchart of a method for creating a chat session provided in an exemplary embodiment of this application. This embodiment uses this method... Figure 1 The following steps are illustrated using the example of a first client supporting instant messaging:
[0311] Step 610: Obtain the second message sent by the second client; the second client is logged in with a second account.
[0312] The second message includes a second string. The second string includes a first designated symbol and a second group chat name. The first designated symbol is a predefined character used to identify the second group chat name. The second group chat name is the group chat name of the second chat session.
[0313] Step 620: If a second string is detected in the second message, determine the second link bound to the second string and return the second link to the first client;
[0314] The second link is used to access a second chat session created based on the second string.
[0315] In some embodiments, after receiving a second message sent by a second account, the server identifies the second message. Optionally, the server listens for the second message by setting up a listener or receiving interface. Upon receiving the second message, the server parses whether a second string exists in the second message. If the second string is identified, the server queries whether a second link bound to the second string exists. The second link is used to access a second chat session created based on the second string. Optionally, when the server finds a first link bound to the second string, it returns the second link to the first client.
[0316] Step 630: Upon receiving the second access request sent by the first client, send feedback to the first client on the session display content of the second chat session.
[0317] The second access request is a request to access the second link by triggering an operation on the second string, and the session display content is used by the first client to display the chat interface of the second chat session.
[0318] In some embodiments, after receiving the second link, the first client, in response to a triggering operation by the first account targeting the second string, executes a triggering operation related to the second string and sends a second access request to the server, requesting to obtain the session display content of the second chat session. Upon receiving the second access request, the server obtains the content of the second chat session, including message records and a user list, based on the information in the second access request. The server generates a chat interface for displaying the second chat session, formats the message records into a format displayable on the second client, and generates a user list interface, etc. The server returns the generated session display content as a response to the first client. Upon receiving the server's response, the first client displays the session display content, i.e., the chat interface of the second chat session.
[0319] In summary, the method provided in this application involves the server obtaining a second message sent by a second account in the current chat session, identifying whether a second link is bound to a second string, and if the server identifies a second link bound to the second string, returning it to the first client. The first client can then send a second access request to the server through a corresponding trigger operation targeting the second link. Based on the second access request, the server returns the session display content of the second chat session to the first client. By clicking on the second string forwarded by the second account, the first account can quickly enter and participate in the second chat session, improving user efficiency and experience.
[0320] Search the candidate set and determine the first chat session:
[0321] In some embodiments, when the server detects the presence of a first string in the first message, it determines whether a first chat session corresponding to the first string has been created by querying the first link bound to the first string. Optionally, the server queries the candidate set for the first link bound to the first string.
[0322] In some embodiments, a candidate set is determined based on a first account. The candidate set includes at least one candidate session. The server queries the candidate set to see if a first link bound to a first string exists.
[0323] Among them, the candidate sessions satisfy at least one of the following:
[0324] • The member accounts in the candidate session are friends with the first account;
[0325] Here, the first account is the user account that logs into the first client, and the member accounts are the user accounts in the candidate sessions. Optionally, the member accounts and the first account have a friend relationship.
[0326] For example, the first account sends the string "#party_split_split", and a chat session corresponding to "#party_split_split" has been created. The second account is in chat session A corresponding to "#party_split_split", and the third account is in chat session B corresponding to "#party_split_split". Optionally, the first account wants to enter chat session A corresponding to "#party_split_split". The first account and the second account are friends, but the first account and the third account are not friends. Chat session A is then identified as a candidate session in the candidate set. After the first account sends the string "#party_split", the server will search for the first link bound to "#party_split" in the candidate set. That is, the server will find the first link corresponding to chat session A. Optionally, the server will return the first link corresponding to chat session A to the first client. This first link is the link used by the first account to access chat session A, meaning the first account will enter chat session A of a member account with which it has a friend relationship.
[0327] • The candidate session belongs to the same group as the primary account;
[0328] Groups are a way to organize and manage conversations, making it easy to group content related to a conversation topic or people together.
[0329] Alternatively, the same group can be determined based on multiple factors.
[0330] 1) Determining the same group based on conversation topic: If two chat conversations have the same topic, they can be considered to belong to the same group. For example, if both chat conversation A and chat conversation B have the topic "photography", then chat conversation A and chat conversation B can be classified as the same group.
[0331] 2) Determining the same group based on user accounts: If two chat sessions contain the same user account, they can be considered to belong to the same group. For example, if chat session C contains the user account "Li Si" and chat session D also contains the user account "Li Si", then chat sessions C and D can be classified as the same group.
[0332] 3) Determining the same group based on time: If two chat sessions are created at the same time, they can be considered to belong to the same group. For example, if chat sessions E and F were created on "April 8, 2024", then chat sessions E and F can be classified as the same group.
[0333] 4) Determining the same group based on location: If two chat sessions are located in the same location, they can be considered to belong to the same group. For example, if chat sessions G and H are both located in "Beijing", then chat sessions G and H can be classified as the same group.
[0334] Optionally, the same group can be identified based on two conditions, for example, based on the conversation topic and location, thus identifying chat conversations that meet the same topic and location as the same group. This application does not limit this.
[0335] In some embodiments, a candidate set is determined based on a first account, and the candidate set includes at least one candidate session. The candidate set is then queried to determine if a first link bound to a first string exists.
[0336] For example, if the first account sends the string "#CherryBlossomsInFullSight", the server can query the same group for a first link associated with "#CherryBlossomsInFullSight". For instance, if the same group is determined by the conversation topic, chat conversations with the topic "cherry blossoms" can be identified as candidate conversations. The server then queries the candidate set of these candidate conversations to see if a first link bound to "#CherryBlossomsInFullSight" exists. Optionally, the first account can enter the chat conversation corresponding to the first link belonging to the same group.
[0337] For example, if the first account sends the string "#delicious hotpot restaurants nearby", the server can query the same group for a first link associated with "#delicious hotpot restaurants nearby". For instance, if the same group is a location-based group, and the first account is located in Beijing, the server can identify chat sessions with "#delicious hotpot restaurants nearby" that are located in Beijing as candidate sessions, and then query the candidate set located in Beijing to see if a first link associated with "#delicious hotpot restaurants nearby" exists. Optionally, the first account can enter the chat session corresponding to the first link belonging to the same group.
[0338] • The geographical location of the creator account of the candidate session is less than the distance threshold from the geographical location of the first account.
[0339] Geographic location information is typically represented by longitude and latitude coordinates. The distance threshold is a critical value used to determine whether the geographic distance between the creator account of a candidate session and the first account is less than this threshold.
[0340] For example, if the first account sends the string "#map navigation group chat", the server can identify chat sessions where the distance between the first account's geographical location and the creator's geographical location is less than a distance threshold, such as "50 kilometers". The server uses the first account's geographical location as the center and a radius of "50 kilometers" as the radius to identify chat sessions within this preset range that meet the condition as candidate sessions. Then, it searches for the first link corresponding to "#map navigation group chat" within this preset range of candidate sessions. Optionally, the first account can enter the chat session corresponding to the first link that meets the distance threshold.
[0341] It should be noted that the above methods for confirming candidate sessions are merely illustrative examples and do not constitute a limitation on the confirmation of candidate sessions. Those skilled in the art may consider that other methods for confirming candidate sessions that meet the conditions are also within the scope of protection of this application.
[0342] In this embodiment, a candidate set is determined by the first account, and candidate sessions are filtered by combining friend relationships, group relationships and geographical location restrictions. The candidate set is then queried to see if there is a first link bound to the first string, thus narrowing the search scope and improving the accuracy and efficiency of the query.
[0343] Figure 18 A flowchart illustrating a method for creating a chat session according to an exemplary embodiment of this application is shown. The method is jointly executed by a first client and a server, and includes at least one of the following steps:
[0344] Step 1: The first client receives the first message;
[0345] The first client to log in has the first account, and the first client to receive the first message sent by the first account in the current chat session.
[0346] Step 2: Use a symbolic trigger for detection;
[0347] Optionally, a symbolic trigger is set in the first client to detect the first message sent by the first account.
[0348] Step 3: Detect the first string in the first message;
[0349] Optionally, the symbol trigger detects the first message sent by the first account, and detects the first string in the first message.
[0350] Step 4: The server performs fuzzy matching;
[0351] In some embodiments, the server obtains the first message sent by the first account. If the server recognizes the presence of a first string in the first message and cannot find the first link bound to the first string, the server performs fuzzy matching on the first string based on a fuzzy matching algorithm.
[0352] Step 5: Return at least one candidate chat session to the first client;
[0353] Optionally, the server performs a fuzzy match on the first string and returns at least one chat session to the first client.
[0354] Step 6: Confirm the target chat session;
[0355] Optionally, the first client displays a selection list of at least one candidate chat session, and the first account selects one of the candidate chat sessions from the selection list as the target chat session.
[0356] Step 7: The server receives the confirmation message;
[0357] Optionally, the first account selects the target chat session through the first client, and the server receives confirmation information for the target chat session.
[0358] Step 8: Create the first chat session.
[0359] Optionally, the first client includes a temporary chat window component, and in response to a confirmation operation that at least one candidate chat session has not been selected, the first client creates a first chat session corresponding to a first string based on the temporary chat window component.
[0360] Figure 19 A flowchart illustrating a method for creating a chat session according to an exemplary embodiment of this application is shown. The method is jointly executed by a first client and a server, wherein the server includes a message backend and a relationship chain backend, and the method includes at least one of the following steps:
[0361] Step 1: The first account sends a message through the first client;
[0362] Optionally, after the first account enters the first chat session corresponding to the first tag as an anonymous account, it sends a message in the first chat session.
[0363] Step 2: The message backend receives the message;
[0364] Optionally, the first client sends the message sent by the first account in the first chat session to the message backend.
[0365] Step 3: The message backend retrieves anonymous identity information and other member information;
[0366] Optionally, the message backend retrieves the anonymous identity information of the first account and the information of other members in the first chat session from the relationship chain backend.
[0367] Step 4: The message backend populates the anonymous identity information into the message fields;
[0368] Step 5: The message backend returns the message to all member accounts in the first chat session.
[0369] The beneficial effects of this solution are:
[0370] 1) First string recognition mechanism and recommendation system: It can recognize the first specified symbol and the first group chat name entered by the user, trigger the creation and joining process of the first chat session corresponding to the first string, and can also perform fuzzy matching on the first string to recommend the user to join relevant candidate chat sessions.
[0371] 2) First chat session creation and joining mechanism: Users can immediately join the relevant chat session by clicking the first string in the message, providing an innovative user interface design for seamless social interaction and improving user engagement and ease of interaction.
[0372] 3) Floating chat group function: Allows users to float the first chat session on the screen, making it easy to quickly switch when replying to messages in the main message list.
[0373] 4) Seamless exit experience: After a user exits the first chat session, no trace is left in the first chat session. This design protects user privacy and improves the cleanliness and efficiency of the user interface through data processing and user interface update mechanisms.
[0374] Figure 20 This diagram illustrates a structural block diagram of a chat session creation apparatus according to an embodiment of this application. The apparatus has the functionality to implement the chat session creation method example described above; this functionality can be implemented in hardware or by hardware executing corresponding software. The apparatus can be the server described above, or it can be located within a server. Figure 20 As shown, the device 1600 may include: a display module 1610 and a receiving module 1620.
[0375] Display module 1610 is used to display the chat interface of the current chat session;
[0376] The receiving module 1620 is configured to receive a first message sent by the first account in the current chat session. The first message includes a first string, which includes a first designated symbol and a first group chat name. The first designated symbol is a predetermined character used to identify the group chat name located in the string.
[0377] Display module 1610 is configured to display a chat interface of a first chat session created based on the first string in response to a trigger operation on the first string.
[0378] In some embodiments, the display module 1610 further includes a creation submodule and a display submodule.
[0379] In an optional example, a submodule is created to create the first chat session based on the first string in response to a triggering operation on the first string and before a first chat session corresponding to the first string has been created.
[0380] The display submodule is used to display the chat interface of the newly created first chat session.
[0381] In an optional example, a display submodule is provided to display the chat interface of the created first chat session in response to a trigger operation on the first string and the creation of the first chat session corresponding to the first string.
[0382] In an optional example, a display submodule is provided to display the start symbol and the first group chat name as the group chat name of the first chat session.
[0383] In an optional example, a display submodule is used to display the start symbol, the first group chat name, and the end symbol as the group chat name of the first chat session.
[0384] In some embodiments, the creation submodule includes a display unit and a creation unit.
[0385] In an optional example, a display unit is configured to, in response to a triggering operation on the first string and before a first chat session corresponding to the first string has been created, display a selection list of at least one candidate chat session, wherein the similarity between the group chat name of the candidate chat session and the first group chat name meets a first condition.
[0386] A creation unit is configured to create the first chat session based on the first string in response to a confirmation operation that none of the at least one candidate chat session has been selected.
[0387] In an optional example, a display unit is configured to display the chat interface of the target chat session in response to a selection operation of the target chat session among the at least one candidate chat sessions.
[0388] In an optional example, a submodule is displayed to show entry identity selection information before entering the first chat session, the entry identity selection information being used to select a real account identity or an anonymous account identity;
[0389] The display submodule is used to respond to the selection operation of the anonymous account identity and enter the first chat session with the anonymous account identity.
[0390] In an optional example, the receiving module 1620 is further configured to receive a second message sent by the second account in the current chat session, the second message including a second string, the second string including a first designated symbol and a second group chat name, the first designated symbol being a predetermined character used to identify the group chat name in the string;
[0391] The display module 1610 is also configured to display a chat interface of a second chat session created based on the second string in response to a trigger operation on the second string.
[0392] In an optional example, a submodule is displayed to display a chat session list interface in response to a return operation for the first chat session, and the entry control of the first chat session is overlaid in a floating window in a local area of the chat session list interface.
[0393] The chat session list interface displays at least one list item for a chat session.
[0394] In an optional example, a display submodule is provided to display a chat interface for exiting the first chat session in response to a trigger action on the close button.
[0395] In an optional example, a display submodule is provided to redisplay the chat interface of the first chat session in response to a trigger operation on the area of the floating window other than the close button.
[0396] In an optional example, the first chat session is a temporary chat session, and the method further includes:
[0397] The temporary chat session will be automatically dissolved if the conditions for automatic dissolution are met.
[0398] The automatic disbandment conditions include at least one of the following:
[0399] Received the disbandment operation from the group owner in the first chat session;
[0400] The activity level of the first chat session is less than the first threshold;
[0401] Received the logout operation from the last user account in the first chat session;
[0402] The time elapsed after receiving the logout operation from the last user account in the first chat session reaches the first duration.
[0403] In some embodiments, the receiving module 1620 further includes a receiving submodule and a sending submodule.
[0404] In an optional example, a receiving submodule is configured to receive a first link, which is a link for accessing a first chat session created based on the first string;
[0405] The sending submodule is used to send a first access request to the server. The first access request is a request to access the first link in response to a triggering operation of the first string.
[0406] Figure 21This diagram illustrates a structural block diagram of a chat session creation apparatus according to an embodiment of this application. The apparatus has the functionality to implement the chat session creation method example described above; this functionality can be implemented in hardware or by hardware executing corresponding software. The apparatus can be the server described above, or it can be located within a server. Figure 21 As shown, the device 1700 may include: an acquisition module 1710, an identification module 1720, and a feedback module 1730.
[0407] The acquisition module 1710 is used to acquire the first message sent by the first client in the current chat session, wherein the first client is logged in with a first account;
[0408] The identification module 1720 is used to identify a first link bound to the first string when the first string is detected in the first message, and to return the first link to the first client. The first link is a link for accessing a first chat session created based on the first string.
[0409] Feedback module 1730 is used to provide feedback on the session display content of the first chat session to the first client upon receiving a first access request sent by the first client;
[0410] The first access request is a request to access the first link triggered by the first string, and the session display content is used for the first client to display the chat interface of the first chat session.
[0411] In some embodiments, the identification module 1720 further includes a return submodule.
[0412] In an optional example, a return submodule is configured to return the first link of the created first chat session to the first client if the first string is detected in the first message and a first link bound to the first string is found.
[0413] In some embodiments, the identification module 1720 further includes a generation submodule.
[0414] In an optional example, a submodule is generated to generate a first link for accessing the first chat session when a first string is detected in the first message and a first link bound to the first string cannot be found.
[0415] The return submodule is used to create a binding relationship between the first chat session and the first link, and return the first link to the first client.
[0416] In some embodiments, the generation submodule further includes a matching unit and a return unit.
[0417] In an optional example, the matching unit is used to obtain at least one candidate chat session based on a fuzzy matching algorithm when it is recognized that the first string exists in the first message and the first link bound to the first string cannot be found. The similarity between the group chat name of the candidate chat session and the first group chat name meets the first condition.
[0418] The return unit is used to return the candidate links of the at least one candidate chat session to the first client, wherein the candidate links are links for accessing the candidate chat sessions.
[0419] In an optional example, module 1710 is also used to obtain a second message sent by a second client, which is logged into a second account;
[0420] The identification module 1720 is further configured to, upon identifying the presence of a second string in the second message, determine a second link bound to the second string, and return the second link to the first client, wherein the second link is a link for accessing a second chat session created based on the second string;
[0421] The feedback module 1730 is also used to provide feedback to the first client on the session display content of the second chat session when it receives the second access request sent by the first client;
[0422] The second access request is a request to access the second link triggered by the second string, and the session display content is used for the first client to display the chat interface of the second chat session.
[0423] In some embodiments, the apparatus 1700 further includes a determination module and a query module.
[0424] In an optional example, a determining module is configured to determine a candidate set based on the first account, the candidate set including at least one candidate session;
[0425] The query module is used to query whether a first link bound to the first string exists in the candidate set;
[0426] The candidate session satisfies at least one of the following: the member account in the candidate session is a friend of the first account; the candidate session and the first account belong to the same group; the geographical location of the creator account of the candidate session is less than a distance threshold from the geographical location of the first account.
[0427] In an optional example, the first chat session is a temporary chat session, and the method further includes:
[0428] The temporary chat session will be dissolved if the conditions for automatic dissolution are met.
[0429] The automatic disbandment conditions include at least one of the following:
[0430] Received the disbandment operation from the group owner in the first chat session;
[0431] The activity level of the first chat session is less than the first threshold;
[0432] Received the logout operation from the last user account in the first chat session;
[0433] The time elapsed after receiving the logout operation from the last user account in the first chat session reaches the first duration.
[0434] In an optional example, a determining module is configured to determine the group owner of the first chat session based on the degree of contribution of the plurality of member accounts to the first chat session, wherein the degree of contribution includes at least one of the following: the speaking frequency of the member account, the social activity of the member account, and the quality of information provided by the member account.
[0435] It should be noted that the specific limitations of the embodiments of the one or more chat session creation devices provided above can be found in the limitations of the chat session creation method above, and will not be repeated here. Each module of the above device can be implemented entirely or partially by software, hardware, or a combination thereof. Each module can be embedded in the processor of the computer device in hardware form or independent of the processor, or it can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0436] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0437] This application also provides a computer device, which includes a processor and a memory. The memory stores at least one computer program, which is loaded and executed by the processor to implement the chat session creation method provided in the above-described method embodiments.
[0438] Figure 22This illustration shows a structural block diagram of a computer device 1800 provided in an exemplary embodiment of this application. The computer device 1800 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), or MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 1800 may also be referred to as a user device, portable terminal, or other names. Typically, the computer device 1800 includes a processor 1801 and a memory 1802.
[0439] Processor 1801 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1801 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1801 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1801 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1801 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0440] The memory 1802 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1802 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1802 is used to store at least one instruction, which is executed by the processor 1801 to implement the gift-giving method based on a live-streaming room provided in this embodiment.
[0441] In some embodiments, the computer device 1800 may also optionally include a peripheral device interface 1803 and at least one peripheral device. The processor 1801, memory 1802, and peripheral device interface 1803 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1803 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1804, a touch display screen 1805, a camera assembly 1806, an audio circuit 1807, and a power supply 1808.
[0442] Peripheral device interface 1803 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1801 and memory 1802. In some embodiments, processor 1801, memory 1802 and peripheral device interface 1803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1801, memory 1802 and peripheral device interface 1803 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0443] The radio frequency (RF) circuit 1804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1804 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1804 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or Wi-Fi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1804 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0444] The touch display screen 1805 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1805 also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to the processor 1801 for processing. The touch display screen 1805 is used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one touch display screen 1805, located on the front panel of the computer device 1800; in other embodiments, there may be at least two touch display screens, respectively located on different surfaces of the computer device 1800 or in a folded design; in some embodiments, the touch display screen 1805 may be a flexible display screen, located on a curved or folded surface of the computer device 1800. Furthermore, the touch display screen 1805 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The touch display screen 1805 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0445] The camera assembly 1806 is used to acquire images or videos. Optionally, the camera assembly 1806 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is used for video calls or selfies, and the rear-facing camera is used for taking photos or videos. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, and a wide-angle camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, and panoramic shooting and VR shooting by fusion of the main camera and the wide-angle camera. In some embodiments, the camera assembly 1806 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash is a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0446] Audio circuitry 1807 provides an audio interface between the user and computer device 1800. Audio circuitry 1807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to processor 1801 for processing, or input to radio frequency circuitry 1804 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different location within computer device 1800. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from processor 1801 or radio frequency circuitry 1804 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, audio circuitry 1807 may also include a headphone jack.
[0447] Power supply 1808 is used to supply power to the various components in computer device 1800. Power supply 1808 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1808 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, and a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0448] In some embodiments, the computer device 1800 further includes one or more sensors 1809. The one or more sensors 1809 include, but are not limited to, an accelerometer 1810, a gyroscope 1811, a pressure sensor 1812, an optical sensor 1813, and a proximity sensor 1814.
[0449] Accelerometer 1810 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established by computer device 1800. For example, accelerometer 1810 can be used to detect the components of gravitational acceleration on the three coordinate axes. Processor 1801 can control touch screen 1805 to display the user interface in landscape or portrait view based on the gravitational acceleration signal collected by accelerometer 1810. Accelerometer 1810 can also be used for games or to collect user motion data. Gyroscope 1811 can detect the orientation and rotation angle of computer device 1800. Gyroscope 1811 can work in conjunction with accelerometer 1810 to collect 3D movements of the user on computer device 1800. Based on the data collected by gyroscope 1811, processor 1801 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0450] The pressure sensor 1812 can be disposed on the side bezel of the computer device 1800 and / or on the underside of the touchscreen display 1805. When the pressure sensor 1812 is disposed on the side bezel of the computer device 1800, it can detect the user's grip signal on the computer device 1800 and perform left / right hand recognition or quick operation based on the grip signal. When the pressure sensor 1812 is disposed on the underside of the touchscreen display 1805, it can control operable controls on the UI interface based on the user's pressure operation on the touchscreen display 1805. Operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0451] An optical sensor 1813 is used to collect ambient light intensity. In one embodiment, the processor 1801 can control the display brightness of the touch screen 1805 based on the ambient light intensity collected by the optical sensor 1813. Specifically, when the ambient light intensity is high, the display brightness of the touch screen 1805 is increased; when the ambient light intensity is low, the display brightness of the touch screen 1805 is decreased. In another embodiment, the processor 1801 can also dynamically adjust the shooting parameters of the camera assembly 1806 based on the ambient light intensity collected by the optical sensor 1813.
[0452] The proximity sensor 1814, also known as a distance sensor, is typically located on the front of the computer device 1800. The proximity sensor 1814 is used to detect the distance between the user and the front of the computer device 1800. In one embodiment, when the proximity sensor 1814 detects that the distance between the user and the front of the computer device 1800 is gradually decreasing, the processor 1801 controls the touch display screen 1805 to switch from a screen-on state to a screen-off state; when the proximity sensor 1814 detects that the distance between the user and the front of the computer device 1800 is gradually increasing, the processor 1801 controls the touch display screen 1805 to switch from a screen-off state to a screen-on state.
[0453] Those skilled in the art will understand that the above structure does not constitute a limitation on the computer device 1800, and may include more or fewer components than shown, or combine certain components, or employ different component arrangements.
[0454] This application also provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to implement the chat session creation method provided in the above-described method embodiments.
[0455] This application also provides a computer program product, which includes at least one computer program stored in a computer-readable storage medium; the at least one computer program is read from and executed by a processor of a computer device from the computer-readable storage medium, causing the computer device to perform the chat session creation method provided in the above-described method embodiments.
[0456] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.
[0457] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0458] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent switching, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for creating a chat session, characterized in that, The method is executed by a first client that supports instant messaging, the first client being logged into a first account, the method comprising: The chat interface displays the current chat session; Receive a first message sent by the first account in the current chat session. The first message includes a first string, which includes a first designated symbol and a first group chat name. The first designated symbol is a predetermined character used to identify the group chat name located in the string. In response to a trigger operation on the first string, the chat interface of the first chat session created based on the first string is displayed.
2. The method according to claim 1, characterized in that, The step of displaying a chat interface for a first chat session created based on the first string in response to a trigger operation on the first string includes: In response to a trigger operation on the first string and before a first chat session corresponding to the first string has been created, the first chat session is created based on the first string; The chat interface of the newly created first chat session is displayed.
3. The method according to claim 1, characterized in that, The step of displaying a chat interface for a first chat session created based on the first string in response to a trigger operation on the first string includes: In response to a trigger operation on the first string and the first chat session corresponding to the first string has been created, the chat interface of the created first chat session is displayed.
4. The method according to any one of claims 1 to 3, characterized in that, The first designated symbol includes a start symbol; the method further includes: The starting symbol and the first group chat name are displayed as the group chat name of the first chat session.
5. The method according to any one of claims 1 to 3, characterized in that, The first designated symbol includes a start symbol and a stop symbol; the method further includes: The start symbol, the first group chat name, and the end symbol are displayed as the group chat name of the first chat session.
6. The method according to claim 2, characterized in that, The step of creating the first chat session based on the first string in response to a trigger operation on the first string and before a first chat session corresponding to the first string has been created includes: In response to a trigger operation on the first string and the first chat session corresponding to the first string has not yet been created, a selection list of at least one candidate chat session is displayed, wherein the similarity between the group chat name of the candidate chat session and the first group chat name meets a first condition. In response to a confirmation operation that none of the at least one candidate chat session has been selected, the first chat session is created based on the first string.
7. The method according to claim 6, characterized in that, The method further includes: In response to the selection operation of the target chat session among the at least one candidate chat sessions, the chat interface of the target chat session is displayed.
8. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Before entering the first chat session, the group entry identity selection information is displayed, which is used to select real account identity or anonymous account identity. In response to the selection of the anonymous account identity, the user enters the first chat session using the anonymous account identity.
9. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Receive a second message sent by a second account in the current chat session. The second message includes a second string, which includes a first designated symbol and a second group chat name. The first designated symbol is a predetermined character used to identify the group chat name located in the string. In response to a triggering operation on the second string, the chat interface of the second chat session created based on the second string is displayed.
10. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Receive a third message sent by the first account in the current chat session. The third message includes a third string, which includes a first specified symbol, a third group chat name, a second specified symbol, and a preset account. The second specified symbol is used to specify that the preset account joins the third chat session. The third chat session is a chat session created based on the third string. The chat interface displays the chat interface of the preset account joining the third chat session.
11. The method according to any one of claims 1 to 3, characterized in that, The method further includes: In response to a return operation for the first chat session, a chat session list interface is displayed, and the entry control of the first chat session is overlaid in a floating window in a local area of the chat session list interface. The chat session list interface displays at least one list item for a chat session.
12. The method according to claim 11, characterized in that, The floating window includes a close button; the method further includes: In response to the triggering of the close button, the chat interface for exiting the first chat session is displayed.
13. The method according to claim 11, characterized in that, The method further includes: In response to a trigger operation targeting the area on the floating window other than the close button, the chat interface of the first chat session is redisplayed.
14. The method according to any one of claims 1 to 13, characterized in that, The first chat session is a temporary chat session, and the method further includes: The temporary chat session will be automatically dissolved if the conditions for automatic dissolution are met. The automatic disbandment conditions include at least one of the following: Received the disbandment operation from the group owner in the first chat session; The activity level of the first chat session is less than the first threshold; Received the logout operation from the last user account in the first chat session; The time elapsed after receiving the logout operation from the last user account in the first chat session reaches the first duration.
15. The method according to any one of claims 1 to 14, characterized in that, The step of receiving the first message sent by the first account in the current chat session further includes: Receive a first link, which is a link for accessing a first chat session created based on the first string; Send a first access request to the server, the first access request being a request to access the first link in response to a triggering operation of the first string.
16. A method for creating a chat session, characterized in that, The method is executed by the server, and the method includes: Get the first message sent by the first client in the current chat session. The first client is logged in with a first account. If a first string is detected in the first message, a first link bound to the first string is determined, and the first link is returned to the first client. The first link is a link for accessing a first chat session created based on the first string. Upon receiving the first access request sent by the first client, the system will send the session display content of the first chat session back to the first client. The first access request is a request to access the first link triggered by the first string, and the session display content is used for the first client to display the chat interface of the first chat session.
17. The method according to claim 16, characterized in that, The step of determining the first link bound to the first string when the first string is detected in the first message, and returning the first link to the first client, includes: If the presence of a first string in the first message is detected and a first link bound to the first string is found, the first link of the created first chat session is returned to the first client.
18. The method according to claim 16, characterized in that, The step of determining the first link bound to the first string when the first string is detected in the first message, and returning the first link to the first client, includes: If a first string is detected in the first message and a first link bound to the first string cannot be found, a first link for accessing the first chat session is generated. Create a binding relationship between the first chat session and the first link, and return the first link to the first client.
19. The method according to claim 18, characterized in that, The step of generating a first link for accessing the first chat session when the first string is detected in the first message and no first link bound to the first string can be found includes: If the first string is detected in the first message and the first link bound to the first string cannot be found, at least one candidate chat session is obtained based on the fuzzy matching algorithm, and the similarity between the group chat name of the candidate chat session and the first group chat name meets the first condition. The candidate links of the at least one candidate chat session are returned to the first client, and the candidate links are links for accessing the candidate chat sessions.
20. The method according to any one of claims 16 to 19, characterized in that, The method further includes: Obtain the second message sent by the second client, which is logged into a second account; If a second string is detected in the second message, a second link bound to the second string is determined, and the second link is returned to the first client. The second link is a link for accessing a second chat session created based on the second string. Upon receiving a second access request from the first client, the system sends the session display content of the second chat session back to the first client. The second access request is a request to access the second link triggered by the second string, and the session display content is used for the first client to display the chat interface of the second chat session.
21. The method according to any one of claims 16 to 19, characterized in that, The method further includes: A candidate set is determined based on the first account, and the candidate set includes at least one candidate session; Query the candidate set to see if there exists a first link bound to the first string; The candidate session satisfies at least one of the following: the member account in the candidate session is a friend of the first account; the candidate session and the first account belong to the same group; the geographical location of the creator account of the candidate session is less than a distance threshold from the geographical location of the first account.
22. A device for creating a chat session, characterized in that, The device includes: The display module is used to display the chat interface of the current chat session; The receiving module is configured to receive a first message sent by the first account in the current chat session. The first message includes a first string, which includes a first designated symbol and a first group chat name. The first designated symbol is a predetermined character used to identify the group chat name located in the string. The display module is used to display the chat interface of the first chat session created based on the first string in response to a trigger operation on the first string.
23. A device for creating a chat session, characterized in that, The device includes: The acquisition module is used to acquire the first message sent by the first client in the current chat session. The first client is logged in with a first account. The identification module is used to identify a first link bound to the first string when the first string is detected in the first message, and to return the first link to the first client. The first link is a link for accessing a first chat session created based on the first string. The feedback module is used to provide feedback on the session display content of the first chat session to the first client upon receiving the first access request sent by the first client. The first access request is a request to access the first link triggered by the first string, and the session display content is used for the first client to display the chat interface of the first chat session.
24. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the chat session creation method as described in any one of claims 1 to 15, or the chat session creation method as described in any one of claims 16 to 21.
25. A computer storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the chat session creation method as described in any one of claims 1 to 15, or the chat session creation method as described in any one of claims 16 to 21.