Method and apparatus for processing session message

By fusing text messages with message elements and displaying them in distinct styles, the method and apparatus enhance session message interaction diversity and efficiency, addressing the monotonous nature of existing technologies.

US20260379792A1Pending Publication Date: 2026-11-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/747828
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2024-02-07
Filing Date
2026-07-20
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing session message processing technologies result in a monotonous interaction process, reducing human-computer interaction efficiency and underutilizing hardware resources due to the lack of diverse interactive operations on session messages.

Method used

Implementing a method and apparatus that fuse a first text message with at least one message element, such as a second text message or an emoji, and display the fused message in a style different from the original, enhancing interaction diversity and resource utilization.

Benefits of technology

Enriches the interaction mode and diversity of session messages, thereby improving human-computer interaction efficiency and hardware resource utilization through style changes in fused messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260379792A1-D00000_ABST
    Figure US20260379792A1-D00000_ABST
Patent Text Reader

Abstract

Aspects of this disclosure provide a method for processing a session message. In the method, a first text message in a first style and at least one message element are displayed via a session interface. The at least one message element includes at least one of a second text message or an emoji. Based on a first fusion operation on the first text message and the at least one message element, a first fused message obtained through the first fusion operation is displayed in a second style. The first fused message includes content of the first text message and content of the at least one message element. The second style is different from the first style and indicates an emotion represented by the first fused message. Apparatus and non-transitory computer-readable storage medium counterparts are also contemplated.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] The present application is a continuation of International Application No. PCT / CN2025 / 072211, filed on Jan. 14, 2025, which claims priority to Chinese Patent Application No. 202410175929.1, filed on Feb. 7, 2024. The entire disclosures of the prior applications are hereby incorporated by reference.FIELD OF THE TECHNOLOGY

[0002] This disclosure relates to the field of internet technologies, including a method and an apparatus for processing a session message, an electronic device, a computer-readable storage medium, and a computer program product.BACKGROUND

[0003] In a related technology, when a conversation is performed via a session interface, one or more session messages (such as text messages or emojis) are mostly transmitted directly, and other interactive operations may not be performed on the session messages. This results in a relatively monotonous session process, thereby reducing human-computer interaction efficiency and utilization of hardware processing resources.SUMMARY

[0004] Aspects of this disclosure include a method and an apparatus for processing a session message, an electronic device, a computer-readable storage medium, and a computer program product, which can improve diversity of session messages in a session process, human-computer interaction efficiency, and utilization of hardware processing resources.

[0005] Technical solutions in aspects of this disclosure may be implemented as follows.

[0006] Aspects of this disclosure provide a method for processing a session message. In the method, a first text message in a first style and at least one message element are displayed via a session interface. The at least one message element includes at least one of a second text message or an emoji. Based on a first fusion operation on the first text message and the at least one message element, a first fused message obtained through the first fusion operation is displayed in a second style. The first fused message includes content of the first text message and content of the at least one message element. The second style is different from the first style and indicates an emotion represented by the first fused message.

[0007] Aspects of this disclosure provide an apparatus for processing a session message. The apparatus includes processing circuitry configured to display, via a session interface, a first text message in a first style and at least one message element. The at least one message element includes at least one of a second text message or an emoji. Based on a first fusion operation on the first text message and the at least one message element, the processing circuitry displays, in a second style, a first fused message obtained through the first fusion operation. The first fused message includes content of the first text message and content of the at least one message element. The second style is different from the first style and indicates an emotion represented by the first fused message.

[0008] Aspects of this disclosure provide a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium storing instructions, which when executed by a processor, cause the processor to implement a method for processing a session message. In the method, a first text message in a first style and at least one message element are displayed via a session interface. The at least one message element includes at least one of a second text message or an emoji. Based on a first fusion operation on the first text message and the at least one message element, a first fused message obtained through the first fusion operation is displayed in a second style. The first fused message includes content of the first text message and content of the at least one message element. The second style is different from the first style and indicates an emotion represented by the first fused message.

[0009] Aspects of this disclosure provide a method for processing a session message, the method being performed by an electronic device, and including: displaying, on a session interface, a first text message in a first style, and displaying at least one message element, the message element including at least one of a second text message or an emoji; and displaying, in a second style in response to a fusion operation on the first text message and the at least one message element, a first fused message obtained through fusion; the first fused message including at least content of the first text message and content of the message element, and the second style being different from the first style.

[0010] Aspects of this disclosure provide an apparatus for processing a session message, the apparatus including: a display module, configured to display, on a session interface, a first text message in a first style, and display at least one message element, the message element including at least one of a second text message or an emoji; and a fusion module, configured to display, in a second style in response to a fusion operation on the first text message and the at least one message element, a first fused message obtained through fusion, the first fused message including at least content of the first text message and content of the message element, and the second style being different from the first style.

[0011] Aspects of this disclosure provide an electronic device, including: a memory, configured to store computer-executable instructions or a computer program; and processing circuitry (for example, a processor), configured to implement, when executing the computer-executable instructions or the computer program stored in the memory, the methods for processing a session message provided in aspects of this disclosure.

[0012] Aspects of this disclosure provide a computer-readable storage medium (for example, a non-transitory computer-readable storage medium), having computer-executable instructions or a computer program stored therein, the computer-executable instructions, when executed by a processor, implementing the methods for processing a session message provided in aspects of this disclosure.

[0013] Aspects of this disclosure provide a computer program product, the computer program product including computer-executable instructions or a computer program, a processor executing the computer-executable instructions or the computer program, causing the electronic device to perform the methods for processing a session message provided in aspects of this disclosure.

[0014] Aspects of this disclosure have the following beneficial effects.

[0015] A first text message is first displayed in a first style on a session interface, and at least one message element including at least one of a second text message or an emoji is displayed. Then the first text message and at least one of the at least one message element are fused to obtain a first fused message including content of the first text message and content of the message element, and the first fused message is displayed in a second style different from the first style. In this way, through a fusion operation on a text message and a message element, a display style of the text message and content of the text message are changed. In this way, not only an interaction mode of session messages is enriched, but also diversity of the session messages is improved, thereby improving human-computer interaction efficiency and utilization of hardware resources of an electronic device.BRIEF DESCRIPTION OF THE DRAWINGS

[0016] FIG. 1 is a schematic diagram of an architecture of a system 100 for processing a session message according to an aspect of this disclosure.

[0017] FIG. 2 is a schematic structural diagram of an electronic device according to an aspect of this disclosure.

[0018] FIG. 3 is a schematic flowchart of a method for processing a session message according to an aspect of this disclosure.

[0019] FIG. 4 is a schematic diagram of a first process of obtaining a first fused message through fusion according to an aspect of this disclosure.

[0020] FIG. 5 is a schematic diagram of displaying a first emoji in a first fused message according to an aspect of this disclosure.

[0021] FIG. 6 is a schematic diagram of displaying a second fused message in a third style according to an aspect of this disclosure.

[0022] FIG. 7 is a schematic diagram of a process of switching a first emoji to a third emoji according to an aspect of this disclosure.

[0023] FIG. 8 is a schematic diagram of a second process of obtaining a first fused message through fusion according to an aspect of this disclosure.

[0024] FIG. 9 is a schematic diagram of displaying a third fused message in a fourth style according to an aspect of this disclosure.

[0025] FIG. 10 is a schematic diagram of displaying a fourth fused message in a fifth style according to an aspect of this disclosure.

[0026] FIG. 11 is a schematic diagram of fixedly displaying a bullet comment at a target position according to an aspect of this disclosure.

[0027] FIG. 12 is a schematic diagram of a bullet comment reply of another object displayed in a suspended manner above a bullet comment according to an aspect of this disclosure.

[0028] FIG. 13 is a schematic flowchart of changing a style of a chat bubble through an emoji and a gesture according to an aspect of this disclosure.

[0029] FIG. 14 is a schematic flowchart of displaying a bullet comment and restoring the bullet comment according to an aspect of this disclosure.

[0030] FIG. 15 is a schematic flowchart of changing, through an operation, an emotion represented by a bubble according to an aspect of this disclosure.DETAILED DESCRIPTION

[0031] The following describes technical solutions in aspects of this disclosure with reference to the accompanying drawings. The described aspects are merely some rather than all aspects of this disclosure. Other aspects obtained by persons of ordinary skill in the art based on aspects of this disclosure fall within the scope of this disclosure.

[0032] In the following description, the term “at least one” means one or more, and “a plurality of” means two or more. The use of “at least one of” or “one of” in the disclosure is intended to include any one or a combination of the recited elements. For example, references to at least one of A, B, or C; at least one of A, B, and C; at least one of A, B, and / or C; and at least one of A to C are intended to include only A, only B, only C or any combination thereof. References to one of A or B and one of A and B are intended to include A or B or (A and B). The use of “one of” does not preclude any combination of the recited elements when applicable, such as when the elements are not mutually exclusive.

[0033] In the following description, terms such as “first” and “second” are intended to distinguish between similar objects but do not necessarily indicate a specific order or sequence. Data used in this way may be interchanged in a proper circumstance, so that aspects of this disclosure described herein can be implemented in a sequence different from those shown in the drawings or described herein. In addition, terms “include”, “have”, and any variants thereof are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to the steps or units specified expressly, but may include other steps or units not specified expressly or may include steps or units inherent to the process, method, product or device.

[0034] In the following description, a term “some aspects” involved describes subsets of aspects, but “some aspects” may be the same subset or different subsets of the aspects, and may be combined with each other without conflict.

[0035] Unless otherwise defined, meanings of all technical and scientific terms used in this disclosure are the same as those usually understood by a person skilled in the art to which this disclosure belongs. The terms used in this disclosure are merely intended to describe the objectives of aspects of this disclosure, and are not intended to limit the scope of this disclosure.

[0036] Before aspects of this disclosure are described in further detail, a description is provided on nouns and terms in aspects of this disclosure, and the nouns and terms in aspects of this disclosure are applicable to the following explanations.

[0037] Descriptions of terms in this disclosure are provided as examples only and are not intended to limit the scope of the disclosure.

[0038] 1) In response to: It may represent a condition or a status on which a performed operation depends. When the condition or the status is satisfied, one or more operations may be performed in real time or with a set delay. Unless otherwise specified, there is no chronological order between a plurality of to-be-performed operations.

[0039] 2) Client: The client is also referred to as a user side, and may be a program corresponding to a server that provides a local service for a user. In addition to some applications (APPs) that can only run locally, the client can be installed on a terminal and needs to cooperate with the server to run. In other words, the client may use a corresponding server and service program in a network to provide a corresponding service. In this way, a specific communication connection may need to be established on the client and a server side to help ensure normal operation of an APP, for example, a virtual scene client (such as a game client) and a video client.

