Message display method, device, equipment and medium
By dynamically displaying visual effects based on geographic location and time conditions in instant messaging applications, the problem of monotonous visual effects is solved, thereby increasing user interest and message transmission volume.
Patent Information
- Application Number
- CN202210060329.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-19
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2042-01-19
AI Technical Summary
The visual effects for message display in existing instant messaging applications are monotonous and lack personalization and diversity, resulting in insufficient user interest and low message transmission volume.
Based on the geographical location and time conditions of the sending terminal, the system dynamically displays visual effects corresponding to the geographical location and time, including landmarks, weather, and representative items, increasing the diversity of visual effects.
By dynamically displaying visual effects, the user's personalized experience and interest are enhanced, and the amount of messages transmitted is increased.
Smart Images

Figure CN116506386B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information transmission, and in particular to a message display method, apparatus, device, and medium. Background Technology
[0002] With the development of communication technology, users can chat with friends through instant messaging applications installed on their devices.
[0003] In related technologies, users can edit messages within instant messaging applications and send them to friends. Messages can include text, images, emoticons, etc., and when a message contains keywords, visual effects corresponding to those keywords will be displayed on the conversation interface.
[0004] However, the ways in which related technologies display visual effects are relatively limited. Summary of the Invention
[0005] This application provides a message display method, apparatus, device, and medium. The method can display different visual effects for the same keyword based on different geographical locations. The technical solution is as follows:
[0006] According to one aspect of this application, an embodiment of this application provides a message display method, the method comprising:
[0007] Displaying a conversation interface, which is an interface for the first user account to have a conversation with at least one other user account;
[0008] In response to receiving the first message, the first message is displayed in the session interface;
[0009] In response to the first message containing a first keyword and the geographical location of the sending terminal corresponding to the first message meeting the geographical triggering condition, a first visual effect corresponding to the geographical location is displayed on the session interface.
[0010] According to another aspect of this application, embodiments of this application provide a message display device, the device comprising:
[0011] The display module is used to display the conversation interface, which is the interface through which the first user account engages in a conversation with at least one other user account.
[0012] The display module is further configured to display the first message in the session interface in response to receiving the first message;
[0013] The display module is further configured to, in response to the first message including a first keyword and the geographical location of the sending terminal corresponding to the first message satisfying the geographical triggering condition, display a first visual effect corresponding to the geographical location on the session interface.
[0014] 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 instruction, at least one program, code set or instruction set, wherein the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the message display method as described above.
[0015] According to another aspect of this application, a computer storage medium is provided, wherein at least one piece of program code is stored in the computer-readable storage medium, the program code being loaded and executed by a processor to implement the message display method as described above.
[0016] According to another aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the message display method described above.
[0017] The beneficial effects of the technical solutions provided in this application include at least the following:
[0018] When receiving or sending messages, visual effects are displayed on the conversation interface based on the sending terminal's geographical location. Because these visual effects change with geographical location, compared to fixed visual effects in related technologies, this increases the diversity of visual effect display and meets users' personalized needs. Since different messages display different visual effects, it can increase users' interest in sending messages and increase message transmission volume. Attached Figure Description
[0019] 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.
[0020] Figure 1 This is a schematic diagram of a computer system provided in an exemplary embodiment of this application;
[0021] Figure 2This is a flowchart illustrating a message display method provided in an exemplary embodiment of this application;
[0022] Figure 3 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0023] Figure 4 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0024] Figure 5 This is a flowchart illustrating a message display method provided in an exemplary embodiment of this application;
[0025] Figure 6 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0026] Figure 7 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0027] Figure 8 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0028] Figure 9 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0029] Figure 10 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0030] Figure 11 This is a flowchart illustrating a message display method provided in an exemplary embodiment of this application;
[0031] Figure 12 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0032] Figure 13 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0033] Figure 14 This is a schematic diagram of the interface of a message display method provided in an exemplary embodiment of this application;
[0034] Figure 15 This is a flowchart illustrating a message display method provided in an exemplary embodiment of this application;
[0035] Figure 16 This is a flowchart illustrating a message display method provided in an exemplary embodiment of this application;
[0036] Figure 17 This is a flowchart illustrating a message display method provided in an exemplary embodiment of this application;
[0037] Figure 18 This is a schematic diagram of the structure of a message display device provided in an exemplary embodiment of this application;
[0038] Figure 19 This is a schematic diagram of the structure of a computer device provided in an exemplary embodiment of this application. Detailed Implementation
[0039] 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.
[0040] First, the terms used in the embodiments of this application will be introduced:
[0041] AIO (All In One, a common chat window component): Users participate in many different types of conversations such as friends, groups, and public accounts. In order to provide users with a unified interactive experience, the software provides a chat window component that is shared by different conversations. The user's input, click operations and other behaviors in the component can be regarded as consistent.
[0042] Please refer to Figure 1 This illustration shows a schematic diagram of a computer system provided in one embodiment of this application. The system 100 may include: a first terminal 10, a second terminal 20, and a server 30.
[0043] In this embodiment, a first client is installed and running on the first terminal 10, and a second client is installed and running on the second terminal 20. The first terminal 10 and the second terminal 20 can be electronic devices such as mobile phones, tablets, wearable devices, and PCs (Personal Computers).
[0044] For example, the first client and the second client can be clients of the target application, such as clients of instant messaging applications, social applications, community applications, review applications, etc. The first client and the second client can be clients of the same application; for example, the first client and the second client can be clients of the same instant messaging application. The first client and the second client have message sending and receiving functions; for example, the message can be a text message, an image message, a voice message, an emoticon message, etc. In one example, the first client can send a message, and the second client can receive a message; in another example, the second client can send a message, and the first client can receive a message. The first client corresponds to a first user account, and the second client corresponds to a second user account. In possible implementations, the first user account and the second user account are friends, that is, the first user account is in the friend list of the second client, and the second user account is in the friend list of the first client; in possible implementations, the first user account and the second user account are not friends, that is, the first user account is not in the friend list of the second client, and the second user account is not in the friend list of the first client.
[0045] For example, the server can be the backend server for the first client and the second client mentioned above. Server 30 can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. Server 30 can communicate with the first terminal 10 and the second terminal 20 via wired or wireless networks, such as relaying messages sent and received between the first terminal 10 and the second terminal 20.
[0046] Figure 2 A flowchart illustrating a message display method provided in an exemplary embodiment of this application is shown. This method can be... Figure 1 The method, executed by either the first terminal 10 or the second terminal 20 shown, includes the following steps:
[0047] Step 202: Display the session interface, which is the interface through which the first user account engages in a session with at least one other user account.
[0048] The session interface is the user interface in the client; it is the interface used to display session messages. For example, the session interface could be... Figure 1The user interface of the first client described herein. The conversation interface can be a private chat conversation between two users, or a group chat conversation between more than two users. For example, the client can be a client of an instant messaging application, a client of a social application, or a client of other applications. The messages in the embodiments of this application can also be referred to as conversation messages, instant messages, dialogue messages, etc., and the embodiments of this application do not limit them in this way.
[0049] When the chat interface is a private chat, "other user accounts" refers to the accounts that are having a conversation with the first user account. When the chat interface is a group chat, "other user accounts" refers to all user accounts in the group chat except for the first user account.
[0050] For example, a user can first run the first client, log in to the first user account, and then select a target contact or target group to display the corresponding conversation interface. For instance, a user can click on the avatar or entry of a friend in the friends list to display the conversation interface corresponding to that friend; a user can also click on the avatar or entry of a group in the group chat list to display the conversation interface corresponding to that group.
[0051] For example, such as Figure 3 As shown, the conversation interface 300 may include a dialogue area 301 and an input area 302. The dialogue area 301 is used to display messages that the user has successfully sent and / or received. These messages may include text messages, voice messages, emoticon messages, or combinations of text and emoticon messages. The input area 302 is used to receive messages entered by the user. For example, in addition to conversation messages, the dialogue area 301 may also include account names, user avatars, etc., of other user accounts. For example, the input area 302 includes a text input panel 303, where the user can enter the message they want to send. For example, the text input panel 303 is a floating keyboard; it can also be in other forms, such as a half-screen handwriting panel or a full-screen handwriting panel. For example, the user can also choose voice input, responding to a triggered operation on the voice input control 304 to receive the user's voice input. A message is generated based on the input voice. For example, the input area 302 may also include other controls, such as a more options control, a message sending control, a message deletion control, etc., wherein the more options control refers to the control that triggers the display of more options, the message sending control refers to the control used to send session messages, and the message deletion control refers to the control used to delete messages that the user has entered.
[0052] Step 204: In response to receiving the first message, display the first message in the conversation interface.
[0053] Optionally, the first message is entered by the user through a first user account, which is the user account corresponding to the first client in the terminal currently being used by the user.
[0054] Optionally, the first message is sent by a second user account, which is a different user account from the first user account. The second user account can be any user account in the friend list of the first client, or any user account not in the friend list of the first client.
[0055] The first message can be at least one of the following: text message, voice message, emoticon message, or a combination of both. For example, if a user enters the first message in the input box and clicks "send," the first message will be displayed in the chat area 301.
[0056] Step 206: In response to the first message containing the first keyword and the geographical location of the sending terminal corresponding to the first message meeting the geographical triggering condition, display the first visual effect corresponding to the geographical location on the session interface.
[0057] The primary keyword can be any single word or a collection of multiple words. The primary keyword can be set by the user or it can be a pre-defined keyword.
[0058] In one example, if the first message is entered by the current user on their current terminal, then the sending terminal for the first message refers to the terminal the current user is using. In another example, if the first message is sent by another user account, then the sending terminal for the first message refers to the terminal associated with the user account that sent the first message.
[0059] A geographic trigger condition indicates that the sending terminal of the first message meets preset geographic conditions. For example, the sending terminal is located in a preset region, or the altitude of the sending terminal belongs to a preset altitude range. For example, the sending terminal is located in the preset city A, which meets the geographic trigger condition. Or, for example, the sending terminal is located at an altitude of 11 kilometers, which meets the geographic trigger condition.
[0060] The geographical location of the transmitting terminal can be obtained from at least one of the following: Global Positioning System (GPS), BeiDou Navigation Satellite System, Galileo Satellite Navigation System (GSNS), and GLONASS. The geographical location of the transmitting terminal is determined after obtaining user authorization.
[0061] In one example, the aforementioned first visual effect is displayed only in a designated area of the chat session interface. For example, the first visual effect is displayed only in the chat area of the chat session interface, or the first visual effect is displayed only in a portion of the chat area of the chat session interface, which can be set by the user. In yet another example, the aforementioned first visual effect is displayed in the background image of the session interface, which is located in the bottom layer of the session interface. In yet another example, the aforementioned first visual effect is displayed in the entire area of the chat session interface. For example, the first visual effect is displayed in full screen in the chat session interface. In yet another example, the aforementioned first visual effect is displayed in full screen on the terminal screen.
[0062] For example, such as Figure 4 As shown, the first message 401 sent by the user includes the first keyword "Happy New Year", and the first visual effect 402 corresponding to the first keyword is displayed on the conversation interface.
[0063] In possible implementations, the first visual effect is visible only to the sender of the first message. For example, if the first message is sent by a first user account, the first visual effect is visible only to the user corresponding to the first user account; similarly, if the first message is sent by a second user account, the first visual effect is visible only to the user corresponding to the second user account. In possible implementations, the first visual effect is visible only to the recipient of the first message. For example, if the first message is sent from a first user account to a second user account, the first visual effect is visible only to the user corresponding to the second user account; similarly, if the first message is sent from a second user account to a first user account, the first visual effect is visible only to the user corresponding to the first user account. In possible implementations, the first visual effect is visible to both the sender and recipient of the first message. For example, regardless of whether the first message is sent by a first user account or a second user account, the first visual effect is visible to both the user corresponding to the first user account and the user corresponding to the second user account.
[0064] In possible implementations, the visual effects seen by the user corresponding to the first user account may be the same as or different from those seen by the user corresponding to the second user account. For example, if the first message is sent by the first user account and the terminal corresponding to the first user account displays a cannon salute effect, then the terminal corresponding to the second user account, upon receiving the first message, will display a fireworks effect.
[0065] In possible implementations, the visual effects associated with the first message displayed at the first moment may be the same as or different from the visual effects associated with the first message displayed at the second moment. The first moment and the second moment refer to the times when the visual effects are displayed. The first moment and the second moment can be two different times; for example, the first moment can refer to a time before the second moment; the first moment and the second moment can also be two identical times. For example, at 12:59 on December 31, 2020, the first message displays a fireworks effect, while at 00:01 on January 1, 2021, the first message displays a cannon salute effect.
[0066] In possible implementations, due to the large number of first messages received in a short period of time during special scenarios (e.g., during New Year's Eve, users in a group chat room send a large number of "Happy New Year" messages), and these first messages can trigger first visual effects, the conversation interface may appear cluttered. Therefore, this application embodiment limits the number of first visual effects that can be displayed within a certain time. In response to receiving i messages within a target duration, i messages including the first keyword, and the geographical location of the sending terminal corresponding to i messages meeting the geographical triggering condition, up to k first visual effects are displayed on the conversation interface, where i and k are positive integers, and i is greater than k. Here, k is a constant. The specific values of i and k can be set by the user. Optionally, the up to k first visual effects can be displayed simultaneously or sequentially according to time. In one implementation, the first visual effects of the first k messages are displayed on the conversation interface. For example, if 20 messages are received within 5 seconds, and all 20 messages display the aforementioned first visual effect, then only the first visual effect of the first 5 messages will be displayed on the conversation interface. In one implementation, the first visual effect corresponding to k random messages will be displayed on the conversation interface. In another implementation, if there is a repetition of the i types of first visual effects corresponding to i messages, k non-repeating first visual effects will be displayed on the conversation interface.
[0067] In summary, this embodiment displays visual effects on the conversation interface based on the geographical location of the sending terminal when receiving or sending messages. Since these visual effects change with geographical location, compared to fixed visual effects in related technologies, it increases the diversity of visual effect display and meets the personalized needs of users. Because different messages display different visual effects, it can increase users' interest in sending messages and increase message transmission volume.
[0068] Figure 5 A flowchart illustrating a message display method provided in an exemplary embodiment of this application is shown. This method can be... Figure 1The method, executed by either the first terminal 10 or the second terminal 20 shown, includes the following steps:
[0069] Step 501: Display the session interface.
[0070] The session interface is the user interface in the client; it is the interface used to display session messages. For example, the session interface could be... Figure 1 The user interface of the first client described herein. The conversation interface can be a private chat conversation between two users, or a group chat conversation between more than two users. For example, the client can be a client of an instant messaging application, a client of a social application, or a client of other applications. The messages in the embodiments of this application can also be referred to as conversation messages, instant messages, dialogue messages, etc., and the embodiments of this application do not limit them in this way.
[0071] For example, a user can first run the first client, log in to the first user account, and then select a target contact or target group to display the corresponding conversation interface. For instance, a user can click on the avatar or entry of a friend in the friends list to display the conversation interface corresponding to that friend; a user can also click on the avatar or entry of a group in the group chat list to display the conversation interface corresponding to that group.
[0072] Step 502: In response to receiving the first message, display the first message in the conversation interface.
[0073] Optionally, the first message is entered by the user through a first user account, which is the user account corresponding to the first client in the terminal currently being used by the user.
[0074] Optionally, the first message is sent by a second user account, which is a different user account from the first user account. The second user account can be any user account in the friend list of the first client, or any user account not in the friend list of the first client.
[0075] The first message can be at least one of the following: text message, voice message, emoticon message, or a combination of both. For example, if a user enters the first message in the input box and clicks "send," the first message will be displayed in the chat area 301.
[0076] Step 503: In response to the first message's content including the first keyword, determine the set of geographic locations corresponding to the first keyword.
[0077] The geographic location set here can be set by the user or by the client's technical staff. In one example, the first keyword and the geographic location set correspond to each other. For example, when the first keyword is "Happy Birthday", the geographic location set is [Location 1, Location 2, Location 3], while when the first keyword is "Happy New Year", the geographic location set is [Location 4, Location 5]. In another example, the geographic location corresponds one-to-one with the first visual effect. For example, Location 1 corresponds to the first visual effect A, and Location 2 corresponds to the first visual effect B.
[0078] In a specific example, in response to the first message, which includes a first keyword, the set of geographic locations corresponding to that keyword is determined. If the geographic location belongs to the set of geographic locations, a first visual effect corresponding to that location is displayed on the conversation interface.
[0079] Step 504: If the geographic location belongs to a set of geographic locations, display the first visual effect corresponding to the geographic location on the conversation interface.
[0080] In one possible implementation, the first visual effect is used to represent a landmark building at the location. In this case, if the location belongs to a set of locations, the landmark building's icon is displayed on the session interface. Alternatively, if the location belongs to a set of locations, the landmark building's icon is displayed in the background image of the session interface. Users can customize the display position of the landmark building's icon. In this case, the landmark building's icon is the first visual effect.
[0081] For example, such as Figure 6 As shown, user A sent the first message 601. At this time, user A is located in city X, so the sending terminal used to send the first message 601 is also in city X. Therefore, the landmark building 602 of city X is displayed in the background image of the session interface 61. Figure 7 As shown, user B sent the first message 701. The content of the first message 601 is the same as that of the first message 701. At this time, user B is located in city Y, so the sending terminal used to send the first message 701 is also in city Y. Therefore, the landmark building 702 of city Y is displayed in the background image of the session interface 71. Landmark building 602 and landmark building 702 are different buildings.
[0082] In one specific implementation, if a geographic location corresponds to multiple candidate landmarks, and the geographic location belongs to a set of geographic locations, a landmark is randomly selected from the multiple candidate landmarks. The identifier of this landmark is displayed on the session interface. Alternatively, if the geographic location belongs to a set of geographic locations, the distance from the geographic location to the multiple candidate landmarks is determined. The identifier of the nearest candidate landmark is displayed on the session interface.
[0083] Optionally, the landmark building's logo is part of the initial visual effect. For example, upon receiving a message including the first keyword, the initial visual effect is displayed on the conversation interface. This initial visual effect includes the landmark building's logo and a birthday effect, which could be displayed as a falling cake element. It should be noted that the birthday effect can also be other visual effects; this is only used as an example.
[0084] Optionally, the landmark building's logo can be displayed simultaneously with the initial visual effect. For example, the initial visual effect is displayed as falling balloons, and the landmark building's logo is also displayed on the session interface at the same time.
[0085] In one possible implementation, the first visual effect is used to indicate the weather at the location of the geographical location. In this case, if the geographical location belongs to a set of geographical locations, a weather indicator is displayed on the session interface. In another implementation, the first visual effect is used to indicate the weather at the location of the geographical location at the time the first message is sent. In yet another implementation, the first visual effect is used to indicate the weather at the location of the geographical location at the time the first message is received. In this case, the weather indicator is the first visual effect.
[0086] Among possible implementations, the weather indicator includes at least one of the following:
[0087] When a location belongs to a set of locations, a falling sun element is displayed on the conversation interface. The sun element is used to indicate that the weather in the location is sunny.
[0088] When a location belongs to a set of locations, a falling snowflake element is displayed on the conversation interface. The snowflake element is used to indicate that the weather in the location is snowy.
[0089] When a location belongs to a set of locations, a falling water droplet element is displayed on the conversation interface. The water droplet element is used to indicate that the weather in the location is rainy.
[0090] When a location belongs to a set of locations, a falling cloud element is displayed on the conversation interface. The cloud element is used to indicate that the weather in the location is cloudy.
[0091] For example, such as Figure 8 As shown, user A sent the first message 801. At this time, user A is located in city X, so the sending terminal used to send the first message 801 is also in city X. The weather in city X is sunny, so a falling sun element 802 is displayed in the background image of the conversation interface 81. Figure 9As shown, user B sent the first message 901. The content of the first message 801 is the same as that of the first message 901. At this time, user B is in city Y, so the sending terminal used to send the first messages 902 and 1 is also in city Y. The weather in city Y is snowy, so the falling snowflake element 902 is displayed in the background image of the conversation interface 91.
[0092] Optionally, the weather icon is part of the first visual effect. For example, upon receiving a message containing a first keyword, a first visual effect is displayed on the conversation interface. This first visual effect includes a weather icon and a ribbon effect. The weather icon can be displayed as falling snowflakes, and the ribbon effect can be displayed as falling ribbons. The ribbon effect can also be other visual effects.
[0093] Optionally, a weather indicator can be displayed simultaneously with the initial visual effect. For example, the initial visual effect is displayed as a falling smiley face element, and a weather indicator is also displayed on the conversation interface at the same time.
[0094] In one possible implementation, the first visual effect is used to represent a representative item of a geographical location. This representative item includes at least one of the following: a local mascot, specialty product, food, handicraft, or cultural symbol. In this case, if the geographical location belongs to a set of geographical locations, the representative item is displayed on the chat interface. In this context, the representative item is the first visual effect.
[0095] For example, user A sends a message. At this time, user A is located in city X, so the sending terminal used to send the first message is also in province X. The mascot of province X is the panda, so a panda is displayed in the background image of the conversation interface. User B also sends a message. At this time, user B is located in province Y, so the sending terminal used to send the first message is also in province Y. The mascot of province Y is the rabbit, so a rabbit is displayed in the background image of the conversation interface.
[0096] Optionally, the representative item is part of the first visual effect. For example, upon receiving a message including the first keyword, the first visual effect is displayed on the conversation interface. This first visual effect includes the representative item and a cannon salute effect, which can be displayed as falling cannon elements.
[0097] Optionally, a representative item can be displayed simultaneously with the initial visual effect. For example, the initial visual effect is displayed as falling mahjong tiles, and a representative item is also displayed on the conversation interface at the same time.
[0098] In one possible implementation, different types of initial visual effects are displayed simultaneously on the session interface. For example, such as... Figure 10As shown, the landmark building 602 and the solar element 1001 are displayed simultaneously in the session interface 61.
[0099] In summary, this embodiment displays visual effects on the conversation interface based on the sending terminal's geographical location when receiving or sending messages. Since these visual effects change with geographical location, compared to fixed visual effects in related technologies, it increases the diversity of visual effect display and meets users' personalized needs. Furthermore, the visual effects represent landmarks, weather, or iconic objects of the geographical location, allowing the visual effects to blend with the real environment and further increasing their diversity. Because different messages display different visual effects, it can enhance users' interest in sending messages and increase message transmission volume.
[0100] Figure 11 A flowchart illustrating a message display method provided in an exemplary embodiment of this application is shown. This method can be... Figure 1 The method, executed by either the first terminal 10 or the second terminal 20 shown, includes the following steps:
[0101] Step 1101: Display the session interface.
[0102] The session interface is the user interface in the client; it is the interface used to display session messages. For example, the session interface could be... Figure 1 The user interface of the first client described herein. The conversation interface can be a private chat conversation between two users, or a group chat conversation between more than two users. For example, the client can be a client of an instant messaging application, a client of a social application, or a client of other applications. The messages in the embodiments of this application can also be referred to as conversation messages, instant messages, dialogue messages, etc., and the embodiments of this application do not limit them in this way.
[0103] For example, a user can first run the first client, log in to the first user account, and then select a target contact or target group to display the corresponding conversation interface. For instance, a user can click on the avatar or entry of a friend in the friends list to display the conversation interface corresponding to that friend; a user can also click on the avatar or entry of a group in the group chat list to display the conversation interface corresponding to that group.
[0104] Step 1102: In response to receiving the second message, display the second message in the conversation interface.
[0105] Optionally, the second message and the first message can be the same message, or the second message and the first message can be different messages.
[0106] Optionally, the second message is entered by the user through the first user account, which is the user account corresponding to the first client in the terminal currently being used by the user.
[0107] Optionally, the second message is sent by a second user account, which is a different user account from the first user account. The second user account can be any user account in the friend list of the first client, or any user account not in the friend list of the first client.
[0108] The second message is at least one of the following: text message, voice message, emoticon message, and combined message.
[0109] Step 1103: In response to the second message containing the second keyword and the second message being displayed within the target time period, display the second visual effect corresponding to the target time period on the conversation interface.
[0110] The second keyword can be any single word or a collection of multiple words. The second keyword can be set by the user or it can be a pre-defined keyword. The second keyword can be the same as or different from the first keyword.
[0111] In one example, if the second message is a received message, the display time refers to the time the user views the second message. For instance, if the terminal receives the second message at 20:00, but the user opens the session interface at 20:10, then 20:10 is considered the display time of the second message. In another example, if the second message is a sent message, the display time refers to the time the user sends the second message.
[0112] The target time period can refer to one or multiple time periods. The target time period can be set by the user. In one example, the second keyword and the target time periods correspond to each other. For instance, if the second keyword is "Happy Birthday," the target time period includes August 2nd and September 10th, 2020; while if the second keyword is "Happy New Year," the target time period includes February 11th and February 17th, 2020. In another example, the target time period and the second visual effect have a one-to-one correspondence. For instance, target time period 1 corresponds to second visual effect A, while target time period 2 corresponds to second visual effect B. Second visual effect A and second visual effect B are different visual effects.
[0113] For example, such as Figure 12As shown in the diagram, please refer to the conversation interface 121. The user sent the second message 1201 at 11:59 on December 31, 2020, and a fireworks effect 1202 was displayed on the conversation interface 121. Subsequently, the user sent the second message 1203 at 00:01 on January 1, 2021, and a cannon salute effect 1204 was displayed on the conversation interface 122.
[0114] Optionally, the second visual effect includes at least one of the following: ribbon effect, firework effect, celebration effect, heart effect, gift effect, cannon effect, birthday effect, and text effect. For example, the birthday effect is displayed as a falling cake element. For example, when the second keyword is "Happy Birthday," the text effect is used to indicate the user's age. Or, when the second keyword is "Happy New Year," the text effect is used to indicate the year.
[0115] In possible implementations, the second visual effect is visible only to the sender of the second message. For example, if the second message is sent by the first user account, the second visual effect is visible only to the user corresponding to the first user account; similarly, if the second message is sent by the second user account, the second visual effect is visible only to the user corresponding to the second user account. In possible implementations, the second visual effect is visible only to the recipient of the second message. For example, if the second message is sent from the first user account to the second user account, the second visual effect is visible only to the user corresponding to the second user account; similarly, if the second message is sent from the second user account to the first user account, the second visual effect is visible only to the user corresponding to the first user account. In possible implementations, the second visual effect is visible to both the sender and recipient of the second message. For example, regardless of whether the second message is sent by the first or second user account, the second visual effect is visible to both the user corresponding to the first user account and the user corresponding to the second user account.
[0116] Optionally, in response to the second message containing a second keyword and displaying a target sub-time period within the target time period, a second visual effect corresponding to the target time point is overlaid on the conversation interface. The second visual effect corresponding to the target sub-time period is a different second visual effect from other sub-time periods.
[0117] The target sub-time period can be set by the user. For example, the target time period is January 1, 2021, and the target sub-time period is from 00:00 to 01:00 on January 1, 2021. Optionally, there can be one target sub-time period or multiple target sub-time periods within the target time period.
[0118] For example, the period from 00:00 to 01:00 on January 1, 2021 can be set as the target sub-time period, such as... Figure 13As shown, when the second message 1203 is sent within the target sub-time period, in addition to displaying the cannon salute effect 1204, the conversation interface 122 will also display the text effect 1205 used to represent "2021".
[0119] Optionally, if the first keyword and the second keyword are the same, and the geographical location of the sending terminal corresponding to the first message (or the second message) meets the geographical triggering condition, and the display time of the first message (or the second message) is within the target time period, the first visual effect and the second visual effect are simultaneously displayed on the session interface. For example, such as... Figure 14 As shown, after receiving the first message 1401, since the sending terminal corresponding to the first message 1401 is located in City A, and the display time of the first message 1401 is within the target time period, the first visual effect 1402 and the second visual effect 1403 are displayed simultaneously in the session interface 141.
[0120] In summary, this embodiment displays corresponding visual effects on the conversation interface based on the display time of the second message. Since these visual effects change over time, compared to fixed visual effects in related technologies, it increases the diversity of visual effect displays and meets users' personalized needs. When applied to holidays, this method can enhance the festive atmosphere; for example, displaying fireworks or cannon fire effects during the New Year. This method also encourages users to increase the frequency of message sending.
[0121] In the following embodiments, a technical solution for a message display method is provided by way of example, and the first visual effect is the logo of a landmark building. This embodiment is illustrated by taking the sending of a first message as an example.
[0122] Figure 15 A flowchart illustrating a message display method provided in an exemplary embodiment of this application is shown. This method can be... Figure 1 The computer system 100 shown executes a method comprising the following steps, wherein the client refers to a client on the first terminal 10 or the second terminal 20:
[0123] Step 1501: The client responds to the message input operation and obtains the first message.
[0124] The client login has a primary user account. For example, a user can first run the primary client, log in with the primary user account, and then select a target contact or target group to display the corresponding conversation interface.
[0125] Optionally, the first user account is the user account that sends the first message. The second user account is the user account that receives the second message.
[0126] Optionally, a floating keyboard is displayed on the conversation interface, and message input is triggered by the floating keyboard. In response to the triggering operation on the floating keyboard, the first message is determined based on the triggering location.
[0127] Optionally, the message input operation is a voice input operation, which responds to a trigger operation on the voice input control and obtains the first input message.
[0128] Step 1502: The client sends the signaling for the first message.
[0129] Optionally, the signaling of the first message includes at least one of the following: the content of the first message, the account information of the first user account, the account information of the second user account, the sending time of the first message, and the geographical location of the client.
[0130] Optionally, the client's geolocation is obtained after obtaining user authorization.
[0131] Step 1503: The server determines the content of the first message.
[0132] Optionally, when the first message is a text message, the content of the first message is the text of the first message.
[0133] Optionally, when the first message is a voice message, the voice of the first message is converted into text using voice recognition technology, and the aforementioned text is determined as the content of the first message.
[0134] Step 1504: The server determines whether the first keyword exists in the content of the first message.
[0135] If the server determines that the content of the first message contains the first keyword, then proceed to step 1505;
[0136] If the server determines that the first keyword does not exist in the content of the first message, the process ends.
[0137] The primary keyword can be any single word or a collection of multiple words. The primary keyword can be set by the user or it can be a pre-defined keyword.
[0138] Step 1505: The server determines whether there exists a set of geographical locations corresponding to the first keyword.
[0139] If the server determines that there is a candidate first visual effect corresponding to the first keyword, then proceed to step 1506;
[0140] If the server determines that there is no candidate first visual effect corresponding to the first keyword, the process ends.
[0141] In one possible implementation, the first keyword and the set of geographic locations correspond to each other. The correspondence between the first keyword and the set of geographic locations can be one-to-one, or multiple first keywords can correspond to one set of geographic locations. For example, when the first keyword is "Happy Birthday", the set of geographic locations is [Location 1, Location 2, Location 3], while when the first keyword is "Happy New Year", the set of geographic locations is [Location 4, Location 5].
[0142] Step 1506: The server obtains the client's geographical location.
[0143] In one possible implementation, the server determines the client's geographical location through signaling of the first message provided by the client.
[0144] Step 1507: The server determines whether the client's geographical location exists in the geographical location set.
[0145] If the server determines that there is a first visual effect corresponding to a geographical location among the candidate first visual effects, then proceed to step 1508;
[0146] If the server determines that there is no first visual effect corresponding to the geographical location among the candidate first visual effects, the process ends.
[0147] Step 1508: The server determines the identifier of the landmark building where the geographic location is located.
[0148] Optionally, the server stores a mapping between geographic locations and landmark building identifiers.
[0149] In one possible implementation, the server determines the client's city information based on the client's geographical location, and then determines the landmark building identifier from the city-landmark building correspondence based on the city information.
[0150] Step 1509: The server sends a signal indicating the location of the landmark building.
[0151] The signaling for the landmark building's identification includes at least one of the following: the account information of the second user account, the name of the identification, and the content of the first message.
[0152] Step 1510: The client processes the signaling for the landmark building's identification and obtains the identification information.
[0153] In one alternative implementation, the identification information is the name of the landmark's logo. Alternatively, the identification information includes a download link for the landmark's logo.
[0154] Step 1511: The client obtains the landmark building's identifier based on the identifier information.
[0155] Optionally, the client stores the identifiers of landmark buildings and the correspondence between the identifiers of landmark buildings and the identifier names of landmark buildings. The client determines the identifier of a landmark building from the correspondence based on the identifier name of the landmark building.
[0156] Optionally, the client can download the landmark's logo from the provided download link.
[0157] Step 1512: The client displays the landmark building's logo in the session interface.
[0158] For example, such as Figure 6 As shown in the session interface 61, user A sent the first message 601. At this time, user A is in city X, so the sending terminal used to send the first message 601 is also in city X. Therefore, the landmark building 602 of city X is displayed in the background image of the session interface.
[0159] In summary, this embodiment displays visual effects on the conversation interface based on the geographical location of the sending terminal when receiving or sending messages. Since these visual effects change with geographical location, compared with the fixed visual effects in related technologies, it increases the diversity of visual effect display and meets the personalized needs of users.
[0160] In one implementation of this application, Figure 15 The illustrated embodiments can be implemented using the following protocol.
[0161] package tencent.im.s2c.msgtype0x456.submsgtype0x77
[0162] / / Basic Information
[0163] message EggBaseInfo
[0164] {optional uint64 uint64_timestamp_begin = 1; / / First visual effect starts with a timestamp.}
[0165] optional uint64 uint64_timestamp_end = 2; / / End timestamp corresponding to the first visual effect
[0166] optional bytes byte_res_id = 3; / / First visual effect cos id (distributed ID generator)
[0167] / / Relevant information for displaying first visual effects
[0168] message TimeEggInfo
[0169] {opt ional EggBaseInfo egg_info = 1; / / Basic information for first-person visual effects}
[0170] / / Information on the second visual effect corresponding to the target sub-time period
[0171] message KeywordEggInfo
[0172] {opt ional EggBaseInfo egg_info = 1; / / Basic information about keyword Easter eggs
[0173] / / Information related to the signage of landmark buildings
[0174] message LandmarkEggInfo
[0175] {opt ional uint64 uint64_timestamp_begin=1; / / First visual effect corresponding to the start timestamp
[0176] optional uint64 uint64_timestamp end = 2; / / End timestamp corresponding to the first visual effect
[0177] / / Basic information about first-person visual effects
[0178] message MessageEggInfo
[0179] {optional bytes byte_keyword = 1; / / First keyword
[0180] opt ional uint32 uint32_count = 2; / / Number of first visual effects to display
[0181] optional bytes byte_comon res_id = 3; / / First-person visual effect cos id
[0182] repeated TimeEggInfo time_egg.info = 4; / / List of first-person visual effects
[0183] opt ional KeywordEggInfo keyword_egg_info=5; / / Second visual effect corresponding to the target sub-time period.
[0184] opt ional LandmarkEggInfo Landmark egg_info=6; / / Information related to the identification of landmark buildings}.
[0185] In the following embodiments, a technical solution for a message display method is provided by way of example, and the first visual effect is displayed as a weather icon. This embodiment is illustrated by taking the sending of a first message as an example.
[0186] Figure 16 A flowchart illustrating a message display method provided in an exemplary embodiment of this application is shown. This method can be... Figure 1 The computer system 100 shown executes a method comprising the following steps, wherein the client refers to a client on the first terminal 10 or the second terminal 20:
[0187] Step 1601: The client responds to the message input operation and obtains the first message.
[0188] The client login has a primary user account. For example, a user can first run the primary client, log in with the primary user account, and then select a target contact or target group to display the corresponding conversation interface.
[0189] Optionally, the first user account is the user account that sends the first message. The second user account is the user account that receives the second message.
[0190] Optionally, a floating keyboard is displayed on the conversation interface, and message input is triggered by the floating keyboard. In response to the triggering operation on the floating keyboard, the first message is determined based on the triggering location.
[0191] Optionally, the message input operation is a voice input operation, which responds to a trigger operation on the voice input control and obtains the first input message.
[0192] Step 1602: The client sends the signaling for the first message.
[0193] Optionally, the signaling of the first message includes at least one of the following: the content of the first message, the account information of the first user account, the account information of the second user account, the sending time of the first message, and the geographical location of the client.
[0194] Optionally, the client's geolocation is obtained after obtaining user authorization.
[0195] Step 1603: The server determines the content of the first message.
[0196] Optionally, when the first message is a text message, the content of the first message is the text of the first message.
[0197] Optionally, when the first message is a voice message, the voice of the first message is converted into text using voice recognition technology, and the aforementioned text is determined as the content of the first message.
[0198] Step 1604: The server determines whether the content of the first message contains the first keyword.
[0199] If the server determines that the content of the first message contains the first keyword, then proceed to step 1605;
[0200] If the server determines that the first keyword does not exist in the content of the first message, the process ends.
[0201] The primary keyword can be any single word or a collection of multiple words. The primary keyword can be set by the user or it can be a pre-defined keyword.
[0202] Step 1605: The server obtains the client's geographical location.
[0203] In one possible implementation, the server determines the client's geographical location through signaling of the first message provided by the client.
[0204] Step 1606: The server obtains the weather for the geographical location.
[0205] In one alternative implementation, the server sends its geographic location to a weather server, which provides weather query services.
[0206] Step 1607: The server generates a signaling message for the weather identifier.
[0207] The weather identifier signaling includes at least one of the following: account information of the second user account, identifier name, and content of the first message.
[0208] Step 1608: The server sends a signaling message indicating the weather.
[0209] Step 1609: The client processes the signaling for the weather identifier and obtains the identifier information.
[0210] In one alternative implementation, the identification information is the weather's identifier name. Alternatively, the identification information includes a download link for the weather identifier.
[0211] Step 1610: The client obtains the weather identifier based on the identifier information.
[0212] Optionally, the client stores weather identifiers and the correspondence between weather identifiers and weather identifier names, and the client determines the identifier of the landmark building from the correspondence based on the weather identifier name.
[0213] Optionally, the client can download the weather identifier from the download link provided.
[0214] Step 1611: The client displays the weather indicator in the session interface.
[0215] Optionally, a falling sun element can be displayed on the conversation interface. The sun element indicates that the weather at the geographical location is sunny. Alternatively, a falling snowflake element can be displayed on the conversation interface. The snowflake element indicates that the weather at the geographical location is snowy. Or, a falling water droplet element can be displayed on the conversation interface. The water droplet element indicates that the weather at the geographical location is rainy. Alternatively, a falling cloud element can be displayed on the conversation interface. The cloud element indicates that the weather at the geographical location is cloudy.
[0216] For example, such as Figure 8 As shown, user A sent the first message 801. At this time, user A is in city X, so the sending terminal used to send the first message 801 is also in city X. The weather in city X is sunny, so the falling sun element 802 is displayed in the background image of the conversation interface 81.
[0217] In summary, this embodiment displays visual effects on the conversation interface based on the geographical location of the sending terminal when receiving or sending messages. Since these visual effects change with geographical location, compared with the fixed visual effects in related technologies, it increases the diversity of visual effect display and meets the personalized needs of users.
[0218] In one implementation of this application, Figure 14 The illustrated embodiments can be implemented using the following protocol.
[0219] message WeatherEggInfo
[0220] {optional bytes byte_id = 1; / / The name of the weather identifier
[0221] optional bytes byte_res_id = 2; / / Cosine ID of the weather identifier
[0222] / / Weather icon
[0223] message WeatherEggFlag
[0224] {opt ional uint64 uint64_timestamp begin=1; / / Weather identifier corresponding to the start timestamp
[0225] opt ional uint64uint64_timestamp end = 2; / / Weather identifier corresponding to the end timestamp
[0226] / / Basic information about weather indicators
[0227] message MessageEggInfo
[0228] {optional bytes byte_keyword = 1; / / First keyword
[0229] optional uint32 uint32_count = 2; / / Number of items to display
[0230] optional bytes byte_common_res_id = 3; / / Cosine ID of the weather identifier
[0231] repeated TimeEggInfo time_egg_info = 4; / / Second visual effect
[0232] opt:ional KeywordEggInfo keyword_egg_info=5; / / Second visual effect corresponding to the target sub-time period.
[0233] opt ional LandmarkEggInfo landmark egg_info=6; / / Landmark identifier
[0234] opt ional WeatherEggFlag weather_egg_info=7; / / Weather identifier}.
[0235] Figure 17 A flowchart illustrating a message display method provided in an exemplary embodiment of this application is shown. This method can be... Figure 1 The computer system 100 shown executes a method comprising the following steps, wherein the client refers to a client on the first terminal 10 or the second terminal 20:
[0236] Step 1701: The client responds to the message input operation and obtains the second message.
[0237] The client login has a primary user account. For example, a user can first run the primary client, log in with the primary user account, and then select a target contact or target group to display the corresponding conversation interface.
[0238] Optionally, the first user account is the user account that sends the first message. The second user account is the user account that receives the second message.
[0239] Optionally, a floating keyboard is displayed on the conversation interface, and message input is triggered by the floating keyboard. In response to the triggering operation on the floating keyboard, a second message is determined based on the trigger location.
[0240] Optionally, the message input operation is a voice input operation, which responds to a trigger operation on the voice input control to obtain the input second message.
[0241] Step 1702: The client sends the signaling for the second message.
[0242] Optionally, the signaling of the second message includes at least one of the following: the content of the second message, the account information of the first user account, the account information of the second user account, the sending time of the second message, and the geographical location of the client.
[0243] Optionally, the client's geolocation is obtained after obtaining user authorization.
[0244] Step 1703: The server determines the content of the second message.
[0245] Optionally, when the second message is a text message, the content of the second message is the text of the second message.
[0246] Optionally, when the second message is a voice message, the voice of the second message is converted into text using voice recognition technology, and the aforementioned text is determined as the content of the second message.
[0247] Step 1704: The server determines whether the content of the second message contains a second keyword.
[0248] If the server determines that the content of the second message contains the second keyword, then proceed to step 1705;
[0249] If the server determines that the second message does not contain the second keyword, the process ends.
[0250] The second keyword can be any single word or a collection of multiple words. The second keyword can be set by the user or it can be a pre-defined keyword.
[0251] Step 1705: The server determines whether the display time of the second message falls within the target time period.
[0252] If the server determines that the display time of the second message falls within the target time period, then proceed to step 1706;
[0253] If the server determines that the display time of the second message is not within the target time period, then proceed to step 1709.
[0254] The target time period can refer to one time period or multiple time periods. The target time period can be set by the user. In one example, the second keyword and the target time period correspond to each other.
[0255] Step 1706: The server matches the second visual effect.
[0256] For example, there is a one-to-one correspondence between the target time period and the second visual effect. For instance, target time period 1 corresponds to second visual effect A, while target time period 2 corresponds to second visual effect B. Second visual effect A and second visual effect B are different visual effects.
[0257] Optionally, if the displayed time is a target sub-time period within the target time period, an additional second visual effect corresponding to the target time point is determined. This second visual effect corresponding to the target sub-time period is different from other sub-time periods. The target sub-time period can be set by the user; for example, the target time period is January 1, 2021, and the target sub-time period is from 00:00 to 01:00 on January 1, 2021. Optionally, there can be one or multiple target sub-time periods within the target time period.
[0258] Step 1707: The server determines whether the client needs to display a second visual effect.
[0259] If the server determines that the client needs to display a second visual effect, then proceed to step 1508;
[0260] If the server determines that the client does not need to display the second visual effect, the process ends.
[0261] Step 1708: The server determines the name of the second visual effect.
[0262] For example, the server stores a correspondence between target sub-time periods and the names of second visual effects. The server determines the name of the second visual effect based on the target time period and the correspondence. For instance, the target time period "December 1, 2020 to December 31, 2020" corresponds to a fireworks effect, and the target time period "January 1, 2021 to January 31, 2021" corresponds to a snowflake effect.
[0263] Step 1709: The server determines the name of the third visual effect.
[0264] Third-person visual effects are visual effects that are independent of time periods. For example, a third-person visual effect is only related to the second keyword. For instance, the server stores a mapping between the second keyword and the name of the third-person visual effect.
[0265] Step 1710: The server generates signaling for visual effects.
[0266] The signaling for visual effects refers to the signaling for the second visual effect or the signaling for the third visual effect.
[0267] The signaling of the second visual effect identifier includes at least one of the following: the account information of the second user account, the name of the identifier, and the content of the first message.
[0268] The signaling of the third visual effect identifier includes at least one of the following: the account information of the second user account, the name of the identifier, and the content of the first message.
[0269] Step 1711: The server sends a signaling message for visual effects to the client.
[0270] Step 1712: The client processes the signaling for visual effects and obtains the visual effects information.
[0271] In one alternative implementation, the identifier is the name of the visual effect. Alternatively, the identifier may include a download link for the visual effect.
[0272] Step 1713: The client obtains visual effects based on the visual effects information.
[0273] Optionally, the client stores visual effects and the correspondence between visual effects and their names, and the client determines the visual effect from the correspondence based on the name of the visual effect.
[0274] Optionally, the client downloads the visual effects from the download link.
[0275] Step 1714: The client displays visual effects in the session interface.
[0276] For example, such as Figure 10 As shown, please refer to conversation interface 101. The user sent the second message 1001 at 11:59 on December 31, 2020, and a fireworks effect 1002 was displayed on conversation interface 101. Please refer to conversation interface 102. The user sent the second message 1003 at 00:01 on January 1, 2021, and a cannon salute effect 1004 was displayed on conversation interface 102.
[0277] In summary, this embodiment displays different visual effects at different times, which increases the diversity of visual effects display compared to the fixed visual effects in related technologies and meets the personalized needs of users.
[0278] In one implementation of this application, Figure 15 The illustrated embodiments can be implemented using the following protocol.
[0279] package tencent.im.s2c.msgtype0x456.submsgtype0x77
[0280] / / Information on second visual effects
[0281] message TimeEggInfo
[0282] {optional uint64 uint64_timestamp.begin = 1; / / Start timestamp corresponding to the second visual effect}
[0283] optional uint64 uint64_.t imestamp_end = 2; / / End timestamp corresponding to the second visual effect
[0284] optional bytes byte_res_id = 3; / / Cosplay ID for the second visual effect}
[0285] / / Basic information about the second visual effect
[0286] message MessageEggInfo
[0287] {optional bytes byte_keyword = 1; / / second keyword
[0288] optional uint32 uint32_count = 2; / / Number of secondary visual effects to display
[0289] optional bytes byte_comon_res_id = 3; / / Cosplay ID for the second visual effect
[0290] repeated TimeEggInfo time_egg_info = 4; / / List of secondary visual effects}
[0291] In one implementation of this application, if the display time of the second message falls within the target sub-time period, then a second visual effect corresponding to the target sub-time period needs to be displayed on the session interface. Figure 15 The illustrated embodiments can be implemented using the following protocol.
[0292] "package tencent.im.s2c.msgtype0x456.submsgtype0x77
[0293] / / Information on second visual effects
[0294] message TimeEggInfo
[0295] {optional uint64 uint64_timestamp.begin = 1; / / Start timestamp corresponding to the second visual effect}
[0296] optional uint64 uint64_.t imestamp_end = 2; / / End timestamp corresponding to the second visual effect
[0297] optional bytes byte_res_id = 3; / / Cosplay ID for the second visual effect}
[0298] / / Basic information about the second visual effect
[0299] message KeywordEggInfo
[0300] {opt ional EggBaseInfo egg_info=1: / / keyword Easter egg basic information}
[0301] / / Easter Egg Basic Information
[0302] message MessageEggInfo
[0303] {optional bytes byte_keyword = 1; / / second keyword
[0304] optional uint32 uint32_count = 2; / / Number of secondary visual effects to display
[0305] optional bytes byte_comon_res_id = 3; / / Cosplay ID for the second visual effect
[0306] repeated TimeEggInfo time_egg_info = 4; / / List of secondary visual effects
[0307] opt ional KeywordEggInfo keyword_egg_info=5; / / Second visual effect corresponding to the target sub-time period}.
[0308] It should be noted that, since the embodiments of this application involve user privacy data, including geographical location, weather, keywords, etc., the above embodiments of this application all obtain user privacy data in compliance with laws and regulations and with user authorization.
[0309] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0310] Please refer to Figure 18 This diagram illustrates a block diagram of a message display device according to an embodiment of this application. The device has the functionality to implement the above-described method example; this functionality can be implemented in hardware or by hardware executing corresponding software. The device can be a terminal or can be installed within a terminal. The device 1800 may include:
[0311] Display module 1801 is used to display a conversation interface, which is an interface for a first user account to have a conversation with at least one other user account.
[0312] The display module 1801 is further configured to display the first message in the session interface in response to obtaining the first message;
[0313] The display module 1801 is further configured to, in response to the first message including a first keyword and the geographical location of the sending terminal corresponding to the first message satisfying the geographical triggering condition, display a first visual effect corresponding to the geographical location on the session interface.
[0314] In an optional design of this application, the device further includes: a determining module 1802;
[0315] The determining module 1802 is used to determine the set of geographical locations corresponding to the first keyword in response to the content of the first message including the first keyword.
[0316] The display module 1801 is further configured to display a first visual effect corresponding to the geographical location on the session interface when the geographical location belongs to the set of geographical locations.
[0317] In an optional design of this application, the first visual effect is used to represent a landmark building where the geographical location is located; the display module 1801 is further used to display the landmark building's identifier on the session interface when the geographical location belongs to the set of geographical locations; or, when the geographical location belongs to the set of geographical locations, to display the landmark building's identifier in the background image of the session interface.
[0318] In an optional design of this application, the first visual effect is used to represent the weather at the location of the geographic location; the display module 1801 is also used to display an identifier of the weather on the session interface when the geographic location belongs to the set of geographic locations.
[0319] In an optional design of this application, the display module 1801 is further configured to display a falling sun element on the session interface when the geographical location belongs to the set of geographical locations; or, when the geographical location belongs to the set of geographical locations, to display a falling snowflake element on the session interface; or, when the geographical location belongs to the set of geographical locations, to display a falling water droplet element on the session interface; or, when the geographical location belongs to the set of geographical locations, to display a falling cloud element on the session interface.
[0320] In an optional design of this application, the first visual effect is used to represent a representative item of the geographical location; the display module 1801 is further used to display the representative item on the session interface when the geographical location belongs to the set of geographical locations, the representative item including at least one of the mascot, local specialty, food, handicrafts, and cultural symbols of the location.
[0321] In an optional design of this application, the display module 1801 is further configured to display the first message in the session interface in response to a message input operation; or to acquire the first message; or to display the first message in the session interface in response to a message viewing operation.
[0322] In an optional design of this application, the display module 1801 is further configured to display the second message in the session interface in response to obtaining the second message; and to display a second visual effect corresponding to the target time period on the session interface in response to the content of the second message including the second keyword and the display time of the second message being within the target time period.
[0323] In an optional design of this application, the determining module 1802 is further configured to determine a time period set corresponding to the second keyword in response to the content of the second message including the second keyword;
[0324] The display module 1801 is further configured to display a second visual effect corresponding to the target time period on the session interface when the display time belongs to the set of time periods.
[0325] In one alternative design of this application, the second visual effect includes at least one of the following: ribbon effect, firework effect, celebration effect, heart effect, gift effect, cannon effect, birthday effect, and text effect.
[0326] The display module 1801 is further configured to, in response to the second message including the second keyword and the display time being a target sub-time period within the target time period, overlay a second visual effect corresponding to the target time point on the session interface; wherein the second visual effect corresponding to the target sub-time period is a second visual effect different from other sub-time periods.
[0327] In an optional design of this application, the display module 1801 is further configured to display up to k first visual effects on the session interface in response to obtaining i messages within a target duration, wherein the i messages include the first keyword and the geographical location of the sending terminal corresponding to the i messages satisfies the geographical triggering condition, i and k are positive integers and i is greater than k.
[0328] In summary, this embodiment displays visual effects on the conversation interface based on the geographical location of the sending terminal when receiving or sending messages. Since these visual effects change with geographical location, compared to fixed visual effects in related technologies, it increases the diversity of visual effect display and meets the personalized needs of users. Because different messages display different visual effects, it can increase users' interest in sending messages and increase message transmission volume.
[0329] Figure 19 This is a schematic diagram illustrating the structure of a computer device according to an exemplary embodiment. The computer device 1900 includes a Central Processing Unit (CPU) 1901, a system memory 1904 including Random Access Memory (RAM) 1902 and Read-Only Memory (ROM) 1903, and a system bus 1905 connecting the system memory 1904 and the CPU 1901. The computer device 1900 also includes a basic input / output system (I / O system) 1906 to facilitate information transfer between various devices within the computer device, and a mass storage device 1907 for storing the operating system 1913, application programs 1914, and other program modules 1915.
[0330] The basic input / output system 1906 includes a display 1908 for displaying information and an input device 1909 for user input, such as a mouse or keyboard. Both the display 1908 and the input device 1909 are connected to the central processing unit 1901 via an input / output controller 1910 connected to the system bus 1905. The basic input / output system 1906 may also include the input / output controller 1910 for receiving and processing input from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 1910 also provides output to a display screen, printer, or other types of output devices.
[0331] The mass storage device 1907 is connected to the central processing unit 1901 via a mass storage controller (not shown) connected to the system bus 1905. The mass storage device 1907 and its associated computer device-readable media provide non-volatile storage for the computer device 1900. That is, the mass storage device 1907 may include computer device-readable media (not shown), such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0332] Without loss of generality, the computer device readable medium may include computer device storage media and communication media. Computer device storage media include volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer device readable instructions, data structures, program modules, or other data. Computer device storage media include RAM, ROM, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), CD-ROM, digital video disc (DVD) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer device storage media are not limited to the above-mentioned types. The system memory 1904 and mass storage device 1907 described above can be collectively referred to as memory.
[0333] According to various embodiments of this disclosure, the computer device 1900 can also be connected to a remote computer device on a network, such as the Internet. That is, the computer device 1900 can be connected to the network 1911 via a network interface unit 1912 connected to the system bus 1905, or it can use the network interface unit 1912 to connect to other types of networks or remote computer device systems (not shown).
[0334] The memory also includes one or more programs stored in the memory, and the central processing unit 1901 executes the one or more programs to implement all or part of the steps of the above message display method.
[0335] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the message display method provided in the above-described method embodiments.
[0336] This application also provides a computer-readable storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the message display method provided in the above method embodiments.
[0337] Optionally, this application also provides a computer program product containing instructions that, when run on a computer device, causes the computer device to perform the message display methods described in the above aspects.
[0338] 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.
[0339] 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.
[0340] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A message display method, characterized in that, The method includes: Displaying a conversation interface, which is an interface for the first user account to have a conversation with at least one other user account; In response to receiving the first message, the first message is displayed in the session interface; In response to the first message including a first keyword, a set of geographic locations corresponding to the first keyword is determined; the first keyword is a word set by the user or preset, and the set of geographic locations is a set set by the user or preset. When the geographical location of the sending terminal corresponding to the first message belongs to the set of geographical locations, a first visual effect corresponding to the geographical location is displayed on the conversation interface, and the first visual effect changes with the geographical location; wherein, in response to obtaining i messages within a target duration and the i messages including the first keyword and the geographical location of the sending terminal corresponding to the i messages belonging to the set of geographical locations, at most k kinds of first visual effects are displayed on the conversation interface, where i and k are positive integers, and i is greater than k; In response to receiving the second message, the second message is displayed in the session interface; In response to the second message including the second keyword, the set of time periods corresponding to the second keyword is determined as the target time period; If the display time of the second message belongs to the set of time periods, a second visual effect corresponding to the target time period is displayed on the conversation interface.
2. The method according to claim 1, characterized in that, The first visual effect is used to represent the landmark buildings where the geographical location is located; When the geographical location of the sending terminal corresponding to the first message belongs to the set of geographical locations, displaying a first visual effect corresponding to the geographical location on the session interface includes: If the geographical location belongs to the set of geographical locations, the landmark building's identifier will be displayed on the session interface; or, If the geographical location belongs to the set of geographical locations, the landmark building's logo is displayed in the background image of the session interface.
3. The method according to claim 1, characterized in that, The first visual effect is used to represent the weather at the location of the given geographical location; When the geographical location of the sending terminal corresponding to the first message belongs to the set of geographical locations, displaying a first visual effect corresponding to the geographical location on the session interface includes: If the geographical location belongs to the set of geographical locations, the weather icon is displayed on the session interface.
4. The method according to claim 3, characterized in that, When the geographical location belongs to the set of geographical locations, displaying a weather icon on the session interface includes: If the geographical location belongs to the set of geographical locations, a falling sun element is displayed on the session interface; Alternatively, if the geographical location belongs to the set of geographical locations, display falling snowflake elements on the session interface; Alternatively, if the geographic location belongs to the set of geographic locations, display falling water droplet elements on the session interface; Alternatively, if the geographic location belongs to the set of geographic locations, a falling cloud element can be displayed on the session interface.
5. The method according to claim 1, characterized in that, The first visual effect is used to represent a representative item at the location of the said geographical location; When the geographical location of the sending terminal corresponding to the first message belongs to the set of geographical locations, displaying a first visual effect corresponding to the geographical location on the session interface includes: When the geographical location belongs to the set of geographical locations, the representative item is displayed on the session interface. The representative item includes at least one of the locality's mascot, specialty products, food, handicrafts, and cultural symbols.
6. The method according to any one of claims 1 to 5, characterized in that, The step of responding to receiving the first message and displaying the first message in the session interface includes: In response to a message input operation, the first message is displayed in the session interface; or, Obtain the first message; in response to the message viewing operation, display the first message in the session interface.
7. The method according to any one of claims 1 to 5, characterized in that, The second visual effect includes at least one of the following: ribbon effect, firework effect, celebration effect, heart effect, gift effect, cannon effect, birthday effect, and text effect.
8. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In response to the second message containing the second keyword and the display time being a target sub-time period within the target time period, a second visual effect corresponding to the target sub-time period is overlaid on the conversation interface. Among them, the second visual effect corresponding to the target sub-time period is a second visual effect that is different from other sub-time periods.
9. A message display device, characterized in that, The device includes: The display module is used to display the conversation interface, which is the interface through which the first user account engages in a conversation with at least one other user account. The display module is further configured to display the first message in the session interface in response to receiving the first message; The display module is further configured to, in response to the first message including a first keyword, determine a set of geographical locations corresponding to the first keyword; the first keyword is a word set or preset by the user, and the set of geographical locations is a set set or preset by the user; when the geographical location of the sending terminal corresponding to the first message belongs to the set of geographical locations, display a first visual effect corresponding to the geographical location on the conversation interface, the first visual effect changing with the geographical location; wherein, in response to obtaining i messages within a target duration and the i messages including the first keyword and the geographical location of the sending terminal corresponding to the i messages belonging to the set of geographical locations, display up to k first visual effects on the conversation interface, where i and k are positive integers, and i is greater than k; The display module is further configured to, in response to receiving a second message, display the second message in the conversation interface; in response to the content of the second message including a second keyword, determine a set of time periods corresponding to the second keyword as a target time period; and, if the display time of the second message belongs to the set of time periods, display a second visual effect corresponding to the target time period on the conversation interface.
10. A computer device, characterized in that, The computer device includes a processor and a memory, wherein the memory stores at least one program, which is loaded and executed by the processor to implement the message display method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the message display method as described in any one of claims 1 to 8.
12. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the message display method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Display method and device
CN109753205A
Communication processing method and device, terminal and server
CN110365726A
Interaction method, device and equipment, communication method and shooting method
CN112492400A
Interface display method and device, storage medium and electronic equipment
CN112619132A
Message processing method, device and readable storage medium
CN113569037A