Chat channel control method and device and electronic equipment
By receiving chat information in the game system and setting up chat channels dynamically, the inefficiency problem of players frequently switching chat channels to find information is solved, and a more efficient chat information search and usage experience is achieved.
Patent Information
- Application Number
- CN202411756653.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-05-06
AI Technical Summary
In multiplayer games, players need to frequently switch chat channels to find important chat information, resulting in inefficiency.
By receiving chat information and determining whether the first channel has space, if there is, the channel of the chat information is set to the first channel; if there is no, the channel is set to the third channel. When the player responds to the chat information, set it to the latest first channel and improve search efficiency by displaying the first channel and the third channel separately.
It improves the efficiency of players in finding chat information, reduces misoperation, and improves the experience of players in using chat functions.
Smart Images

Figure CN119925947A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a chat channel control method, device and electronic equipment. Background Art
[0002] In order to promote communication between players, a chat function is set up in the game system. A chat window is usually provided in the interface of the game system, and the chat window includes an input box and a display box; the display box displays the chat content of each chat channel in which the player participates; the player can switch the chat channel by triggering a specific control, and then enter the chat content through the input box, and send the chat content to the currently switched chat channel.
[0003] In the related art, whether the player actively initiates a chat or passively initiates a chat, chat channels will be established in the order of the time when the chat is initiated. When a player participates in multiple chat channels, it is necessary to frequently trigger controls to switch chat channels, resulting in low efficiency for players to switch and search for chat information. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a chat channel control method, device and electronic device to improve the efficiency of players in searching for chat information and enhance the player's experience in using the chat function.
[0005] In a first aspect, an embodiment of the present invention provides a method for controlling a chat channel, the method comprising: receiving a first chat message; determining the channel number of a first channel in a chat interface; in response to the channel number of the first channel being lower than a first quantity threshold, setting the second channel corresponding to the first chat message as the first channel, and displaying the first chat message; in response to the channel number of the first channel being not lower than the first quantity threshold, setting the chat channel corresponding to the first chat message as the third channel in the chat interface, and displaying the first chat message; in response to an input operation for a target chat channel, displaying the second chat message in the target chat channel, and setting the target chat channel to the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
[0006] In a second aspect, an embodiment of the present invention further provides a control device for a chat channel, the device comprising: a chat information receiving module for receiving a first chat message; a first channel quantity determination module for determining the channel quantity of a first channel in a chat interface; a first channel setting module for setting a second channel corresponding to the first chat message as the first channel in response to the channel quantity of the first channel being lower than a first quantity threshold, and displaying the first chat message; a third channel setting module for setting a chat channel corresponding to the first chat message as the third channel in the chat interface in response to the channel quantity of the first channel being not lower than the first quantity threshold, and displaying the first chat message; a target chat channel setting module for displaying the second chat message in the target chat channel in response to an input operation for a target chat channel, and setting the target chat channel to the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
[0007] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above-mentioned chat channel control method.
[0008] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned chat channel control method.
[0009] The embodiments of the present invention bring the following beneficial effects:
[0010] The above-mentioned chat channel control method, device and electronic device receive a first chat message; determine the channel number of a first channel in a chat interface; in response to the channel number of the first channel being lower than a first number threshold, set the second channel corresponding to the first chat message as the first channel, and display the first chat message; in response to the channel number of the first channel being not lower than the first number threshold, set the chat channel corresponding to the first chat message as the third channel in the chat interface, and display the first chat message; in response to an input operation for a target chat channel, display the second chat message in the target chat channel, and set the target chat channel to the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
[0011] In this method, when a player receives a chat message, it is determined whether there is a vacant seat on the first channel. If there is a vacant seat, the channel corresponding to the chat message is set to the first channel; if there is no vacant seat, the channel corresponding to the chat message is set to the third channel. When the player replies to the chat message, the channel corresponding to the chat message is set to the latest first channel. By displaying the first channel and the third channel separately, the efficiency of players in finding chat messages can be improved, and the player's experience of using the chat function is enhanced.
[0012] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0013] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0015] Figure 1 A schematic diagram of a channel switching sequence provided in the related art;
[0016] Figure 2 A flowchart of a chat channel control method provided by an embodiment of the present invention;
[0017] Figure 3 A schematic diagram of setting a target chat channel as the latest first channel provided by an embodiment of the present invention;
[0018] Figure 4 A schematic diagram of a channel identification in different display states provided by an embodiment of the present invention;
[0019] Figure 5 A schematic diagram of a chat window provided by an embodiment of the present invention;
[0020] Figure 6 A schematic diagram of a player's current channel and the channel switching sequence provided in the related art;
[0021] Figure 7 A schematic diagram of replacing a private chat channel provided in the related art;
[0022] Figure 8 A schematic diagram of adding a target channel to a first channel provided by an embodiment of the present invention;
[0023] Fig. 9 A schematic diagram of a first channel and a third channel provided by an embodiment of the present invention;
[0024] Fig.10 A schematic diagram of setting a third channel provided by an embodiment of the present invention;
[0025] Fig.11 A schematic diagram of a chat channel control device provided by an embodiment of the present invention;
[0026] Fig.12 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0028] In a multi-player game, a chat function is provided in the game system to facilitate communication between players. The chat function usually has multiple chat channels. Common channels in the game system include but are not limited to: world channel, team channel, competition channel, custom room channel, team channel, spectator channel, etc. Different games usually have different channel definitions.
[0029] A chat window is usually provided in the interface of the game system, and the chat window includes an input box and a display box. When the player enters the chat content in the input box and performs the chat sending operation, after sending the chat content to the corresponding chat channel, only the players who are in the chat channel at the same time can receive the message containing the chat content. The display box displays the chat content of each chat channel in which the player participates; each chat channel corresponds to a display window, and different chat channels present different content in the display window. For example, the player can configure the filtering rules of each chat channel according to the game system settings, such as the player can choose to display speech, emoticons, guild notices and other content in the chat channel; when the player sends the chat content in the game, the game server filters the chat content sent by the player according to the chat channel filtering rules pre-configured by each player, and then broadcasts it to the terminals of other players who have joined the chat channel, and displays it in the chat window on the player's terminal screen.
[0030] In the related art, no matter the player actively initiates the chat or passively initiates the chat, chat channels will be established one by one in the display box according to the time sequence of initiating the chat. The player can browse the messages of different chat channels through the display box. However, the messages are usually updated quickly, and a chat channel may also contain multiple messages. When the player searches for important chat content among numerous messages, the efficiency is low.
[0031] If the player wants to switch chat channels in the game, he can trigger a specific control such as the 'TAB' button, and then enter the chat content through the input box to send the chat content to the currently switched chat channel. The switching logic is sequential switching, such as Figure 1 In the chat box, the chat channels to which the player account belongs include the match channel, team channel, squad channel, and private chat channel. If the player needs to switch the chat channel, each time the 'TAB' button is pressed, the chat channel is switched. The channel displayed on the left side of the input box will switch to the name of the chat object, such as the match, team, squad, and private chat. Different chat channels can be displayed in different color formats.
[0032] Another display method is that the interface not only displays the messages received by the player account in the same message list, but also displays the message list of the chat channels containing each channel type, which can be understood as filtering messages in the same channel type. The switching interaction method corresponding to this type of display method is also that the player triggers a specific control to switch the chat channel, and then enters the chat content in the input box to send the chat content to the currently switched chat channel.
[0033] In the above switching interaction method, a specific control is set for quickly switching chat channels; when switching to a private chat channel, the private chat objects in the chat channel list are switched in sequence according to the switching order until the private chat object or chat channel to which the player wants to send chat content is switched, so that the player does not need to control the finger to operate the mouse to select the private chat object or chat channel and send the chat content.
[0034] However, when switching channels, the chat channel to be switched may be simplified and hidden, and the player cannot clearly know how many chat channels are currently available for switching; if all chat channels are displayed, when the player participates in multiple chat channels, in the game, all chat channels displayed on the screen will occupy the screen space, block the field of vision, and have a negative impact on the game. In addition, when switching chat channels, the controls need to be triggered frequently. If the desired chat channel is accidentally missed, it is necessary to continue switching, which is cumbersome.
[0035] Based on this, a chat channel control method, device and electronic device provided by the embodiments of the present invention can be applied to the chat function of a game system.
[0036] The chat channel control method in one embodiment of the present disclosure can be run on a local terminal device or a server. When the chat channel control method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0037] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the control method of the chat channel are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0038] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0039] To facilitate understanding of this embodiment, a chat channel control method disclosed in an embodiment of the present invention is first described in detail. Figure 2 As shown, the chat channel control method includes the following steps:
[0040] Step S202, receiving a first chat message;
[0041] The first chat information may be information of a private chat channel in the chat channel.
[0042] Specifically, the game server sends a first chat message to the terminal device, and the first chat message is sent to the game server by other terminal devices; the terminal device receives the first chat message and displays the first chat message in a channel display window. For example, the first chat message is displayed in a channel display window of a chat channel; the initial end of the channel display window of the chat channel displays the chat channel information in a display format corresponding to the chat channel.
[0043] Step S204, determining the channel number of the first channel in the chat interface;
[0044] The chat interface usually includes an input box, a display box, and a channel identifier of a chat channel; different chat channels usually correspond to different display formats.
[0045] The first channel usually indicates the chat channel that the player focuses on, which can be triggered by a first chat event, and then the first channel is generated and displayed. If there is no first chat event, the first channel remains empty and resides in the game system. The preset number of first channels can be set according to game needs, such as one or more.
[0046] Specifically, the terminal device determines the number of channels of the first channel generated and displayed in the chat interface triggered by the chat event. For example, if two channel identifiers of the first channel are displayed in the chat interface, the number of channels of the first channel is two.
[0047] Step S206, in response to the channel quantity of the first channel being lower than the first quantity threshold, setting the second channel corresponding to the first chat message as the first channel, and displaying the first chat message;
[0048] The first quantity threshold usually refers to a preset maximum quantity of the first channels, such as setting the first quantity threshold to three. The second channel may be any chat channel other than the first channel.
[0049] Specifically, if the terminal device determines that the channel quantity of the first channel is lower than the first quantity threshold, the second channel corresponding to the first chat information is set as the first channel, and the first chat information is displayed in the channel display window in the display format of the first channel.
[0050] For example, assuming that the current number of channels of the first channel is two, which is lower than the first number threshold, the second channel corresponding to the first chat message in the chat channel is set as the first channel, and the first chat message is displayed in the display format of the first channel. For example, the first chat message is displayed in the channel display window of the second channel instead of in the channel display window of the first channel.
[0051] Step S208, in response to the channel quantity of the first channel being not less than the first quantity threshold, setting the chat channel corresponding to the first chat message as the third channel in the chat interface, and displaying the first chat message;
[0052] The third channel usually indicates a chat channel that players pay less attention to. It can be triggered by a second chat event, and then the third channel is generated and displayed. If there is no second trigger event, the third channel remains empty and resides in the game system. The preset number of third channels can be set according to game needs, such as one or more.
[0053] Specifically, if the terminal device determines that the number of channels of the first channel is not less than the first number threshold, for example, the current number of channels of the first channel is three, which is equal to the first number threshold, then the chat channel corresponding to the first chat message is set to the third channel, and the first chat message is displayed in the channel display window of the first channel.
[0054] Step S210, in response to an input operation on a target chat channel, display the second chat information in the target chat channel, and set the target chat channel as the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
[0055] Specifically, if the player selects the target chat channel and performs the input operation of the second chat content in the input box of the chat interface, the terminal device sends the second chat content to the game server, and the game server broadcasts the second chat information. Then, the second chat information is displayed in the channel display window of the target chat channel.
[0056] Furthermore, if the target chat channel is the first channel in the chat interface, then the target chat channel is set as the latest in the first channel; if the target chat channel is the third channel in the chat interface, then the target chat channel is set as the latest in the first channel, and at the same time, the oldest first channel can be set as the third channel.
[0057] In the above method, the first channel and the third channel are displayed separately, which improves the efficiency of players in finding important private chats. By players actively initiating chats, the chat channels that players are most concerned about are determined, and the order of the first channel and the third channel is adjusted respectively.
[0058] The above-mentioned chat channel control method receives a first chat message; determines the channel number of a first channel in a chat interface; in response to the channel number of the first channel being lower than a first number threshold, sets the second channel corresponding to the first chat message as the first channel, and displays the first chat message; in response to the channel number of the first channel being not lower than the first number threshold, sets the chat channel corresponding to the first chat message as the third channel in the chat interface, and displays the first chat message; in response to an input operation for a target chat channel, displays the second chat message in the target chat channel, and sets the target chat channel to the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
[0059] In this method, when a player receives a chat message, it is determined whether there is a vacant seat on the first channel. If there is a vacant seat, the channel corresponding to the chat message is set to the first channel; if there is no vacant seat, the channel corresponding to the chat message is set to the third channel. When the player replies to the chat message, the channel corresponding to the chat message is set to the latest first channel. By displaying the first channel and the third channel separately, the efficiency of players in finding chat messages can be improved, and the player's experience of using the chat function is enhanced.
[0060] The following embodiment provides a specific implementation method for setting the target chat channel as the latest first channel in the chat interface.
[0061] In response to the target chat channel being the third channel, the target chat channel is set to the newest first channel in the chat interface, and the oldest first channel in the chat interface is set to the third channel.
[0062] like Figure 3 In the example, the target chat channel is the third channel, so the third channel is set to the latest first channel 1 in the chat interface, such as Figure 3 In the third channel, the second chat message is displayed, and the third channel is set to the latest first channel 1; and the oldest first channel in the chat interface is set to the third channel, such as Figure 3 After the third channel is set to the first channel 1, the first channel in the original first channel 1 is set to the first channel 2, the first channel in the original first channel 2 is set to the first channel 3, and the first channel in the original first channel 3 is set to the third channel.
[0063] Further, in response to the number of channels of the third channel being lower than the second number threshold, the oldest first channel in the chat interface is set as the third channel; in response to the number of channels of the third channel being not lower than the second number threshold, the oldest third channel is deleted and the oldest first channel in the chat interface is set as the third channel.
[0064] The second quantity threshold usually refers to a preset maximum quantity of the third channels, such as setting the first quantity threshold to two.
[0065] In one example, the number of channels of the third channel displayed in the chat interface is lower than the second number threshold preset in the game, so the oldest first channel in the chat interface is set as the third channel. Figure 3 In the example, the first channel in the original first channel 3 is set as the third channel.
[0066] In another example, the number of channels of the third channel displayed in the chat interface is not less than a second number threshold pre-set in the game. Assuming that the number of channels of the third channel is two, the oldest third channel 2 is deleted, and then the oldest first channel 3 in the chat interface is set to the third channel 2.
[0067] In the above manner, when the sequence of the third channel is changed from old to new, the principle of first in first out is followed.
[0068] Further, it is determined whether the oldest third channel is the current channel switched to; if the oldest third channel is not the current channel, the oldest third channel is deleted; if the oldest third channel is the current channel, the oldest third channel is retained.
[0069] The current channel usually refers to the chat channel currently selected after the player performs a chat channel switching operation.
[0070] That is to say, the terminal device needs to determine whether the oldest third channel is the current channel switched to by the player. If the oldest third channel is not the current channel, the oldest third channel can be deleted; if the oldest third channel is the current channel, the oldest third channel will be retained in the chat interface.
[0071] In one embodiment, the following embodiment provides a specific implementation method for displaying the first chat information.
[0072] Switch the current chat window in the chat interface to the chat window of the second channel; wherein the chat window of the second channel displays the channel logo of the second channel; and display the first chat information in the chat window of the second channel.
[0073] The chat window is usually used to display a specified chat channel. The channel identifier of the specified chat channel and the chat information corresponding to the chat channel can be displayed in the chat window.
[0074] The channel identifier is usually displayed in a display format corresponding to the chat channel, and may be the name of the chat channel, the name of the chat partner, or a symbolic identifier, such as a circle, a diamond, or the like.
[0075] Specifically, the terminal device switches the current chat window in the chat interface and updates the chat interface to the chat window of the second channel. For example, in the chat window of the second channel in the chat interface, the channel logo of the second channel is displayed in a display format corresponding to the second channel, such as displaying "private chat" in a pink format, and the first chat information is displayed in the chat window of the second channel.
[0076] In a specific implementation, in response to receiving a chat message from the fourth channel set as the first channel, the new and old order of the fourth channel in the first channel is maintained; in response to sending a chat message to the fourth channel, the fourth channel is set as the latest first channel.
[0077] The fourth channel may be a private chat channel set as the first channel.
[0078] For example, if the game server broadcasts on the fourth channel and the terminal device receives chat information from the fourth channel which is set as the first channel, the position of the fourth channel in the first channel will not be changed, and the original new and old order of the fourth channel in the first channel will be maintained; if the player performs input operations in the chat interface and controls the terminal device to send chat information to the fourth channel which is set as the first channel, the position of the fourth channel in the first channel will be changed, and the fourth channel will be set as the latest first channel.
[0079] In the above method, when the order of the first channel is changed, the principle is that the channel where the player actively initiates the chat is the latest channel.
[0080] In a specific implementation, among the first channels, the time from the last chat message sent to the newest first channel is the shortest from the current time; and the time from the last chat message sent to the oldest first channel is the longest from the current time.
[0081] For example, three first channels are set, and the player controls the terminal device to send a chat message to the newest first channel among the three first channels, and the time when the last chat message was sent is the shortest from the current time; the player controls the terminal device to send a chat message to the oldest first channel among the three first channels, and the time when the last chat message was sent is the longest from the current time.
[0082] The above-mentioned first channel and third channel are both private chat channels in the chat channel; the chat channel also includes a public channel; the public channel, the first channel and the third channel are arranged in sequence.
[0083] The public channel is usually a world channel, a trading channel, a same-city channel, a battle information channel, etc. preset in the game system.
[0084] In a specific implementation, in response to a channel switching operation, the chat channel is switched according to the arrangement order, and the chat window and chat information of the current channel switched to are displayed.
[0085] The above-mentioned channel switching operation is usually a trigger operation acting on a designated control, for example, a click operation is performed on the first designated key of the keyboard to switch the selected chat channel.
[0086] For example, when the player performs a channel switching operation, after the terminal receives the channel switching instruction, the chat channel is switched in the order of the chat channels; for example, the chat channels are switched in the order of public channel 1, public channel 2, first channel 1, first channel 2, first channel 3, third channel 1, and third channel 2. In addition, the terminal device displays the chat window of the current channel and all chat information of the current channel in the chat interface according to the current channel switched to by the player.
[0087] Furthermore, the channel identifiers of the chat channels are displayed in the arrangement order of the chat channels; in response to the channel switching operation, the chat channels are switched in the arrangement order, and the display status of the channel identifiers is updated; wherein, the channel identifier of the current channel switched to is displayed in a first display status, and the channel identifiers of chat channels other than the current channel are displayed in a second display status; the second display status is different from the first display status.
[0088] The channel logos of chat channels of different channel types are usually displayed in different display formats, for example, the world channel is a diamond with a blue fill format, the trade channel is a diamond with an orange fill format, the first channel is a diamond with a red fill format, and the third channel is a diamond with a pink fill format.
[0089] In the chat interface, the channel identifiers of the chat channels are arranged and displayed in sequence according to the arrangement order of the chat channels, such as arranging and displaying the blue diamond, orange diamond, red diamond and pink diamond in sequence in the graphical user interface. In one example, the channel identifiers of the chat channels are arranged and displayed in sequence from left to right or from top to bottom according to the switching order, and the channel identifiers of the chat channels can also be arranged and displayed in other directional sequences.
[0090] The first display state may be edge highlighting of the channel logo, such as white edge highlighting, and the second display state may be a channel logo without edge highlighting, thereby distinguishing the second display state from the first display state. The first display state and the second display state are not specifically limited, but the first display state and the second display state are different display states.
[0091] When the player performs a channel switching operation, after the terminal receives the channel switching instruction, the chat channel is switched according to the arrangement order of the chat channels, and the display state of the channel identifier is updated. For example, if the player switches the current channel from public channel 2 to first channel 1 by performing a channel switching operation, the channel identifier of first channel 1 is displayed in the first display state, and the channel identifier of public channel 2 is displayed in the second display state.
[0092] In the above method, the channel identifiers of the current channel and the non-current channel are displayed in different display states, so that the player can clearly identify the status of the current chat channel.
[0093] The channel identifier of the current channel is displayed in a first display state; the channel identifier of the next channel of the current channel is displayed in a second display state, and the next channel of the current channel is determined based on the arrangement order.
[0094] Since the channel identifiers of the chat channels are arranged in sequence, each time a channel switching operation is performed, the next channel of the current channel is used as the new current channel; if the current channel is the last chat channel, the first channel in the chat channel is used as the new current channel, and the cycle repeats.
[0095] Further, in response to a channel switching operation, the channel identifier of the current channel is controlled to switch from a first display state to a second display state; the next channel of the current channel is switched to the updated current channel, and the channel identifier of the updated current channel is controlled to switch from the second display state to the first display state.
[0096] like Figure 4 In the example shown in (a), the channel identifiers of six chat channels are displayed on the chat interface, wherein the sixth chat channel is the current third channel, and the third channel is displayed in the first display state, such as Figure 4 The channel logo of the sixth chat channel in (a) is displayed as a black outline. When the player performs a channel switching operation, the terminal device switches the next chat channel of the third channel to the current channel according to the switching sequence. Figure 4 In (a), the channel logo of the first chat channel is displayed without a black stroke.
[0097] Then, the channel identifier of the third channel is controlled to switch from the first display state to the second display state, such as Figure 4 The channel logo of the sixth chat channel in (b) is displayed without a black border, and the channel logo of the next chat channel of the third channel is controlled to switch from the second display state to the first display state, such as Figure 4 In (b), the channel logo of the first chat channel is displayed with a black outline.
[0098] In a specific implementation, the chat channel to which the game account belongs and the switching order of the chat channels are obtained.
[0099] The game system usually includes multiple preset chat channels, and the chat channel to which the above-mentioned game account belongs can be at least part of the multiple preset chat channels.
[0100] The above-mentioned chat channels usually include multiple channel types, such as three public channel types including team channel, competition channel and spectator channel, as well as multiple private chat channel types including first channel, third channel, second channel and fourth channel, and the chat channels are switched according to a preset arrangement order.
[0101] In a specific implementation method, a chat window is provided in the chat interface; wherein the chat window includes: a chat display area, a chat input control, a channel identifier, and the channel name of the current channel; the chat display area includes: historical chats in the chat channel; the chat input control is used to: obtain the target chat.
[0102] In one example, a chat window is provided in the chat interface, such as Figure 5 The box in the lower left corner of the chat window includes a chat display area, a chat input control, four diamond-shaped channel logos, and the channel name of the current channel 'Player Name 2', wherein the chat display area may include historical chats in the chat history channel and the channel name of the historical chats, and the chat input control is used to obtain the target chat, such as Figure 5 The chat control in the chat has a preset chat prompt 'Press TAB to switch channels'.
[0103] In a specific implementation, the channel type of the chat channel is determined; based on the channel type, the display format of the channel identifier of the chat channel is determined, and the channel identifier is displayed according to the display format.
[0104] The display format may be to fill and display the channel identifier corresponding to the channel type with different colors, and the display formats of the channel identifiers of chat channels of different channel types are usually different.
[0105] In an example, Figure 5 In the example, the channel identifiers of the chat channels of the team channel, the competition channel, the first channel, and the third channel are displayed in four diamond shapes. For each channel type, after determining the display format of the channel identifier of the chat channel, the channel identifier is displayed according to the display format, such as Figure 4 There are six diamonds displayed in gray with different brightness, among which the third, fourth and fifth diamonds have the same brightness, and they can be chat channels of the same type.
[0106] In the related art, the logic of adding and deleting channels in a game system is usually that when a player is in a certain channel state, the channel is automatically added; when the player leaves a certain channel state, the channel is automatically deleted.
[0107] For example, the server where the current player account is located is equipped with a 'world channel' by default. When the player account logs in to the server, the system automatically assigns a world channel to the player; if the player creates a team at this time, the game system automatically assigns a team channel to the player. Therefore, when the player uses the chat function of the game system, by triggering specific controls such as the 'TAB' button, he can cycle through the world channel and the team channel and select the channel to send the chat content. Assuming that at this time, the player brings the team into a custom room, the system automatically assigns a room channel to the player, and the player can switch between the three channels by pressing the 'TAB' button. If the player exits the room, he automatically leaves the room channel. At this time, the player opens the chat window and presses the 'TAB' button to restore to the state of not entering the custom room, and only the world channel and the team channel are available for switching.
[0108] For private chat channels, there are two ways to add chat partners to the chat list.
[0109] In one method, no matter the chat object sends chat content to the player or the player sends chat content to the chat object, the chat object, as a private chat channel, will be added to the list of private chat channels. For example, when the player is in the world channel and the team channel, a private chat is triggered for player A, then player A will be added to the list of private chat channels. If the player triggers a private chat for player B at this time, player B will also be added to the list of private chat channels.
[0110] If the number of private chat channels is not limited, it is necessary to traverse all private chat channels before switching back to the world channel, which is obviously unreasonable. Therefore, the number of private chat channels is limited to 3. When the number of private chat channels is full, the order of switching between the player's current channel and the sending channel is as follows: Figure 6 At this time, if the player actively triggers a private chat with player D, the first private chat 'Private Chat A' will be automatically replaced, such as Figure 7 as shown in .
[0111] However, this method is subject to the upper limit on the number of private chat objects that can be added to the private chat channel list. Once the upper limit is reached, any additional private chat objects that send chat content to the player will automatically replace other private chat objects in the list, causing the private chat objects in the private chat channel list to be passively replaced all the time, making it impossible for the player to keep the private chat object they want to maintain communication with in the list.
[0112] For the above method, in another method, only when the player sends chat content to the chat object, the chat object will be added to the list of the private chat channel, and the problem of the private chat object in the list being passively replaced will not occur.
[0113] However, in this method, if a chat partner sends a chat message to the player and the player wants to reply quickly, the player needs to use the controlling finger to operate the mouse to click on the chat partner and add the chat partner to the private chat list before replying, which requires the player to switch repeatedly between the keyboard and the mouse, making the operation cumbersome.
[0114] Based on this, the embodiments of the present invention provide the following embodiments, which can satisfy the player's convenient operation and at the same time satisfy the player's desire to maintain communication with a private chat partner that will not be passively replaced.
[0115] The following provides an embodiment for saving at least part of the chat channels and determining the switching order.
[0116] In a specific implementation, a game account is preset with a first specified number of first channels; at least some of the chat channels belonging to the game account are saved in the first channel; and the switching order of at least some of the chat channels is determined based on the arrangement order of at least some of the chat channels in the first channel.
[0117] The first designated number is usually set to three, which can be adjusted as needed.
[0118] In one example, a game account is preset with three first channels for storing chat channels of private chat channels, and the chat channels of one or more private chat channels belonging to the game account are stored in the first channel. Assuming that the first channel stores three chat channels, the switching order of the three chat channels is determined according to the arrangement order of the three chat channels in the first channel.
[0119] When the number of chat channels saved in the first channel reaches an upper limit, the chat channels in the first channel can be replaced according to preset replacement rules, such as replacing the chat channel in the oldest position in the arrangement order; and the chat channels in the first channel can be arranged according to preset sorting rules, such as when a player sends chat content to a chat channel in the first channel, this chat channel can be set to the latest position in the first channel.
[0120] In a specific implementation, before obtaining the chat channel to which the game account belongs, in response to the target channel being triggered, it is determined that the target channel has not been saved in the first channel and there is an idle first channel, and the target channel is saved in the idle first channel.
[0121] If the player triggers the target channel through a designated operation, after the target channel is triggered, the terminal determines that the target channel does not exist in the first channel and there is an idle position, and then saves the target channel in the idle first channel.
[0122] Further, in response to the game account receiving the chat content from the target channel, it is determined that the target channel is triggered; or, in response to the selection operation on the target channel or the game account corresponding to the target channel, it is determined that the target channel is triggered.
[0123] The selection operation may be that the player performs a channel switching operation to switch to the target channel or the game account corresponding to the target channel, or the player controls the mouse to perform a click operation on the target channel or the game account corresponding to the target channel.
[0124] That is, in one method, the target channel is triggered when the game account corresponding to the player receives the chat content from the target channel, such as Figure 8 In another method, the target channel is triggered when the player performs a selection operation on the target channel or the game account corresponding to the target channel, such as Figure 8 'When a player triggers a target channel, it is added to the first channel'.
[0125] exist Figure 8 In the example, channel 'Private Chat A' is first saved in the first channel 1. When a message is received from the target channel, such as channel 'Private Chat B', channel 'Private Chat B' is saved in the first channel 1, and channel 'Private Chat A' is saved in the first channel 2.
[0126] In another specific implementation, before the step of obtaining the conversation channel to which the game account belongs, in response to a selection operation on the target channel or the game account corresponding to the target channel, it is determined that the target channel has not been saved in the first channel and there is no idle first channel, a channel to be replaced is determined from the first channel, the channel to be replaced is deleted from the first channel, and the target channel is saved to the first channel.
[0127] If the player performs a selection operation on the target channel or the game account corresponding to the target channel, the terminal determines that the target channel does not exist in the first channel and there is no idle position, then determines the channel to be replaced from the first channel, and after deleting the channel to be replaced from the first channel, saves the target channel to the position of the first channel.
[0128] In a specific implementation, the oldest first channel is determined from the first channels; wherein, among the first channels, the time when the chat content was last sent to the oldest first channel is the longest from the current time; and the arrangement order of the oldest first channel is set to the oldest order among the first channels.
[0129] The terminal determines from the first channels the chat channel whose last chat content sending to at least some of the chat channels is the longest from the current time, that is, the oldest first channel, and then sets the oldest first channel as the chat channel with the oldest arrangement order in the first channels.
[0130] In a specific implementation method, in response to the presence of multiple pre-stored first channels in the first channel, the pre-stored first channel with the longest time from being saved to the first channel to the current time is determined as the pre-stored second first channel; wherein the game account has never sent chat content to the pre-stored first channel; and the arrangement order of the pre-stored second first channel is set to the oldest order in the first channel.
[0131] If there are multiple pre-stored first channels in the first channel, and the game account corresponding to the player has never sent chat content to the multiple pre-stored first channels, then determine the pre-stored first channel with the longest time from the current time saved to the first channel from the multiple pre-stored first channels, that is, the pre-stored second first channel, and then the pre-stored second first channel can be set as the chat channel with the oldest arrangement order in the first channel.
[0132] Further, the chat channel corresponding to the oldest sequence in the first channel is determined as the channel to be replaced.
[0133] In a specific implementation, the game account is also preset with a second specified number of third channels; the switching order of the chat channels in the third channel is located after the switching order of the chat channels in the first channel.
[0134] The channel type of the chat channel saved in the third channel is usually the same as the chat type of the chat channel saved in the first channel. The second designated number is usually set to one, or it can be multiple, and can be adjusted according to needs.
[0135] like Fig. 9 In the example shown, when the player switches chat channels, the order of switching chat channels is to first switch the three chat channels in the first channel and then switch the chat channels in the third channel.
[0136] In a specific implementation, in response to receiving chat content from the sixth channel, it is determined that the sixth channel has not been saved in the first channel and the third channel, and there is no idle first channel, and the sixth channel is saved to the third channel.
[0137] If the terminal receives chat content from the sixth channel, determines that the sixth channel does not exist in the first channel and the third channel, and there is no idle position in the first channel, the sixth channel is saved to the third channel.
[0138] Further, it is determined that there is an idle third channel, and the sixth channel is saved to the idle third channel; or, it is determined that there is no idle third channel, a channel to be deleted is determined from the third channel, the channel to be deleted is deleted from the third channel, and the sixth channel is saved to the third channel.
[0139] In one possible manner, the terminal determines that there is an idle position in the third channel, and can directly save the sixth channel to the idle third channel; in another possible manner, the terminal determines that there is no idle position in the third channel, and can first determine the channel to be deleted from the third channel, delete the channel to be deleted in the third channel, and then save the sixth channel to the third channel. Fig.10 In the "Latest received information, replace the original third channel".
[0140] Further, determine whether the channel to be deleted is the current channel; if the channel to be deleted is not the current channel, delete the channel to be deleted from the third channel and save the sixth channel to the third channel; if the channel to be deleted is the current channel, keep the channel to be deleted in the third channel.
[0141] That is to say, after the terminal determines the channel to be deleted, it needs to judge the channel to be deleted. If the channel to be deleted is not the current channel switched to by the player performing a channel switching operation, the channel to be deleted in the third channel will be deleted; if the channel to be deleted is the current channel switched to by the player performing a channel switching operation, the channel to be deleted will be retained in the third channel.
[0142] For the above method embodiments, see Fig.11 A schematic diagram of a control device for a chat channel is shown; the device comprises:
[0143] The chat information receiving module 1101 is used to receive the first chat information;
[0144] A first channel quantity determination module 1102, used to determine the channel quantity of the first channel in the chat interface;
[0145] A first channel setting module 1103, configured to, in response to the number of channels of the first channel being lower than a first number threshold, set the second channel corresponding to the first chat information as the first channel, and display the first chat information;
[0146] A third channel setting module 1104, configured to set the chat channel corresponding to the first chat message as the third channel in the chat interface in response to the channel quantity of the first channel being not less than the first quantity threshold, and display the first chat message;
[0147] The target chat channel setting module 1105 is used to display the second chat information in the target chat channel in response to the input operation on the target chat channel, and set the target chat channel as the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
[0148] The control device of the above-mentioned chat channel receives a first chat message; determines the channel number of a first channel in a chat interface; in response to the channel number of the first channel being lower than a first number threshold, sets the second channel corresponding to the first chat message as the first channel, and displays the first chat message; in response to the channel number of the first channel being not lower than the first number threshold, sets the chat channel corresponding to the first chat message as the third channel in the chat interface, and displays the first chat message; in response to an input operation for a target chat channel, displays the second chat message in the target chat channel, and sets the target chat channel to the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
[0149] In this method, when a player receives a chat message, it is determined whether there is a vacant seat on the first channel. If there is a vacant seat, the channel corresponding to the chat message is set to the first channel; if there is no vacant seat, the channel corresponding to the chat message is set to the third channel. When the player replies to the chat message, the channel corresponding to the chat message is set to the latest first channel. By displaying the first channel and the third channel separately, the efficiency of players in finding important chat messages can be improved, which is beneficial for players to determine the chat channel that needs to be switched, reduces misoperation, and improves the player's experience in using the chat function.
[0150] The target chat channel setting module is also used to set the target chat channel to the latest first channel in the chat interface in response to the target chat channel being the third channel, and to set the oldest first channel in the chat interface to the third channel.
[0151] The above-mentioned target chat channel setting module is also used to respond to the channel number of the third channel being lower than the second number threshold, set the oldest first channel in the chat interface to the third channel; in response to the channel number of the third channel being not lower than the second number threshold, delete the oldest third channel, and set the oldest first channel in the chat interface to the third channel.
[0152] The above-mentioned target chat channel setting module is also used to determine whether the oldest third channel is the current channel switched to; if the oldest third channel is not the current channel, delete the oldest third channel; if the oldest third channel is the current channel, retain the oldest third channel.
[0153] The above-mentioned device also includes a chat information display module, which is used to switch the current chat window in the chat interface to the chat window of the second channel; wherein the chat window of the second channel displays the channel logo of the second channel; and displays the first chat information in the chat window of the second channel.
[0154] The above device also includes a first channel sequence setting module, which is used to respond to receiving chat information from the fourth channel set as the first channel, maintain the new and old order of the fourth channel in the first channel; respond to sending chat information to the fourth channel, set the fourth channel as the latest first channel.
[0155] Among the above first channels, the time when the chat message was last sent to the newest first channel is the shortest from the current time; and the time when the chat message was last sent to the oldest first channel is the longest from the current time.
[0156] The above-mentioned first channel and third channel are both private chat channels in the chat channel; the chat channel also includes a public channel; the public channel, the first channel and the third channel are arranged in sequence; the above-mentioned device also includes a chat channel switching module, which is used to respond to the channel switching operation, switch the chat channel in the arrangement order, and display the chat window and chat information of the current channel switched to.
[0157] The above-mentioned device also includes an identification display status update module, which is used to display the channel identification of the chat channel according to the arrangement order of the chat channels; in response to the channel switching operation, the chat channel is switched according to the arrangement order, and the display status of the channel identification is updated; wherein, the channel identification of the current channel switched to is displayed in a first display state, and the channel identification of the chat channels other than the current channel is displayed in a second display state; the second display state is different from the first display state.
[0158] The channel identifier of the current channel is displayed in a first display state; the channel identifier of the next channel of the current channel is displayed in a second display state, and the next channel of the current channel is determined based on the arrangement order; the identifier display state update module is also used to respond to the channel switching operation, control the channel identifier of the current channel to switch from the first display state to the second display state; switch the next channel of the current channel to the updated current channel, and control the channel identifier of the updated current channel to switch from the second display state to the first display state.
[0159] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above chat channel control method. The electronic device can be a server or a terminal device.
[0160] See also Fig.12As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores computer executable instructions that can be executed by the processor 100, and the processor 100 executes the computer executable instructions to implement the above-mentioned chat channel control method.
[0161] Further, Fig.12 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0162] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0163] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0164] The processor in the electronic device can implement the following operations in the chat channel control method by executing computer executable instructions:
[0165] Receive a first chat message; determine the channel number of a first channel in a chat interface; in response to the channel number of the first channel being lower than a first number threshold, set the second channel corresponding to the first chat message as the first channel, and display the first chat message; in response to the channel number of the first channel being not lower than the first number threshold, set the chat channel corresponding to the first chat message as the third channel in the chat interface, and display the first chat message; in response to an input operation on a target chat channel, display the second chat message in the target chat channel, and set the target chat channel to the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
[0166] In response to the target chat channel being the third channel, the target chat channel is set to the newest first channel in the chat interface, and the oldest first channel in the chat interface is set to the third channel.
[0167] In response to the number of channels of the third channel being lower than the second number threshold, the oldest first channel in the chat interface is set as the third channel; in response to the number of channels of the third channel being not lower than the second number threshold, the oldest third channel is deleted, and the oldest first channel in the chat interface is set as the third channel.
[0168] Determine whether the oldest third channel is the current channel switched to; if the oldest third channel is not the current channel, delete the oldest third channel; if the oldest third channel is the current channel, retain the oldest third channel.
[0169] Switch the current chat window in the chat interface to the chat window of the second channel; wherein the chat window of the second channel displays the channel logo of the second channel; and display the first chat information in the chat window of the second channel.
[0170] In response to receiving a chat message from the fourth channel set as the first channel, the new and old order of the fourth channel in the first channel is maintained; in response to sending a chat message to the fourth channel, the fourth channel is set as the latest first channel.
[0171] Among the above first channels, the time when the chat message was last sent to the newest first channel is the shortest from the current time; and the time when the chat message was last sent to the oldest first channel is the longest from the current time.
[0172] The above-mentioned first channel and third channel are both private chat channels in the chat channel; the chat channel also includes a public channel; the public channel, the first channel and the third channel are arranged in sequence; in response to the channel switching operation, the chat channel is switched in the arrangement order, and the chat window and chat information of the current channel switched to are displayed.
[0173] Display the channel identifiers of the chat channels in the order in which the chat channels are arranged; in response to a channel switching operation, switch the chat channels in the order in which they are arranged, and update the display status of the channel identifiers; wherein the channel identifier of the current channel switched to is displayed in a first display status, and the channel identifiers of chat channels other than the current channel are displayed in a second display status; the second display status is different from the first display status.
[0174] The channel identifier of the current channel is displayed in a first display state; the channel identifier of the next channel of the current channel is displayed in a second display state, and the next channel of the current channel is determined based on the arrangement order; in response to a channel switching operation, the channel identifier of the current channel is controlled to switch from a first display state to a second display state; the next channel of the current channel is switched to an updated current channel, and the channel identifier of the updated current channel is controlled to switch from the second display state to the first display state.
[0175] In this method, when a player receives a chat message, it is determined whether there is a vacant seat on the first channel. If there is a vacant seat, the channel corresponding to the chat message is set to the first channel; if there is no vacant seat, the channel corresponding to the chat message is set to the third channel. When the player replies to the chat message, the channel corresponding to the chat message is set to the latest first channel. By displaying the first channel and the third channel separately, the efficiency of players in finding important chat messages can be improved, which is beneficial for players to determine the chat channel that needs to be switched, reduces misoperation, and improves the player's experience in using the chat function.
[0176] This embodiment also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned chat channel control method.
[0177] The computer executable instructions stored in the computer readable storage medium can implement the following operations in the chat channel control method by executing the computer executable instructions:
[0178] Receive a first chat message; determine the channel number of a first channel in a chat interface; in response to the channel number of the first channel being lower than a first number threshold, set the second channel corresponding to the first chat message as the first channel, and display the first chat message; in response to the channel number of the first channel being not lower than the first number threshold, set the chat channel corresponding to the first chat message as the third channel in the chat interface, and display the first chat message; in response to an input operation on a target chat channel, display the second chat message in the target chat channel, and set the target chat channel to the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
[0179] In response to the target chat channel being the third channel, the target chat channel is set to the newest first channel in the chat interface, and the oldest first channel in the chat interface is set to the third channel.
[0180] In response to the number of channels of the third channel being lower than the second number threshold, the oldest first channel in the chat interface is set as the third channel; in response to the number of channels of the third channel being not lower than the second number threshold, the oldest third channel is deleted, and the oldest first channel in the chat interface is set as the third channel.
[0181] Determine whether the oldest third channel is the current channel switched to; if the oldest third channel is not the current channel, delete the oldest third channel; if the oldest third channel is the current channel, retain the oldest third channel.
[0182] Switch the current chat window in the chat interface to the chat window of the second channel; wherein the chat window of the second channel displays the channel logo of the second channel; and display the first chat information in the chat window of the second channel.
[0183] In response to receiving a chat message from the fourth channel set as the first channel, the new and old order of the fourth channel in the first channel is maintained; in response to sending a chat message to the fourth channel, the fourth channel is set as the latest first channel.
[0184] Among the above first channels, the time when the chat message was last sent to the newest first channel is the shortest from the current time; and the time when the chat message was last sent to the oldest first channel is the longest from the current time.
[0185] The above-mentioned first channel and third channel are both private chat channels in the chat channel; the chat channel also includes a public channel; the public channel, the first channel and the third channel are arranged in sequence; in response to the channel switching operation, the chat channel is switched in the arrangement order, and the chat window and chat information of the current channel switched to are displayed.
[0186] Display the channel identifiers of the chat channels in the order in which the chat channels are arranged; in response to a channel switching operation, switch the chat channels in the order in which they are arranged, and update the display status of the channel identifiers; wherein the channel identifier of the current channel switched to is displayed in a first display status, and the channel identifiers of chat channels other than the current channel are displayed in a second display status; the second display status is different from the first display status.
[0187] The channel identifier of the current channel is displayed in a first display state; the channel identifier of the next channel of the current channel is displayed in a second display state, and the next channel of the current channel is determined based on the arrangement order; in response to a channel switching operation, the channel identifier of the current channel is controlled to switch from a first display state to a second display state; the next channel of the current channel is switched to an updated current channel, and the channel identifier of the updated current channel is controlled to switch from the second display state to the first display state.
[0188] In this method, when a player receives a chat message, it is determined whether there is a vacant seat on the first channel. If there is a vacant seat, the channel corresponding to the chat message is set to the first channel; if there is no vacant seat, the channel corresponding to the chat message is set to the third channel. When the player replies to the chat message, the channel corresponding to the chat message is set to the latest first channel. By displaying the first channel and the third channel separately, the efficiency of players in finding important chat messages can be improved, which is beneficial for players to determine the chat channel that needs to be switched, reduces misoperation, and improves the player's experience in using the chat function.
[0189] The chat channel control method, device and computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0190] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0191] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0192] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0193] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0194] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A chat channel control method, characterized in that: The method comprises: Receiving a first chat message; Determine the channel number of the first channel in the chat interface; In response to the number of channels of the first channel being lower than a first number threshold, setting the second channel corresponding to the first chat message to the first channel, and displaying the first chat message; In response to the number of channels of the first channel being not less than a first number threshold, setting the chat channel corresponding to the first chat message as a third channel in the chat interface, and displaying the first chat message; In response to an input operation on a target chat channel, second chat information is displayed in the target chat channel, and the target chat channel is set as the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
2. The method according to claim 1, characterized in that The step of setting the target chat channel as the latest first channel in the chat interface comprises: In response to the target chat channel being the third channel, the target chat channel is set to the newest first channel in the chat interface, and the oldest first channel in the chat interface is set to the third channel.
3. The method according to claim 2, characterized in that The step of setting the oldest first channel in the chat interface as the third channel comprises: In response to the number of channels of the third channel being lower than a second number threshold, setting the oldest first channel in the chat interface to the third channel; In response to the channel quantity of the third channel being not less than a second quantity threshold, the oldest third channel is deleted, and the oldest first channel in the chat interface is set as the third channel.
4. The method according to claim 3, characterized in that The step of deleting the oldest third channel comprises: Determine whether the oldest third channel is the current channel switched to; If the oldest third channel is not the current channel, deleting the oldest third channel; If the oldest said third channel is the current channel, the oldest said third channel is retained.
5. The method according to claim 1, characterized in that The step of displaying the first chat information includes: Switching the current chat window in the chat interface to the chat window of the second channel; wherein the chat window of the second channel displays the channel logo of the second channel; The first chat information is displayed in the chat window of the second channel.
6. The method according to claim 1, characterized in that The method further comprises: In response to receiving a chat message from a fourth channel set as the first channel, maintaining the new and old order of the fourth channel in the first channel; In response to sending the chat information to the fourth channel, the fourth channel is set as the latest first channel.
7. The method according to claim 1, characterized in that Among the first channels, the time from the last chat message sent to the newest first channel is the shortest to the current time; and the time from the last chat message sent to the oldest first channel is the longest to the current time.
8. The method according to claim 1, characterized in that The first channel and the third channel are both private chat channels in the chat channel; the chat channel also includes a public channel; the public channel, the first channel and the third channel are arranged in sequence; The method further includes: in response to a channel switching operation, switching the chat channels according to the arrangement order, and displaying a chat window and chat information of the current channel switched to.
9. The method according to claim 8, characterized in that The method further comprises: Displaying the channel identifiers of the chat channels according to the arrangement order of the chat channels; In response to a channel switching operation, the chat channel is switched in order of arrangement, and the display status of the channel identifier is updated; wherein the channel identifier of the current channel switched to is displayed in a first display status, and the channel identifiers of chat channels other than the current channel are displayed in a second display status; the second display status is different from the first display status.
10. The method according to claim 9, characterized in that The channel identifier of the current channel is displayed in the first display state; the channel identifier of the next channel of the current channel is displayed in the second display state, and the next channel of the current channel is determined based on the arrangement order; The step of switching channels according to the arrangement order and updating the display status of the channel identification in response to the channel switching operation includes: In response to a channel switching operation, controlling the channel identifier of the current channel to switch from the first display state to the second display state; The next channel of the current channel is switched to the updated current channel, and the channel identifier of the updated current channel is controlled to switch from the second display state to the first display state.
11. A chat channel control device, characterized in that: The device comprises: A chat message receiving module, used for receiving a first chat message; A first channel quantity determination module, used to determine the channel quantity of the first channel in the chat interface; A first channel setting module, configured to, in response to the number of channels of the first channel being lower than a first number threshold, set the second channel corresponding to the first chat information to the first channel, and display the first chat information; A third channel setting module, configured to set the chat channel corresponding to the first chat message as a third channel in the chat interface in response to the number of channels of the first channel being not less than a first number threshold, and to display the first chat message; A target chat channel setting module is used to display the second chat information in the target chat channel in response to an input operation on the target chat channel, and set the target chat channel as the latest first channel in the chat interface, wherein the target chat channel is the first channel or the third channel in the chat interface.
12. An electronic device, characterized in that: It includes a processor and a memory, the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the chat channel control method described in any one of claims 1-10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the chat channel control method described in any one of claims 1-10.