[0040] 3) Artificial Intelligence (AI) may be a theory, a method, a technology, and an application system that uses a digital computer or a machine controlled by the digital computer to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain an optimal result. In other words, AI may be a comprehensive technology in computer science and attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a manner similar to human intelligence. The AI may be used to study the design principles and implementation methods of various intelligent machines, to enable the machines to have functions of sensing, reasoning, and decision-making.

[0041] 4) A message bubble, also referred to as a chat bubble, may refer to a styled frame that encloses text transmitted by a user in a chat scenario.

[0042] 5) Pinch operation: The pinch operation may be a gesture operation performed on a touchscreen device by using two fingers simultaneously (for example, a thumb and an index finger), which may be configured for zooming in or zooming out content on a screen, such as a webpage, an image, or a map. When the two fingers simultaneously touch the screen and move in a relatively stationary manner, if the fingers move toward each other (close to each other on the screen), content on the screen may be zoomed out for display, and if the fingers move apart (away from each other on the screen), the content on the display screen may be zoomed in for display.

[0043] One or more modules, submodules, and / or units of the apparatus can be implemented by processing circuitry, software, or a combination thereof, for example. The term module (and other similar terms such as unit, submodule, etc.) in this disclosure may refer to a software module, a hardware module, or a combination thereof. A software module (for example, computer program) may be developed using a computer programming language and stored in memory or non-transitory computer-readable medium. The software module stored in the memory or medium is executable by a processor to thereby cause the processor to perform the operations of the module. A hardware module may be implemented using processing circuitry, including at least one processor and / or memory. Each hardware module can be implemented using one or more processors (or processors and memory). Likewise, a processor (or processors and memory) can be used to implement one or more hardware modules. Moreover, each module can be part of an overall module that includes the functionalities of the module. Modules can be combined, integrated, separated, and / or duplicated to support various applications. Also, a function being performed at a particular module can be performed at one or more other modules and / or by one or more other devices instead of or in addition to the function performed at the particular module. Further, modules can be implemented across multiple devices and / or other components local or remote to one another. Additionally, modules can be moved from one device and added to another device, and / or can be included in both devices.

[0044] FIG. 1 is a schematic diagram of an architecture of a system 100 for processing a session message according to an embodiment of this disclosure. For a terminal (a terminal 400 is shown as an example), the terminal 400 is connected to a server 200 through a network 300. The network 300 may be a wide area network or a local area network, or may be a combination of both, to achieve data transmission by using a wireless or wired link.

[0045] The server 200 is configured to transmit, to the terminal 400, display data of a session interface including a first text message.

[0046] The terminal 400 is configured to: receive the display data of the session interface including the first text message, and display, on the session interface based on the display data, the first text message in a first style, and display at least one message element, the message element including at least one of a second text message or an emoji; and display, in a second style in response to a fusion operation on the first text message and the at least one message element, a first fused message obtained through fusion. The first fused message includes at least content of the first text message and content of the message element, and the second style is different from the first style.

[0047] In an aspect, the server 200 may be an independent physical server, or may be a server cluster formed by a plurality of physical servers or a distributed system, and may be further a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a content delivery network (CDN), and a big data and artificial intelligence platform. The terminal 400 may be a smartphone, a tablet computer, a notebook computer, a desktop computer, a set-top box, an intelligent voice interactive device, a smart home appliance, a virtual reality device, an on-board terminal, an aircraft, a portable music player, a personal digital assistant, a dedicated messaging device, a portable game device, a smart speaker, a smartwatch, or the like, but is not limited thereto. The terminal and the server may be directly or indirectly connected in a manner of wired or wireless communication, which is not limited in embodiments of this disclosure.

[0048] FIG. 2 is a schematic structural diagram of an electronic device according to an aspect of this disclosure. The electronic device may be a server or a terminal. An example in which the electronic device is the terminal shown in FIG. 1 is used. The electronic device shown in FIG. 2 includes processing circuitry (for example, at least one processor 410), a memory 450, at least one network interface 420, and a user interface 430. Various components in the terminal 400 are coupled together through a bus system 440. The bus system 440 is configured to implement connection and communication between the components. In addition to a data bus, the bus system 440 further includes a power bus, a control bus, and a status signal bus. However, for clarity, various buses are marked as the bus system 440 in FIG. 2.

[0049] The processor 410 may be an integrated circuit chip with a signal processing capability, for example, a general processor, a digital signal processor (DSP), another programmable logic device, a discrete gate or a transistor logic device, or a discrete hardware component. The general processor may be a microprocessor, any processor, or the like.

[0050] The user interface 430 includes one or more output apparatuses 431 that enable display of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 further includes one or more input apparatuses 432, including user interface components that facilitate user input, such as a keyboard, a mouse, a microphone, a touch display, a camera, and another input button and control.

[0051] The memory 450 may be removable, non-removable, or a combination thereof. An example of hardware device includes a solid-state memory, a hard disk drive, an optical disc drive, and the like. In some aspects, the memory 450 includes one or more storage devices that are physically located away from the processor 410.

[0052] The memory 450 includes a volatile memory or a non-volatile memory, or may include both the volatile memory and the non-volatile memory. The non-volatile memory may be a read-only memory (ROM). The volatile memory may be a random-access memory (RAM). The memory 450 described in this aspect of this disclosure is intended to include any suitable type of memory.

[0053] In an aspect, the memory 450 can store data to support various operations. Examples of the data include a program, a module, and a data structure, or a subset or a superset thereof. An example is provided below.

[0054] An operating system 451 includes system programs configured to process various basic system services and perform hardware-related tasks, for example, a framework layer, a core library layer, and a driver layer, which are configured to implement various basic services and process hardware-based tasks.

[0055] A network communication module 452 is configured to reach another electronic device through one or more (wired or wireless) network interfaces 420. An example of network interface 420 includes a Bluetooth interface, a Wi-Fi interface, a universal serial bus (USB) interface, and the like.

[0056] A presentation module 453 is configured to enable display of information through the one or more output apparatuses 431 (for example, a display screen and a speaker) associated with the user interface 430 (for example, a user interface configured to operate a peripheral device and display content and information).

[0057] An input processing module 454 is configured to detect user inputs or interactions from the one or more input apparatuses 432 and translate the detected inputs or interactions.

[0058] In an aspect, the apparatus provided in aspects of this disclosure may be implemented through software. FIG. 2 shows an apparatus 455 for processing a session message stored in the memory 450, which may be software in a form of a program, a plug-in, and the like, and includes the following software modules: a display module 4551 and a fusion module 4552. These modules are logical. Therefore, the modules may be combined in different manners to form other aspects or further split based on to-be-implemented functions. Functions of the modules are described below.

[0059] In an aspect, the apparatus provided in aspects of this disclosure may be implemented through hardware. In an example, the apparatus for processing a session message provided in aspects of this disclosure may be a processor in the form of a hardware decoding processor, which is programmed to perform the method for processing a session message provided in aspects of this disclosure. For example, the processor in the form of the hardware decoding processor may be one or more application specific integrated circuits (ASICs), a DSP, a programmable logic device (PLD), a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or another electronic element.

[0060] In an aspect, the terminal or the server may implement the method for processing a session message provided in aspects of this disclosure by running a computer program. For example, the computer program may be a native program or a software module in an operating system; may be a native application (APP), for example, a local client (for example, a program that needs to be installed in the operating system to run, such as an instant messaging APP and a web browser APP); or may be a mini program, for example, a program that only needs to be downloaded to a browser environment to run; and may alternatively be a mini program that can be embedded in any APP. In a word, the foregoing computer program may be any form of client, module, or plug-in.

[0061] Based on the foregoing descriptions of the system for processing a session message and the electronic device provided in aspects of this disclosure, the following describes the method for processing a session message provided in aspects of this disclosure. In an example, the method for processing a session message provided in aspects of this disclosure may be implemented by a terminal or a server alone, or by the terminal and the server collaboratively. A description is provided by using an example in which the terminal 400 in FIG. 1 separately performs the method for processing a session message provided in aspects of this disclosure.

[0062] FIG. 3 is a schematic flowchart of a method for processing a session message according to an aspect of this disclosure. Next, a description is provided with reference to operations shown in FIG. 3.

[0063] Operation 101: A terminal displays, on a session interface, a first text message in a first style, and displays at least one message element, the message element including at least one of a second text message or an emoji.

[0064] In an example, the terminal is provided with a client supporting processing of a session message, such as a video playback client, a browser client, and a social client. When a user opens the client on the terminal, and the terminal runs the client, based on the client, the terminal may display a session interface on which a target object performs a session, and display the first text message in the first style on the session interface.

[0065] The message element indicates a display element on the session interface associated with an operation of the target object, for example, a display element on the session interface on which the target object may directly perform an operation, which may be for example a session message including a text session message and an emoji. In addition, a style refers to a form in which the session message such as the text message or the emoji is displayed on the session interface. For example, the style may indicate a message bubble or a message card. A style is characterized by at least one of a shape, a color, or a size of the message bubble or the message card, and different styles differ in at least one of these characteristics. This is not limited in aspects of this disclosure. The first style may be preset.

[0066] In an example, the first text message may be a text message directly transmitted by the user, or the first text message may also be obtained through fusion. When the first text message is obtained through fusion, a plurality of manners is provided to display, on the session interface, the first text message in the first style. Next, two of the manners are used as an example to describe a process of displaying, on the session interface, the first text message in the first style.

[0067] In an aspect, the first text message is obtained through fusion by a fusion operation performed by the user. Before the first text message is displayed in the first style on the session interface, at least two text messages may be further displayed on the session interface. Therefore, the process of displaying, on the session interface, the first text message in the first style may be displaying, in the first style on the session interface in response to a fusion operation on the at least two text messages, a first text message obtained by fusing the at least two text messages, the first text message including text content of the at least two text messages.

[0068] When the at least two text messages are two text messages, the fusion operation on the at least two text messages may be a pinch operation on the at least two text messages. For example, in response to the pinch operation on the at least two text messages, a process of merging the at least two text messages is displayed. When a ratio of a third area to a fourth area reaches a target area ratio, the at least two text messages are hidden. The third area is an area of an overlapping region of the at least two text messages, and the fourth area is a display area of any one of the at least two text messages. The first text message obtained by fusing the at least two text messages is displayed in the first style.

[0069] The target area ratio may be preset. In addition, each of the text messages may be carried in a message bubble or a message card. The display area of the text message indicates an occupied area of the corresponding message bubble or message card, and the overlapping region of the text messages also refers to an overlapping region between the corresponding message bubbles or between the message cards. When the text message is carried in a message bubble, the first style indicates a style of the message bubble, and when the text message is carried in a message card, the first style indicates a style of the message card.

[0070] In an aspect, when the at least two text messages are two text messages, the fusion operation on the at least two text messages may be a drag operation and a release operation on the at least two text messages. For example, in response to a drag operation on a target text message in the at least two text messages, the target text message is dragged to another text message; and in response to a release operation on the target text message, a first text message obtained by fusing the target text message and another text message is displayed in the first style.

[0071] As described above, each of the text messages may be carried in the message bubble or the message card, and the drag operation on the text message is also a drag operation on a message bubble or a message card where the text message is located.

[0072] In an example, the session interface includes a message editing region and a message display region. The message editing region is configured for a user to edit a transmitted session message. The message display region is configured for a plurality of users to browse messages transmitted by the users. The text message (including the first text message) is displayed in the message display region.

[0073] Through application of the foregoing aspects, the first text message is obtained by fusing the at least two text messages on the session interface, which enriches an interaction mode of the session messages and also improves diversity of the session messages, thereby improving human-computer interaction efficiency and utilization of hardware resources of an electronic device.

[0074] In an aspect, the first text message is obtained through automatic fusion. Therefore, the process of displaying, on the session interface, the first text message in the first style may be displaying, on the session interface, at least two text messages that are consecutively received, and a transmission time of each of the text messages; and displaying, in response to a difference between the transmission times of the at least two text messages being less than a first difference threshold, a process of fusing the at least two text messages when a content overlap degree of the text messages reaches an overlap degree threshold, and displaying, in the first style, the first text message obtained by fusing the at least two text messages.

[0075] When the at least two text messages are to be transmitted to the same object, and no other messages are received between the text messages, the at least two text messages are regarded as being received consecutively. The term “received” herein is relative to the client on the terminal. Therefore, the at least two text messages may be transmitted by the target object corresponding to a current terminal, and then received by the client. In terms of no other messages being received between the text messages, the other messages herein include a message transmitted by the target object, and includes a message transmitted by another object with which the target object performs a session based on the session interface.

[0076] The first difference threshold may be preset, for example, may be 1 second or 2 seconds. In addition, the overlap degree threshold may also be preset, for example, may be 90%. The content overlap degree of the text messages may refer to a similarity of text content, including a character similarity and an intention similarity. When the content overlap degree includes the character similarity, the content overlap degree is determined based on a quantity of identical unit characters (for example, a single Chinese character or a single word) in the text messages. When the content overlap degree includes the intention similarity, intention recognition is first performed on the text messages to obtain intentions represented by the text messages, so as to determine the content overlap degree of the text messages based on a similarity between the intentions of the text messages.

[0077] When a quantity of the at least two text messages is greater than two, the foregoing process is repeatedly performed on every two text messages in the at least two text messages, until the fused first text message is finally obtained.

[0078] In an example, based on the transmission times of the at least two text messages, automatic fusion is performed on the at least two text messages, thereby enriching the interaction mode of the session messages, and improving diversity of the session messages.

[0079] Operation 102: Display, in a second style in response to a fusion operation on the first text message and the at least one message element, a first fused message obtained through fusion, the first fused message including at least content of the first text message and content of the message element, and the second style being different from the first style.

[0080] As described above, the style refers to the form in which the session message such as the text message or the emoji is displayed on the session interface, which may for example indicate a message bubble or a message card. A style is characterized by at least one of the shape, the color, or the size of the message bubble or the message card, and different styles differ in at least one of these characteristics. Therefore, the second style being different from the first style means that at least one of the shape, the color, or the size of the message bubble or the message card differs between the first style and the second style. The second style is configured for assisting text content in the first fused message in indicating an emotion of the first fused message, for example, configured for emphasizing that the text content in the first fused message indicates the emotion of the first fused message.

[0081] In an example, the fusion operation on the first text message and the at least one message element refers to a fusion operation on the first text message and at least one of the at least one message element displayed on the session interface. For example, the at least one message element on which the fusion operation is performed is one or more message elements displayed on the session interface, and the fusion operation is fusing the first text message and one or more message elements displayed on the session interface.

[0082] Next, at least one of the at least one message element is used as a target message element, to describe the process of displaying, in the second style in response to the fusion operation on the first text message and the at least one message element, the first fused message obtained through fusion. The target message element may indicate one or more message elements. This is not limited in aspects of this disclosure.

[0083] In an example, since the message element includes at least one of a second text message or an emoji, for different cases of the target message element, the process of displaying, in the second style in response to the fusion operation on the first text message and the at least one message element, the first fused message obtained through fusion is also different.

[0084] A case in which the target message element includes the second text message is described below.

[0085] In an example, when the at least one message element, for example, the target message element, includes the second text message, the fusion operation may include a pinch operation on the first text message and the second text message, or the fusion operation may also include a drag operation and a release operation on the first text message and the second text message, or the fusion operation may also be a transmission operation on the second text message.

[0086] In an aspect, when the fusion operation includes the pinch operation on the first text message and the second text message, the process of displaying, in the second style in response to the fusion operation on the first text message and the at least one message element, the first fused message obtained through fusion may be displaying, in response to the pinch operation on the first text message and the second text message, a process of merging the first text message and the second text message; hiding the first text message and the second text message when a ratio of a first area to a second area reaches a target ratio, where the first area is an area of an overlapping region of the first text message and the second text message, and the second area is a display area of the first text message or a display area of the second text message; and displaying, in the second style, the first fused message obtained by fusing the first text message and the second text message.

[0087] The target ratio herein is similar to the foregoing target area ratio, and the target ratio may be preset. In addition, the first text message and the second text message may be carried in the message bubble or the message card. The display area of the first text message or the second text message indicates an occupied area of the corresponding message bubble or message card, and the overlapping region of the first text message and the second text message also refers to an overlapping region between the corresponding message bubbles or between the message cards. When the first text message and the second text message are carried in the message bubble, the first style and the second style indicate the style of the message bubble, and when the first text message and the second text message are carried in the message card, the first style and the second style indicate the style of the message card.

[0088] FIG. 4 is a schematic diagram of a first process of obtaining a first fused message through fusion according to an aspect of this disclosure. As shown in FIG. 4, a region indicated by a dashed box 403 in a of FIG. 4 is a message display region. In response to a fusion operation such as a pinch operation on two text messages, for example, a first text message and a second text message, indicated by a dashed box 401 in a of FIG. 4, a first fused message indicated by 402 in b of FIG. 4 is displayed.

[0089] Through application of the foregoing aspects, based on the pinch operation on the first text message and the second text message, the first text message and the second text message are fused to obtain the first fused message, and the first fused message is displayed in a second style. In this way, not only an interaction mode of session messages is enriched, but also diversity of the session messages is improved, thereby improving human-computer interaction efficiency and utilization of hardware resources of an electronic device.

[0090] In an aspect, when the fusion operation includes a drag operation and a release operation on each of the first text message and the second text message, the process of displaying, in the second style in response to the fusion operation on the first text message and the at least one message element, the first fused message obtained through fusion may be dragging, in response to the drag operation on the second text message, the second text message to the first text message; and displaying, in the second style in response to the release operation on the second text message, the first fused message obtained by fusing the first text message and the second text message.

[0091] The first text message may also be dragged to the second text message in response to the drag operation on the first text message, so as to display, in the second style in response to the release operation on the first text message, the first fused message obtained by fusing the first text message and the second text message. This is not limited in aspects of this disclosure. In addition, as described above, the first text message and the second text message may be carried in the message bubble or the message card, and the drag operation on each of the first text message and the second text message is also a drag operation on the message bubble or the message card where the first text message and the second text message are located.

[0092] In an aspect, when the fusion operation includes a transmission operation on the second text message, before the first fused message obtained through fusion is displayed in the second style in response to the fusion operation on the first text message and the at least one message element, a transmission time of the first text message may be further displayed at an associated position of the first text message; and when the transmission operation on the second text message is received, and a difference between a transmission time of the transmission operation and the transmission time of the first text message is less than a second difference threshold, the transmission operation is determined as a fusion operation on the first text message and the second text message.

[0093] The second difference threshold is preset, for example, may be 1 second or 2 seconds. The session interface herein may include a message editing region and a message display region. The first text message is displayed in the message display region, and before the second text message is transmitted, the second text message is displayed in the message editing region. When the transmission operation on the second text message is received, the difference between the transmission time of the transmission operation and the transmission time of the first text message is less than the second difference threshold, and the user performs the transmission operation on the second text message, the second text message is not displayed in the message display region, the first text message is hidden in the message display region, and the first fused message obtained by fusing the first text message and the second text message is displayed.

[0094] Through application of the foregoing aspects, based on the transmission times of the first text message and the second text message, the transmission operation on the second text message is used as the fusion operation, so as to fuse the first text message and the second text message. In this way, the process of fusing the first text message and the second text message is simplified, human-computer interaction efficiency and utilization of hardware resources of the electronic device are improved, an interaction mode of session messages is enriched, and diversity of the session messages is improved.

[0095] When the at least one message element, for example, the target message element, is the second text message, message content of the first fused message may be obtained by combining text content of the text messages, or may be regenerated based on the text content of the text messages. In other words, the first fused message may include content of the first text message and content of the second text message. For example, when the first text message is “Are you there?” and the second text message is “You there!”, the first fused message may be “Are you there? You there!” or “Are you there? You there!”. Alternatively, the first fused message includes content associated with the content of the first text message and the content of the second text message. For example, when the first text message is “Are you there?” and the second text message is “You there!”, the first fused message may be “Are you there???!!!”.

[0096] As described above, the first text message may be automatically fused. The first text message and the second text message herein may also be automatically fused. In addition, a process of automatically fusing the first text message and the second text message is similar to the foregoing process of automatic fusion to obtain the first text message. Details are not described herein in aspects of this disclosure.

[0097] In an example, when the message element includes the second text message, and the first fused message is obtained by fusing the first text message and the second text message, a first emoji may alternatively be displayed in the first fused message. The first emoji indicates an emotion represented by the first text message and the second text message that are fused.

[0098] The first emoji may be preset. For example, corresponding emojis may be respectively set for different emotions such as happiness, anger, sadness, and cry. Then, when the fusion operation on the first text message and the second text message is received, emotion recognition is performed on the first text message and the second text message to obtain emotions represented by the first text message and the second text message. Therefore, when the emotion represented by the first text message and the emotion represented by the second text message belong to the same category, a preset emoji corresponding to the emotion, for example, the first emoji, is obtained, so as to display the first emoji in the first fused message. When the emotion represented by the first text message and the emotion represented by the second text message belong to different categories, an emoji corresponding to the emotion represented by the first text message and an emoji corresponding to the emotion represented by the second text message are respectively obtained, and the two emojis are combined to form a first emoji, so as to display the first emoji in the first fused message. The two emojis being combined to form the first emoji may be generating a new emoji, for example, the first emoji, based on the two emojis, or directly using the two emojis as the first emoji, for example, simultaneously displaying the two emojis, or periodically switching and displaying the two emojis.

[0099] FIG. 5 is a schematic diagram of displaying a first emoji in a first fused message according to an aspect of this disclosure. As shown in FIG. 5, in a of FIG. 5, a first text message and a second text message are indicated by a dashed box 501, and a first fused message is indicated by 502 in b of FIG. 5. When the first text message and the second text message indicated by the dashed box 501 in a of FIG. 5 are fused to obtain the first fused message indicated by 502 in b of FIG. 5, a first emoji indicated by 503 is displayed in the first fused message. Emotions represented by the first text message and the second text message are anger, and an emotion represented by the first emoji is also anger.

[0100] In an example, for a process of performing emotion recognition on the first text message and the second text message to obtain the emotions represented by the first text message and the second text message, the first text message is used as an example. First, message content of the first text message is extracted, and an emotion keyword in the message content is obtained. The emotion keyword indicates the emotion represented by the message content, which may be for example a word directly indicating an emotion such as sadness, happiness, cry, or anger, or may be an emoticon such as TT or QAQ that may indicate cry, or may be a punctuation mark such as ???. For example, ??? may indicate doubts. Then, when the emotion keyword is successfully obtained, a preset mapping relationship between the emotion keyword and an emotion is obtained, and an emotion represented by the first text message is determined based on the obtained emotion keyword and the mapping relationship. When the emotion keyword fails to be obtained, a pre-trained emotion recognition model is invoked to perform emotion recognition on the message content, to obtain the emotion represented by the first text message.

[0101] A process of recognizing the emotion represented by the second text message is similar to the process of recognizing the emotion represented by the first text message. Details are not described herein in aspects of this disclosure.

[0102] In an example, the first emoji for indicating the emotions represented by the first text message and the second text message that are fused is displayed in the first fused message. In this way, display diversity of session messages is improved, and human-computer interaction efficiency and utilization of hardware resources of an electronic device are also improved.

[0103] In an example, as described above, the first fused message may include the first emoji, so that a second style may also indicate a style of a message bubble or a message card including the first emoji. In this way, when the first fused message is displayed in the form of the second style, an emotion represented by the first fused message may be highlighted directly based on the second style. In addition, the first text message may include an emoji, or may not include an emoji. When the first text message includes the emoji, the emoji is different from the first emoji, so that the first style is different from the second style. When the first text message does not include the emoji, the first style is also different from the second style.

[0104] In an example, after the first emoji is displayed in the first fused message, the first emoji may be further switched. The first emoji herein may be switched based on an operation of a target object, or the first emoji may be automatically switched. Next, the two switching processes are respectively described.

[0105] In some aspects, a session interface further includes a third text message. After the first fused message is displayed in the second style, a second fused message obtained through fusion may be further displayed in a third style in response to a fusion operation on the first fused message and the third text message. The second fused message includes content of the first fused message, content of the third text message, and a second emoji that replaces the first emoji. An emotion represented by the second emoji and the emotion represented by the first emoji belong to the same category, and an intensity of the emotion represented by the second emoji is higher than that of the emotion represented by the first emoji.

[0106] The intensity of the emotion represented by the second emoji being higher than that of the emotion represented by the first emoji means that the emotion expressed by the second emoji is stronger, for example, the second emoji is more exaggerated than the first emoji. For example, the first emoji may be a smile, and the second emoji may be a loud laugh. In addition, the emotion represented by the second emoji is the same as an emotion represented by the third text message. When the fusion operation on the first fused message and the third text message is received, emotion recognition is performed on the first fused message and the third text message. A process of the emotion recognition is as described above. Then, when a result of the emotion recognition indicates that an emotion represented by the first fused message and an emotion represented by the third text message belong to the same category, the first fused message and the third text message are fused to obtain the second fused message, and the second fused message is displayed in the third style. Similar to the first fused message described above, the second fused message may include content of the first fused message and content of the third text message, or may include content associated with the content of the first fused message and the content of the third text message. In addition, similar to the second style described above, the third style herein may also be configured for indicating a style of a message bubble or a message card including the second emoji.

[0107] FIG. 6 is a schematic diagram of displaying a second fused message in a third style according to an aspect of this disclosure. As shown in FIG. 6, in response to a fusion operation on a first fused message indicated by 601 in a of FIG. 6 and a third text message indicated by 602 in a, a second fused message indicated by 604 in b of FIG. 6 is displayed. The second fused message includes a second emoji that is indicated by 605 in b of FIG. 6 and that replaces a first emoji indicated by 603 in a of FIG. 6, and an emotion represented by the second emoji and an emotion represented by the first emoji belong to the same emotion category, for example, anger.

[0108] When a result of emotion recognition indicates that an emotion represented by the first fused message and an emotion represented by a third text message do not belong to the same category, the first fused message and the third text message are still fused to obtain the second fused message, and the second fused message is displayed in the third style, but the emotion represented by the second emoji and the emotion represented by the first emoji do not belong to the same category.

[0109] In an example, after the first fused message is obtained, the first fused message and the third text message can be further fused to obtain the second fused message. In this way, diversity of session messages, human-computer interaction efficiency, and utilization of hardware resources of an electronic device are further improved.

[0110] In an aspect, after the first emoji is displayed in the first fused message, a display duration of the first emoji may be further displayed. When the display duration reaches a target display duration, the first emoji is switched to a third emoji different from the first emoji. An emotion indicated by the third emoji and the emotion indicated by the first emoji belong to the same emotion category.

[0111] The target display duration is also preset, for example, 3 seconds. In addition, the third emoji is also preset, and is an emoji for highlighting the emotions represented by the third emoji and the first emoji, so that the emotion represented by the first fused message is displayed more profoundly. Similar to the second emoji described above, an intensity of an emotion represented by the third emoji is also higher than that of an emotion represented by the first emoji. In other words, the emotion expressed by the third emoji is stronger. For example, the third emoji is more exaggerated than the first emoji. For example, the first emoji may be a smile, and the third emoji may be a loud laugh.

[0112] FIG. 7 is a schematic diagram of a process of switching a first emoji to a third emoji according to an aspect of this disclosure. As shown in FIG. 7, when a display duration reaches a target display duration, the first emoji that is in a first fused message indicated by 701 in a of FIG. 7 and that is indicated by 702 is switched to the third emoji that is indicated by 703 in b of FIG. 7 and that is different from the first emoji.

[0113] Through application of the foregoing aspects, when the display duration of the first emoji reaches the target display duration, the first emoji is automatically switched to the third emoji. In this way, display diversity of session messages is improved, and visual experience of a user is also improved.

[0114] A fusion operation on the first fused message and a third text message herein is similar to the foregoing fusion operation on the first text message and the second text message. A process of displaying, in a third style, a second fused message obtained through fusion is also similar to the foregoing process of displaying, in the second style, the first fused message obtained through fusion. Details are not described herein in aspects of this disclosure.

[0115] A case in which at least one message element, for example, a target message element, includes an emoji is described below.

[0116] In an example, a session interface includes a message display region and a message editing region. The at least one message element, for example, the target message element, includes a fourth emoji displayed in the message editing region, and the first text message may be displayed in the message display region. Therefore, a process of displaying, in the second style in response to a fusion operation on the first text message and at least one message element, the first fused message obtained through fusion may be dragging, in response to a drag operation on a fourth emoji, the fourth emoji from the message editing region to the first text message in the message display region; and displaying, in the second style in response to a release operation on the fourth emoji, a first fused message obtained by fusing the fourth emoji and the first text message.

[0117] The fourth emoji may be displayed not only in the message editing region but also in the message display region. When the fourth emoji is displayed in the message display region, the fusion operation on the first text message and the at least one message element may be further a pinch operation on the first text message and the at least one message element in addition to the drag operation and the release operation. Herein, a process of performing the pinch operation on the first text message and the at least one message element is the same as the foregoing process of performing the pinch operation on the first text message and the second text message. Details are not described herein in aspects of this disclosure.

[0118] As described above, the message display region is a region on the session interface where two objects that perform a session display transmitted session messages, and the message editing region is a region on the session interface where the at least two objects that perform the session edit the session messages. In addition, the second style is also preset, and corresponds to the fourth emoji, or may alternatively include the fourth emoji. An emotion represented by the first fused message herein is the same as an emotion represented by the fourth emoji, and content of the first fused message may be the same as the first text message, or may be associated with the first text message.

[0119] FIG. 8 is a schematic diagram of a second process of obtaining a first fused message through fusion according to an aspect of this disclosure. As shown in FIG. 8, a session interface includes a message display region indicated by a dashed box 801 in a of FIG. 8 and a message editing region indicated by a dashed box 802. Next, in response to a drag operation on a fourth emoji in the message editing region that is indicated by 804 in a, the fourth emoji is dragged from the message editing region to the first text message in the message display region that is indicated by 803 in a. Then, in response to a release operation on the fourth emoji, the first fused message that is indicated by 805 in b of FIG. 8 and that is obtained by fusing the fourth emoji and the first text message is displayed in a second style, where the second style is preset and corresponds to the fourth emoji.

[0120] In an example, the fourth emoji is dragged to the first text message, so that the fourth emoji and the first text message are fused to obtain the first fused message, which not only enriches an interaction mode of the session messages but also improves diversity of the session messages, thereby improving human-computer interaction efficiency and utilization of hardware resources of an electronic device.

[0121] In an aspect, the first fused message has the fourth emoji displayed therein, and further includes a fifth emoji. An emotion represented by the fifth emoji and an emotion represented by the fourth emoji belong to the same emotion category. Therefore, the process of displaying, in the second style, the first fused message obtained by fusing the fourth emoji and the first text message may be displaying, in the second style, a message bubble, and displaying the first fused message in the message bubble. The fifth emoji and the fourth emoji are periodically switched and displayed in the message bubble.

[0122] The emotion category may be preset, for example, may be classified based on an emotional tendency, such as positive and negative, for example, a positive emotion being a category, and a negative emotion being a category, or may be classified based on specific emotions, such as sadness, happiness, and anger. This is not limited in aspects of this disclosure. In addition, the message bubble is configured for carrying a corresponding third target message. As described above, the second style is characterized by at least one of a shape, a color, or a size of the message bubble. In addition, the message bubble may also be in a form of a message card. This is not limited in aspects of this disclosure. In addition, a frequency of periodic switching herein may be preset, for example, may be three seconds.

[0123] Through application of the foregoing aspects, the fourth emoji and the fifth emoji are periodically switched and displayed in the first fused message. In this way, not only display diversity of session messages is improved, but also visual experience of a user is improved.

[0124] In an aspect, the message editing region further includes a sixth emoji, and the second style indicates that the first fused message has the fourth emoji displayed therein. Therefore, after the first fused message obtained by fusing the fourth emoji and the first text message is displayed in the second style, in response to a drag operation on the sixth emoji, the sixth emoji is dragged from the message editing region to the first fused message in the message display region. In response to a release operation on the sixth emoji, a third fused message is displayed in a fourth style when an emotion represented by the sixth emoji and the emotion represented by the fourth emoji belong to different emotion categories. The third fused message includes content of the first fused message and the sixth emoji that replaces the fourth emoji.

[0125] In an example, when the release operation on the sixth emoji is received, the emotion corresponding to the sixth emoji and the emotion corresponding to the fourth emoji are recognized to obtain a recognition result. When the recognition result represents that the emotion corresponding to the sixth emoji and the emotion corresponding to the fourth emoji belong to different emotion categories, the fourth style corresponding to the sixth emoji is obtained, thereby displaying the third fused message in the fourth style.

[0126] In addition, similar to the second style described above, the fourth style herein may also be configured for indicating a style of a message bubble or a message card that includes the sixth emoji or corresponds to the sixth emoji. An emotion represented by the third fused message is the same as the emotion represented by the sixth emoji, and content of the third fused message may be the same as the first fused message, or may be associated with the first fused message. For example, text content of the first fused message may alternatively be modified. In other words, a modal particle corresponding to the sixth emoji is obtained based on the content of the first fused message, and a modal particle in the first fused message is modified based on the modal particle corresponding to the sixth emoji, to obtain the third fused message. This is not limited in aspects of this disclosure.

[0127] FIG. 9 is a schematic diagram of displaying a third fused message in a fourth style according to an aspect of this disclosure. As shown in FIG. 9, a session interface includes a message display region indicated by a dashed box 901 in a of FIG. 9 and a message editing region indicated by a dashed box 902. Then in response to a drag operation on a sixth emoji in the message editing region that is indicated by 904 in a, the sixth emoji is dragged from the message editing region to a first fused message in the message display region that is indicated by 903 in a. An emotion corresponding to the sixth emoji is happiness, and an emotion corresponding to the fourth emoji is anger, both of which belong to different emotion categories. Therefore, in response to a release operation on the sixth emoji, the fourth style corresponding to the sixth emoji is obtained, and the third fused message indicated by 905 in b of FIG. 9 is displayed in the fourth style. Herein, the fourth style indicates a style including the sixth emoji. The third fused message includes content of the first fused message and the sixth emoji that is indicated by 907 in b of FIG. 9 and that replaces the fourth emoji indicated by 906 in a of FIG. 9. A modal particle in the first fused message is modified based on a modal particle corresponding to the sixth emoji. In other words, a modal particle “”is modified to“”.

[0128] In an example, when a release operation on the fourth emoji or the sixth emoji is received, emotions corresponding to a corresponding emoji and a corresponding text message are recognized to obtain a recognition result, and subsequent processing is performed based on the recognition result. The sixth emoji is used as an example. When the recognition result represents that the emotion represented by the sixth emoji and an emotion represented by the third fused message belong to different emotion categories, the fourth style indicates a style corresponding to the sixth emoji, for example, the third fused message is displayed by using the fourth style corresponding to the sixth emoji, thereby displaying the emotion corresponding to the sixth emoji in the fourth style. When the recognition result represents that the emotion represented by the sixth emoji and the emotion represented by the third fused message belong to the same emotion category, compared with a second style, the fourth style highlights the emotions represented by the sixth emoji and the fourth emoji. A processing process of the fourth emoji is similar to that of the first text message. Details are not described herein in aspects of this disclosure.

[0129] In an example, an emoji is dragged to a text message to implement fusion of the emoji and the text message. This not only improves human-computer interaction efficiency and utilization of hardware resources of an electronic device, but also enriches an interaction mode of session messages, thereby improving diversity of the session messages.

[0130] In an aspect, at least one message element includes another message element, and the another message element is different from the at least one message element, for example, a target message element. Therefore, after the first fused message obtained through fusion is displayed in the second style in response to a fusion operation on the first text message and the at least one message element, a process of fusing the another message element and the first fused message may be further dynamically displayed in response to a fusion operation on the first fused message and the another message element. When a quantity of fusions corresponding to the first fused message is between a first quantity of times and a second quantity of times, a fourth fused message is displayed in a fifth style different from the second style. The fourth fused message includes content of the first fused message and content of the another message element, and the fifth style is configured for highlighting an emotion represented by the another message element.

[0131] The process of fusing the another message element and the first fused message is dynamically displayed, for example, a process of fusing the another message element into the first fused message is dynamically displayed, which indicates a process of gradual disappearance of the another message element. During the gradual disappearance of the another message element, the quantity of fusions corresponding to the first fused message is obtained. When the quantity of fusions is between the first quantity of times and the second quantity of times, the fourth fused message is displayed in the fifth style different from the second style. The first quantity of times and the second quantity of times may be preset, and the second quantity of times is greater than the first quantity of times. In addition, the fifth style may also be preset.

[0132] The quantity of fusions corresponding to the first fused message includes a quantity of fusion processes performed when the first fused message is obtained, for example, a sum of a process of automatic fusion and a process of fusion performed based on a fusion operation. For example, when the first text message is obtained through the automatic fusion and the first fused message is obtained through a fusion operation on the first text message and the at least one message element, for example, the target message element such as an emoji or a text message, the quantity of fusions corresponding to the first fused message herein is two.

[0133] FIG. 10 is a schematic diagram of displaying a fourth fused message in a fifth style according to an aspect of this disclosure. As shown in FIG. 10, in response to a fusion operation on a first fused message indicated by 1001 in a of FIG. 10 and another message element indicated by 1002 in a of FIG. 10, a process of fusing the another message element and the first fused message is dynamically displayed. When a quantity of fusions corresponding to the first fused message is between a first quantity of times and a second quantity of times, the fourth fused message is displayed in the fifth style indicated by 1003 in b of FIG. 10 that is different from the second style indicated by 1001 in a of FIG. 10.

[0134] In an example, the another message element may be further fused into the first fused message. In addition, only when the quantity of fusions corresponding to the first fused message is between the first quantity of times and the second quantity of times, the fourth fused message obtained through fusion is displayed in the fifth style. In this way, not only an interaction mode of session messages is enriched, but also display diversity of the session messages is improved, and a fusion process of messages is also limited, thereby avoiding a situation of infinite fusion of messages, and reducing a waste of resources.

[0135] In an example, a session interface includes a message display region, and the first fused message is displayed in the message display region. When the quantity of fusions corresponding to the first fused message is greater than the second quantity of times, the first fused message that incorporates the another message element may be further converted into a bullet comment, and the bullet comment is fixedly displayed at a target position of the message display region. When a display duration of the bullet comment reaches a first duration, the bullet comment is hidden.

[0136] The target position indicates a display region occupied by the bullet comment. The display region herein may be an entire session interface or a partial region of the session interface, or may be an entire message display region or a partial region of the message display region. This is not limited in aspects of this disclosure. When the display region is a partial region, an area ratio of the display region to the corresponding session interface or message display region is preset. For example, the display region occupies half of the session interface, or the display region occupies half of the message display region.

[0137] The first duration may be preset, for example, 5 seconds. When the display duration of the bullet comment reaches the first duration, the bullet comment is hidden. In this way, in addition to ensuring a bullet comment effect, excessive interference with a session process of a user is prevented, thereby improving session experience of the user.

[0138] FIG. 11 is a schematic diagram of fixedly displaying a bullet comment at a target position according to an aspect of this disclosure. As shown in FIG. 11, when another message element indicated by 1102 in a of FIG. 11 is fused with a first fused message indicated by 1101 in a of FIG. 11, and a quantity of fusions corresponding to the first fused message indicated by 1101 in a of FIG. 11 is greater than a second quantity of times, the first fused message that incorporates the another message element is converted into a bullet comment indicated by 1103 in b of FIG. 11, and the bullet comment is fixedly displayed at a target position of a message display region shown in b of FIG. 11. When a display duration of the bullet comment reaches a first duration, the bullet comment is hidden, and an interface shown in c of FIG. 11 is displayed.

[0139] Through application of the foregoing aspects, when the quantity of fusions corresponding to the first fused message is greater than the second quantity of times, the first fused message that incorporates the another message element is converted into the bullet comment. In this way, display diversity of session messages is improved, visual experience of a user is improved, and display diversity of the session messages is also improved.

[0140] In an example, the another message element is transmitted by a target object. Therefore, after the bullet comment is fixedly displayed at the target position of the message display region, a bullet comment reply to the bullet comment from another object may be further displayed in a suspended manner above the bullet comment. The another object is an object with which the target object performs a session on the session interface.

[0141] The another object may be one or more objects. When seeing the bullet comment transmitted by the target object, the another object transmits a reply message for the bullet comment reply. When the reply message is transmitted to the message display region on the session interface, the reply message is converted into the bullet comment reply, and the bullet comment reply is displayed, in a suspended manner, above the bullet comment transmitted by the target object.

[0142] FIG. 12 is a schematic diagram of a bullet comment reply of another object displayed in a suspended manner above a bullet comment according to an aspect of this disclosure. As shown in FIG. 12, after the bullet comment is fixedly displayed at a target position of a message display region, the bullet comment reply to the bullet comment from the another object that is indicated by a dashed box 1202 is displayed, in a suspended manner, above a bullet comment indicated by 1201.

[0143] In an example, the bullet comment reply to the bullet comment from the another object is displayed in a suspended manner above the bullet comment. In this way, in addition to ensuring a bullet comment effect, excessive interference with a session process of a user is prevented, thereby improving session experience of the user.

[0144] In an example, after the bullet comment is fixedly displayed at the target position of the message display region, if a target object continues to transmit a session message, the subsequently transmitted session message may alternatively be displayed in the bullet comment. A session interface further includes a message editing region. Therefore, after the bullet comment is fixedly displayed at the target position of the message display region, edited message content may be further displayed in response to a message editing operation triggered based on the message editing region; and the edited message content is displayed in the bullet comment at the target position in response to a transmission instruction on the edited message content. The message content herein includes at least one of a text message, an emoji message, or a voice message.

[0145] Through application of the foregoing aspects, if the target object continues to transmit the session message, the subsequently transmitted session message may alternatively be displayed in the bullet comment. In this way, excessive interference with a session process of the user is avoided, session experience of the user is improved, and the session message subsequently transmitted by the target object is also prominently displayed in the bullet comment, so that the bullet comment is fully utilized, for example, utilization of display resources is improved.

[0146] In an aspect, a first fused message obtained through fusion may be further restored. After the first fused message obtained through fusion is displayed in a second style in response to a fusion operation on a first text message and at least one message element, a process of restoring the first fused message to obtain the first text message and a message element may be further displayed in response to a restoration condition of the first fused message being satisfied. The restoration condition includes at least one of: a reply message for the first fused message is received; a display duration of the first fused message reaches a second duration; or a restoration instruction for the first fused message is received, the restoration instruction being configured for instructing to restore the first fused message to the first text message and the message element.

[0147] When the first fused message is transmitted from the target object, the reply message for the first fused message is transmitted from another object on the session interface other than the target object. The second duration may also be preset, for example, 5 seconds. In addition, the restoration instruction for the first fused message may be triggered by the target object corresponding to the session interface. A restoration control for restoring the first fused message may be displayed on the session interface, so that the restoration instruction for the first fused message is received in response to a trigger operation on the restoration control. Alternatively, the restoration instruction for the first fused message may be received in response to receiving a restoration operation, such as a pressing operation or a sliding operation, on the first fused message that is triggered on the session interface, or the like.

[0148] In an aspect, the second fused message, the third fused message, and the fourth fused message described above may be further restored. A restoration condition for each of the second fused message, the third fused message, and the fourth fused message is similar to the restoration condition for the first fused message. In addition, a restoration process for each of the second fused message, the third fused message, and the fourth fused message is similar to the restoration process for the first fused message, and details are not described herein in aspects of this disclosure. Furthermore, after the second fused message, the third fused message, and the fourth fused message are restored to obtain the first fused message, the first fused message may further continue to be restored, and the restoration process is as described above. Details are not described herein in aspects of this disclosure.

[0149] In an example, the fused message may be further restored. In this way, flexibility of a message fusion process is improved, user experience is improved, and an interaction mode of session messages is also enriched, thereby improving human-computer interaction efficiency and utilization of hardware resources of an electronic device.

[0150] In an aspect, only a user having a fusion operation execution permission can fuse session messages. In other words, a process of displaying, in the second style in response to the fusion operation on the first text message and the at least one message element, the first fused message obtained through fusion may be displaying, in the second style in response to the fusion operation on the first text message and the at least one message element, the first fused message obtained through fusion when the target object triggering the fusion operation has the fusion operation execution permission. Therefore, when the target object does not have the fusion operation execution permission, first permission prompt information is displayed, the first permission prompt information being configured for indicating that the target object does not have the fusion operation execution permission.

[0151] The fusion operation execution permission may be determined based on an account level of the target object, or the like. When the fusion operation on the first text message and the at least one message element is received, account information of the target object is obtained. The account information includes the account level corresponding to the target object, or the like. Permission detection is performed on the target object based on the account information of the target object, to obtain a detection result indicating whether the target object has the fusion operation execution permission. Therefore, when the detection result indicates that the target object has the fusion operation execution permission, the first fused message obtained through fusion is displayed in the second style. When the target object does not have the fusion operation execution permission, the first permission prompt information is displayed.

[0152] Through application of the foregoing aspects, it is determined, by determining whether the target object has the fusion operation execution permission, whether the first fused message obtained through fusion is displayed in the second style. In this way, the message fusion process is limited, thereby avoiding a situation of infinite fusion of messages, and reducing a waste of resources.

[0153] In an example, when the target object does not have the fusion operation execution permission, after the first permission prompt information is displayed, an interaction task and task guidance information may be further displayed. The task guidance information is configured for guiding the target object to perform the interaction task. In response to a task execution operation on the interaction task and triggered based on the task guidance information, an execution process of the interaction task is displayed. When the interaction task is completed, second permission prompt information is displayed. The second permission prompt information indicates that the target object has had the fusion operation execution permission.

[0154] The task guidance information may be in a text form, an image form, or a video form. This is not limited in aspects of this disclosure. The interaction task may be watching a promotion video related to an application corresponding to the session interface, sharing promotion information related to the application corresponding to the session interface, completing a mini game related to the application corresponding to the session interface, or the like. When the interaction task is watching the promotion video related to the application corresponding to the session interface, if the target object does not have the fusion operation execution permission, when the fusion operation on the first text message and the at least one message element is received, the promotion video is played, and a watching duration of the promotion video is displayed. When the watching duration reaches a target watching duration, it is determined that execution of the interaction task is completed. When the interaction task is sharing the promotion information related to the application corresponding to the session interface, if the target object does not have the fusion operation execution permission, when the fusion operation on the first text message and the at least one message element is received, a sharing control for sharing the promotion information is displayed. When a sharing operation triggered based on the sharing control is received, it is determined that the execution of the interaction task is completed. When the interaction task is completing the mini game related to the application corresponding to a virtual scene, if the target object does not have the fusion operation execution permission, when the fusion operation on the first text message and the at least one message element is received, a game interface is displayed. In response to a game execution operation, an execution result of the game execution operation is displayed on the game interface. When the execution result represents that the game is completed, it is determined that the execution of the interaction task is completed. Based on the above, when execution of the interaction task is completed, the target object is controlled to have the fusion operation execution permission.

[0155] In this way, based on the set interaction task, the target object can be controlled to have the fusion operation execution permission, which not only enriches diversity of a process of performing an interaction operation on session messages, but also improves human-computer interaction efficiency and utilization of hardware resources.

[0156] Through application of the foregoing aspects of this disclosure, a first text message is first displayed in a first style on a session interface, and at least one message element including at least one of a second text message or an emoji is displayed. Then the first text message and at least one of the at least one message element are fused to obtain a first fused message including content of the first text message and content of the message element, and the first fused message is displayed in a second style different from the first style. In this way, through a fusion operation on a text message and a message element, a display style of the text message and content of the text message are changed. In this way, not only an interaction mode of session messages is enriched, but also diversity of the session messages is improved, thereby improving human-computer interaction efficiency and utilization of hardware resources of an electronic device.

[0157] An example of an application of aspects of this disclosure is described below.

[0158] In a session process of a related technology, a chat bubble has a fixed form, resulting in a rigid and tedious session experience. Meanwhile, user emotions may only be conveyed through characters or emojis, which constitutes an overly single expression method. Furthermore, misinterpretation of emotions frequently occurs in many scenarios, which further degrades overall session experience.

[0159] Based on this, the present disclosure provides a new expression method for characters and voice in chat conversations, aiming to more accurately express user emotions and unlock more interactive gameplay modes. Through fusion of character messages (text session messages), fusion of emojis (an emoji) and a bubble (a target message), and fusion of the emojis and a voice message, a more physically intuitive transformation is performed on the voice message and a bubble state (style) of the voice message. In this way, an emotion between users may be more clearly expressed and conveyed, and more interesting user interaction may be increased. In addition, the user pinches a character message with both hands, and enhances expression of the character message by changing a form of a character bubble, and may also merge character messages by touching and holding and dragging the character message into another character message, so as to enhance expression of the character message by changing the form of the character bubble. In addition, a message may be assigned different forms by dragging the emojis into a character message or a voice message, such as a shape, a color, a character, sound, and emojis of a bubble. Moreover, when the user has not performed voice input, the user may directly drag an emoji into a voice control, thereby intelligently generating current buzzwords based on meanings of the emojis, and converting the buzzwords into AI-generated voice for transmission.

[0160] Next, the technical solution of this disclosure is described from a product side.

[0161] For the character message, as shown in FIG. 4, FIG. 5, and FIG. 6, in response to a pinch operation on the character message, a color, a shape, an emoji, or the like of a chat bubble is changed, thereby enhancing emotion expression of the user. Alternatively, as shown in FIG. 8, FIG. 9, and FIG. 10, in response to dragging an emoji into a bubble, a color, a shape, an emoji, or the like of a chat bubble is changed, to enhance emotion expression of the user.

[0162] For the voice message, in response to a drag operation on an emoji, the emoji is dragged into the voice message, thereby changing a timbre of voice. Alternatively, in response to dragging an emoji into a voice control without voice, a relevant voice is automatically generated based on the emoji, and then after a playback instruction on the voice is received, the voice is read out intelligently by AI.

[0163] Next, the technical solutions of this disclosure are described from a technical perspective.

[0164] In an example, the technical solutions of this disclosure mainly include three processes, for example, an operation process in which the user changes a style of a chat bubble through an emoji and a gesture, an operation process of floating display and restoration of a bullet comment in a super bubble scenario, and a process of changing an emotion represented by a bubble through an operation performed by the user.

[0165] FIG. 13 is a schematic flowchart of changing a style of a chat bubble through an emoji and a gesture according to an aspect of this disclosure. As shown in FIG. 13, the operation process in which the user changes the style of the chat bubble through the emoji and the gesture is implemented through operation 1 to operation 17 in FIG. 13. First, a normal text message may be inputted, and then an emoji is dragged into a chat bubble of the text message to change the style of the chat bubble, or adjacent text messages are pinched through a gesture to change the style of the chat bubble.

[0166] For an input of the normal text message, the chat dialog text inputted by the message transmitter is transmitted first in response to a transmission operation performed on inputted chat dialog text by a message transmitter. A transmitter client, for example, a client corresponding to the message transmitter, transmits the chat dialog text to a server side, so that after receiving the chat dialog text, the server side generates a unique message identifier, writes the chat dialog text into storage, and simultaneously pushes the chat dialog text to a receiver client, for example, a client corresponding to a message receiver. In addition, after the chat dialog text is successfully displayed on the receiver client, the transmitter client receives the unique message identifier of the chat dialog text transmitted by the server side, and displays, on the session interface, a chat bubble and text content corresponding to the chat dialog text.

[0167] For the process of changing the style of the chat bubble by dragging the emoji into the chat bubble of the foregoing chat dialog text, in response to the message transmitter dragging a system emoji into the chat bubble of the chat dialog text, the transmitter client transmits, to the server side, a chat emotion change request carrying an emoticon dragged by the message transmitter and an identifier of the chat dialog text. The server side receives the chat emotion change request, determines an emotion expressed by the emoticon, calculates a new bubble style result based on a current emotion expressed in the message, updates the new bubble style result to cloud storage, and then pushes a style change result of the message to the receiver client, for example, the client corresponding to the message receiver. In addition, after the style change result is successfully displayed on the receiver client, the transmitter client receives a new bubble style of the chat dialog text transmitted by the server side, so that a new chat bubble and text content corresponding to the chat dialog text are displayed on the session interface.

[0168] For the process of changing the style of the chat bubble by pinching adjacent text messages through a gesture, in response to a pinch operation on chat dialog text and a text message adjacent to the chat dialog text performed by the message transmitter, the transmitter client extracts a message identifier of a pinched message, and transmits, to the server side, a chat emotion change request carrying a list of message identifiers associated with the pinch operation (if an emoji is transmitted together). The server side receives the chat emotion change request, calculates a new bubble style result based on a quantity of messages and a meaning expressed by the emoji by analyzing the list of message identifiers associated with the pinch operation or a system emoji included in the request, updates the new bubble style result to cloud storage, and then pushes a style change result of the message to the receiver client, for example, the client corresponding to the message receiver. In addition, after the style change result is successfully displayed on the receiver client, the transmitter client receives a new bubble style of the chat dialog text transmitted by the server side, so that a new chat bubble and text content corresponding to the chat dialog text are displayed on the session interface.

[0169] FIG. 14 is a schematic flowchart of displaying a bullet comment and restoring the bullet comment according to an aspect of this disclosure. As shown in FIG. 14, the operation process of floating display and restoration of the bullet comment in the super bubble scenario is implemented through operation 1 to operation 20 in FIG. 14. When a changed chat bubble is a super bubble such as a full-screen bullet comment, and the message transmitter continues to transmit a message, a first message to a fourth message are displayed with a screen-floating effect in the super bubble, and are also displayed with a screen-floating effect in the super bubble on an interface of the receiver client. When a fifth message is transmitted, the super bubble is restored, in other words, a message included in the super bubble is restored into an individually displayed message, and is displayed in a normal bubble style.

[0170] FIG. 15 is a schematic flowchart of changing, through an operation, an emotion represented by a bubble according to an aspect of this disclosure. As shown in FIG. 15, the process of changing, through an operation performed by a user, the emotion represented by the bubble is implemented through operation 1 to operation 20 in FIG. 15. On a session interface of a message transmitter and a message receiver, in response to a transmission operation performed by the message transmitter on chat text, transmitted chat text is displayed on the session interface. Then, in response to the message transmitter dragging an emoji of wrath into a chat bubble, an emotion bubble of wrath is generated. In other words, the transmitted chat text is displayed based on the emotion bubble of wrath. Then, after the message receiver replies to the chat text, in response to the message transmitter dragging an emoji of happiness into the emotion bubble of wrath, the emotion bubble of wrath is changed into an emotion bubble of happiness, and then the transmitted chat text is displayed based on the emotion bubble of happiness.

[0171] In an aspect, when an emotion is not directly recognized, chat bubble forms of different emotions may be generated by determining keywords and key punctuation marks and through user-defined emotions. In addition, when the emotion is recognized through voice and the voice is converted into characters, the chat bubble forms of different emotions may be generated by determining emotions of the user.

[0172] In this way, through this disclosure, a real emotion of the user can be understood, so as to transfer emotion information to another user more desirably. In this way, the user can more directly sense an emotion and semantics of another person, thereby increasing fun of chatting.

[0173] Through application of the foregoing aspects of this disclosure, a first text message is first displayed in a first style on a session interface, and at least one message element including at least one of a second text message or an emoji is displayed. Then the first text message and at least one of the at least one message element are fused to obtain a first fused message including content of the first text message and content of the message element, and the first fused message is displayed in a second style different from the first style. In this way, through a fusion operation on a text message and a message element, a display style of the text message and content of the text message are changed. In this way, not only an interaction mode of session messages is enriched, but also diversity of the session messages is improved, thereby improving human-computer interaction efficiency and utilization of hardware resources of an electronic device.

[0174] An example of a structure of the apparatus 455 for processing a session message provided in aspects of this disclosure implemented as a software module is further described below. In some aspects, as shown in FIG. 2, software modules in the apparatus 455 for processing a session message stored in the memory 450 may include:

[0175] a display module 4551, configured to display, on a session interface, a first text message in a first style, and display at least one message element, the message element including at least one of a second text message or an emoji; and

[0176] a fusion module 4552, configured to display, in a second style in response to a fusion operation on the first text message and the at least one message element, a first fused message obtained through fusion, the first fused message including at least content of the first text message and content of the message element, and the second style being different from the first style.

[0177] In an aspect, the apparatus further includes a second display module. The second display module is configured to display at least two text messages on the session interface. The display module 4551 is further configured to display, in the first style on the session interface in response to a fusion operation on the at least two text messages, a first text message obtained by fusing the at least two text messages, the first text message including text content of the at least two text messages.

[0178] In an aspect, the display module 4551 is further configured to display, on the session interface, at least two text messages that are consecutively received, and a transmission time of each of the text messages; and display, in response to a difference between the transmission times of the at least two text messages being less than a first difference threshold, a process of fusing the at least two text messages when a content overlap degree of the text messages reaches an overlap degree threshold, and display, in the first style, the first text message obtained by fusing the at least two text messages.

[0179] In an aspect, the at least one message element includes the second text message, and the fusion operation includes a pinch operation on the first text message and the second text message. The fusion module 4552 is further configured to display, in response to the pinch operation on the first text message and the second text message, a process of merging the first text message and the second text message; undisplay the first text message and the second text message when a ratio of a first area to a second area reaches a target ratio, where the first area is an area of an overlapping region of the first text message and the second text message, and the second area is a display area of the first text message or a display area of the second text message; and display, in the second style, the first fused message obtained by fusing the first text message and the second text message.

[0180] In an aspect, the at least one message element includes the second text message, and the first fused message is obtained by fusing the first text message and the second text message. The apparatus further includes a third display module. The third display module is configured to display a first emoji in the first fused message. The first emoji indicates an emotion represented by the first text message and the second text message that are fused.

[0181] In an aspect, the session interface further includes a third text message. The apparatus further includes a fourth display module. The fourth display module is configured to display, in a third style in response to a fusion operation on the first fused message and the third text message, a second fused message obtained through fusion. The second fused message includes content of the first fused message, content of the third text message, and a second emoji that replaces the first emoji. An emotion represented by the second emoji and an emotion represented by the first emoji belong to the same category, and an intensity of the emotion represented by the second emoji is higher than that of the emotion represented by the first emoji.

[0182] In an aspect, the apparatus further includes a fifth display module. The fifth display module is configured to display a display duration of the first emoji; and switch the first emoji to a third emoji different from the first emoji when the display duration reaches a target display duration. An emotion indicated by the third emoji and the emotion indicated by the first emoji belong to the same emotion category.

[0183] In an aspect, the at least one message element includes the second text message. The apparatus further includes a sixth display module. The sixth display module is configured to display a transmission time of the first text message at an associated position of the first text message; and determine, when a transmission operation on the second text message is received, and a difference between a transmission time of the transmission operation and the transmission time of the first text message is less than a second difference threshold, the transmission operation as a fusion operation on the first text message and the second text message.

[0184] In an aspect, the session interface includes a message display region and a message editing region. The at least one message element includes a fourth emoji displayed in the message editing region. The fusion module 4552 is further configured to drag, in response to a drag operation on a fourth emoji, the fourth emoji from the message editing region to the first text message in the message display region; and display, in the second style in response to a release operation on the fourth emoji, a first fused message obtained by fusing the fourth emoji and the first text message.

[0185] In an aspect, the first fused message has the fourth emoji displayed therein, and further includes a fifth emoji. An emotion represented by the fifth emoji and an emotion represented by the fourth emoji belong to the same emotion category. The fusion module 4552 is further configured to display, in the second style, a message bubble, and display the first fused message in the message bubble. The fifth emoji and the fourth emoji are periodically switched and displayed in the message bubble.

[0186] In an aspect, the first fused message has the fourth emoji displayed therein, and the message editing region further includes a sixth emoji. The apparatus further includes a seventh display module. The seventh display module is configured to: drag, in response to a drag operation on the sixth emoji, the sixth emoji from the message editing region to the first fused message in the message display region; display a third fused message in a fourth style in response to a release operation on the sixth emoji when an emotion represented by the sixth emoji and the emotion represented by the fourth emoji belong to different emotion categories. The third fused message includes content of the first fused message and the sixth emoji that replaces the fourth emoji.

[0187] In an aspect, the at least one message element includes another message element, and the another message element is different from the at least one message element. The apparatus further includes an eighth display module. The eighth display module is configured to dynamically display, in response to a fusion operation on the first fused message and the another message element, a process of fusing the another message element and the first fused message; and display a fourth fused message in a fifth style different from the second style when a quantity of fusions corresponding to the first fused message is between a first quantity of times and a second quantity of times. The fourth fused message includes content of the first fused message and content of the another message element, and the fifth style is configured for highlighting an emotion represented by the another message element.

[0188] In an aspect, the session interface includes a message display region, and the first fused message is displayed in the message display region. When the quantity of fusions corresponding to the first fused message is greater than the second quantity of times, the apparatus further includes a conversion module. The conversion module is configured to convert, into a bullet comment, the first fused message that incorporates the another message element, and fixedly display the bullet comment at a target position of the message display region; and undisplay the bullet comment when a display duration of the bullet comment reaches a first duration.

[0189] In an aspect, the another message element is transmitted by a target object. The apparatus further includes a reply module. The reply module is configured to display, in a suspended manner above the bullet comment, a bullet comment reply to the bullet comment from another object, the another object being an object with which the target object performs a session based on the session interface.

[0190] In an aspect, the session interface further includes a message editing region. The apparatus further includes a ninth display module. The ninth display module is configured to display edited message content in response to a message editing operation triggered based on the message editing region; and display, in response to a transmission instruction on the edited message content, the edited message content in the bullet comment at the target position.

[0191] In an aspect, the apparatus further includes a restoration module. The restoration module is configured to display, in response to a restoration condition of the first fused message being satisfied, a process of restoring the first fused message to obtain the first text message and the message element. The restoration condition includes at least one of: a reply message for the first fused message is received; a display duration of the first fused message reaches a second duration; or a restoration instruction for the first fused message is received, the restoration instruction being configured for instructing to restore the first fused message to the first text message and the message element.

[0192] In an aspect, the fusion module 4552 is further configured to display, in the second style in response to the fusion operation on the first text message and the at least one message element, the first fused message obtained through fusion when a target object triggering the fusion operation has a fusion operation execution permission. The apparatus further includes a tenth display module. The tenth display module is configured to display first permission prompt information when the target object does not have the fusion operation execution permission. The first permission prompt information indicates that the target object does not have the fusion operation execution permission.

[0193] In an aspect, the tenth display module is further configured to display an interaction task and task guidance information. The task guidance information is configured for guiding the target object to perform the interaction task. In response to a task execution operation on the interaction task and triggered based on the task guidance information, an execution process of the interaction task is displayed. When the interaction task is completed, second permission prompt information is displayed. The second permission prompt information indicates that the target object has had the fusion operation execution permission.

[0194] Aspects of this disclosure provide a computer program product. The computer program product includes computer-executable instructions. The computer-executable instructions are stored in a computer-readable storage medium (for example, a non-transitory computer-readable storage medium). A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium. The processor executes the computer-executable instructions, so that the electronic device performs the foregoing method for processing a session message provided in aspects of this disclosure.

[0195] Aspects of this disclosure provide a computer-readable storage medium (for example, a non-transitory computer-readable storage medium), having computer-executable instructions stored therein. The computer-executable instructions, when executed by a processor, cause a processor to perform the method for processing a session message provided in aspects of this disclosure, for example, the method for processing a session message shown in FIG. 3.

[0196] In an aspect, the computer-readable storage medium may be a memory such as a ROM, a RAM, an EPROM, an electrically EPROM (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a CD-ROM; or may be various devices including one or any combination of the foregoing memories.

[0197] In an aspect, the computer-executable instructions may be written in any form of a programming language (including a compiled or interpreted language, or a declarative or procedural language) in the form of a program, software, a software module, a script, or code, and may be deployed in any form, which may be deployed as a standalone program or as a module, a component, a subroutine, or another unit suitable for use in a computing environment.

[0198] In an example, the computer-executable instructions may but may not necessarily correspond to a file in a file system, and may be stored in a part of the file for storing other programs or data, for example, stored in one or more scripts in a hypertext markup language (HTML) document, stored in a single file specially used for the discussed program, or stored in a plurality of collaborative files (for example, files storing one or more modules, a subprogram, or a code part).

[0199] In an example, the computer-executable instructions may be deployed to be executed on one electronic device, or executed on a plurality of electronic devices located at one location, or executed on a plurality of electronic devices distributed at a plurality of locations and connected through a communication network.

[0200] Based on the above, aspects of this disclosure have the following beneficial effects.

[0201] Through a fusion operation on a text message and a message element, a display style of the text message and content of the text message are changed. In this way, not only an interaction mode of a session message is enriched, but also diversity of the session message is improved, thereby improving human-computer interaction efficiency and utilization of hardware resources of an electronic device.

[0202] The foregoing descriptions are merely examples of aspects of this disclosure and are not intended to limit the scope of this disclosure. Any modification, equivalent replacement, or improvement made according to the disclosed aspects of this disclosure falls within the scope of this disclosure.

Claims

1. A method for processing a session message, the method comprising:displaying, via a session interface, a first text message in a first style and at least one message element including at least one of a second text message or an emoji; anddisplaying, in a second style and based on a first fusion operation on the first text message and the at least one message element, a first fused message obtained through the first fusion operation, the first fused message including content of the first text message and content of the at least one message element, and the second style being different from the first style and indicating an emotion represented by the first fused message.

2. The method according to claim 1, further comprising:displaying at least two text messages via the session interface,wherein the displaying the first text message in the first style comprises:displaying, in the first style via the session interface based on a second fusion operation on the at least two text messages, the first text message obtained by fusing the at least two text messages, the first text message including text content of the at least two text messages.

3. The method according to claim 1, wherein the displaying the first text message in the first style comprises:displaying, via the session interface, at least two text messages that are consecutively received, and a transmission time of each of the at least two text messages;displaying, based on a difference between the transmission times of the at least two text messages being less than a first difference threshold, a process of fusing the at least two text messages when a content overlap degree of the at least two text messages reaches an overlap degree threshold; anddisplaying, in the first style, the first text message obtained by fusing the at least two text messages.

4. The method according to claim 1, whereinthe at least one message element includes the second text message, and the first fusion operation includes a pinch operation on the first text message and the second text message; andthe displaying the first fused message comprises:displaying, based on the pinch operation on the first text message and the second text message, a process of merging the first text message and the second text message;hiding the first text message and the second text message when a ratio of a first area to a second area reaches a target ratio, the first area being an area of an overlapping region of the first text message and the second text message, and the second area being a display area of the first text message or a display area of the second text message; anddisplaying, in the second style, the first fused message obtained by fusing the first text message and the second text message.

5. The method according to claim 1, wherein the at least one message element includes the second text message, and the first fused message is obtained by fusing the first text message and the second text message; and the method further comprises:displaying a first emoji in the first fused message, the first emoji indicating the emotion represented by the first fused message.

6. The method according to claim 5, whereinthe session interface further includes a third text message, andthe method further comprises:displaying, in a third style and based on a third fusion operation on the first fused message and the third text message, a second fused message obtained through the third fusion operation, wherein the second fused message includes content of the first fused message, content of the third text message, and a second emoji that replaces the first emoji; an emotion represented by the second emoji and an emotion represented by the first emoji belong to a same category; andan intensity of the emotion represented by the second emoji is higher than an intensity of the emotion represented by the first emoji.

7. The method according to claim 5, further comprising:displaying a display duration of the first emoji; andswitching the first emoji to a third emoji different from the first emoji when the display duration reaches a target display duration, wherein an emotion represented by the third emoji and the emotion represented by the first emoji belong to a same emotion category.

8. The method according to claim 1, wherein the at least one message element includes the second text message, and the method further comprises:displaying a transmission time of the first text message at an associated position of the first text message; anddetermining, when a transmission operation on the second text message is received, and a difference between a transmission time of the transmission operation and the transmission time of the first text message is less than a second difference threshold, the transmission operation as the first fusion operation on the first text message and the second text message.

9. The method according to claim 1, whereinthe session interface includes a message display region and a message editing region;the at least one message element includes a fourth emoji displayed within the message editing region; andthe displaying the first fused message comprises:dragging, based on a drag operation on the fourth emoji, the fourth emoji from the message editing region to the first text message in the message display region; anddisplaying, in the second style and based on a release operation on the fourth emoji, the first fused message obtained by fusing the fourth emoji and the first text message.

10. The method according to claim 9, whereinthe first fused message includes the fourth emoji displayed therein and further includes a fifth emoji;an emotion represented by the fifth emoji and an emotion represented by the fourth emoji belong to a same emotion category;the displaying the first fused message includes displaying a message bubble in the second style and the first fused message in the message bubble; andthe fifth emoji and the fourth emoji are periodically switched and displayed in the message bubble.

11. The method according to claim 9, whereinthe fourth emoji is displayed in the first fused message;the message editing region further includes a sixth emoji; andthe method further comprises:dragging, based on a drag operation on the sixth emoji, the sixth emoji from the message editing region to the first fused message in the message display region; anddisplaying a third fused message in a fourth style based on a release operation on the sixth emoji when an emotion represented by the sixth emoji and the emotion represented by the fourth emoji belong to different emotion categories, the third fused message including the content of the first fused message and the sixth emoji that replaces the fourth emoji.

12. The method according to claim 1, further comprising:displaying another message element that is different from the at least one message element;dynamically displaying, based on a fourth fusion operation on the first fused message and the another message element, a process of fusing the another message element and the first fused message; anddisplaying a fourth fused message in a fifth style different from the second style when a quantity of fusions corresponding to the first fused message is between a first quantity of times and a second quantity of times, whereinthe fourth fused message includes the content of the first fused message and content of the another message element, and the fifth style highlights an emotion represented by the another message element.

13. The method according to claim 12, whereinthe session interface includes a message display region;the first fused message is displayed in the message display region; andwhen the quantity of fusions corresponding to the first fused message is greater than the second quantity of times, the method further comprises:converting, into a bullet comment, the first fused message that incorporates the another message element;displaying the bullet comment at a target position of the message display region; andhiding the bullet comment when a display duration of the bullet comment reaches a first duration.

14. The method according to claim 13, wherein the another message element is transmitted by a target object; and the method further comprises:displaying, in a suspended manner above the bullet comment, a bullet comment reply to the bullet comment from another object, the another object being an object with which the target object performs a session via the session interface.

15. The method according to claim 13, wherein the session interface further includes a message editing region, and the method further comprises:displaying edited message content based on a message editing operation on the message editing region; anddisplaying the edited message content in the bullet comment at the target position based on a transmission instruction for the edited message content.

16. The method according to claim 1, further comprising:displaying, based on a restoration condition for the first fused message being satisfied, a process of restoring the first fused message to obtain the first text message and the at least one message element, whereinthe restoration condition includes at least one of:a reply message for the first fused message has been received;a display duration of the first fused message reaches a second duration; ora restoration instruction for the first fused message has been received, the restoration instruction instructing restoration of the first fused message to the first text message and the message element.

17. The method according to claim 1, whereinthe displaying the first fused message comprises:displaying, in the second style based on the first fusion operation on the first text message and the at least one message element, the first fused message obtained through the first fusion operation when a target object triggering the first fusion operation has a fusion operation execution permission; andthe method further comprises:displaying first permission prompt information when the target object does not have the fusion operation execution permission, the first permission prompt information indicating that the target object does not have the fusion operation execution permission.

18. The method according to claim 17, further comprising:displaying an interaction task and task guidance information that guides the target object to perform the interaction task;displaying an execution process of the interaction task based on a task execution operation on the interaction task that is triggered according to the task guidance information; anddisplaying second permission prompt information when the interaction task is completed, the second permission prompt information indicating that the target object has the fusion operation execution permission.

19. An apparatus for processing a session message, comprising processing circuitry configured to:display, via a session interface, a first text message in a first style and at least one message element including at least one of a second text message or an emoji; anddisplay, in a second style based on a first fusion operation on the first text message and the at least one message element, a first fused message obtained through the first fusion operation, the first fused message including content of the first text message and content of the at least one message element, and the second style being different from the first style and indicating an emotion represented by the first fused message.

20. A non-transitory computer-readable storage medium storing instructions, which when executed by a processor, cause the processor to implement a method for processing a session message, the method comprising:displaying, via a session interface, a first text message in a first style and at least one message element including at least one of a second text message or an emoji; anddisplaying, in a second style based on a first fusion operation on the first text message and the at least one message element, a first fused message obtained through the first fusion operation, the first fused message including content of the first text message and content of the at least one message element, and the second style being different from the first style and indicating an emotion represented by the first fused message.