Message processing method, device and electronic device
By providing a graphical user interface and withdraw option control in the chat software, users can select and withdraw target content in the message, solving the problem that part of the message cannot be withdrawn separately in the prior art, and improving user experience and operation efficiency.
Patent Information
- Application Number
- CN202210632839.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-06
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2042-06-06
AI Technical Summary
Existing chat software cannot meet users' diverse needs for withdrawing sent messages, and cannot withdraw some content in the message separately, such as a word, picture or voice clip, resulting in poor user experience.
By providing a graphical user interface on the terminal device, users can select and withdraw target content in the message, including text, pictures or voice messages. By displaying the withdraw option control and deletion instructions, they can cancel the display of target content in the message display area, supporting multiple target selections. Operations such as clicking, long pressing, etc.
It enables users to withdraw part of the content of sent messages separately, meet diverse needs, improve user experience, and simplify the processing of wrong content.
Smart Images

Figure CN115220619B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of instant messaging, and in particular to a message processing method, device and electronic equipment. Background Art
[0002] In the related art, when a user uses the message recall function of a chat software to recall a message that has been sent, the user usually needs to select one or more messages displayed on the message display interface and activate the message recall function to recall the one or more messages. This method is difficult to meet the diverse needs of users and results in a poor user experience. Summary of the invention
[0003] In view of this, an object of the present invention is to provide a message processing method, device and electronic device to meet the diverse needs of users and improve the user experience.
[0004] In the first aspect, an embodiment of the present invention provides a message processing method, which provides a graphical user interface through a terminal device; the graphical user interface includes a message display area; the method includes: in response to a sending operation for a first message, displaying the sent first message in the message display area; in response to a target selection operation for the first message, determining the target content in the first message; and canceling the display of the target content in the message display area. .
[0005] The above method further includes: converting the current display format of the target content into a preset first display format according to the target selection operation, and displaying the target content in the first display format.
[0006] After responding to the target selection operation for the first message and determining the target content in the first message, the method further includes: displaying a recall option control corresponding to the target content.
[0007] The above-mentioned cancelling the display of the target content in the message display area includes: responding to a touch operation on a withdraw option control, cancelling the display of the target content in the message display area.
[0008] The above-mentioned cancelling the display of the target content in the message display area includes: responding to a deletion instruction and cancelling the display of the target content in the message display area.
[0009] The above-mentioned target content includes at least one character group; the character groups are divided according to the semantic association between the characters; the withdrawal option control includes a text withdrawal control corresponding to the character group; the step of displaying the withdrawal option control corresponding to the target content includes: for each character group in the target content, displaying the text withdrawal control corresponding to the character group at a specified position in the display area of the character group.
[0010] The above-mentioned target content includes a target picture; the target selection operation includes a long press operation; in response to the target selection operation for the first message, the step of determining the target content in the first message includes: responding to the long press operation on the target picture, and determining the target picture as the target content.
[0011] The above-mentioned first message includes a voice message; the voice message is displayed in the message display area through the corresponding display control; in response to the target selection operation for the first message, the step of determining the target content in the first message includes: responding to the long press operation of the display control corresponding to the voice message, displaying the text content corresponding to the voice message; responding to the specified trigger operation for part of the content in the text content, determining the part of the content as the target content in the first message.
[0012] The above-mentioned first message includes a voice message; the target content includes part of the text content corresponding to the voice message; the voice message is displayed in the message display area through the corresponding display control; the display control displays the voice duration corresponding to the voice message; in response to the touch operation of the withdrawal option control, the step of canceling the display of the target content in the message display area includes: in response to the trigger operation of the withdrawal option control, canceling the display of the target content in the display area of the text content; deleting the voice content corresponding to the target content from the voice content corresponding to the voice message to obtain an updated voice message; displaying the updated voice message through the display control; the voice duration displayed by the display control matches the voice content of the updated voice message.
[0013] The above method also includes: receiving a second message sent by a terminal device other than the terminal device, and displaying the received second message in the message display area; responding to a withdrawal instruction for part of the content in the second message, and canceling the display of part of the content in the second message in the graphical user interface.
[0014] The above-mentioned second message includes at least one character group; the character group corresponds to a preset identifier; the withdrawal instruction includes a target identifier corresponding to part of the content; in the graphical user interface, the step of canceling the display of the second message, the step of withdrawing part of the content corresponding to the instruction includes: canceling the display of the character group corresponding to the target identifier in the second message in the graphical user interface.
[0015] In a second aspect, an embodiment of the present invention provides a message processing device, which provides a graphical user interface through a terminal device; the graphical user interface includes a message display area; the device includes: a first message display module, which is used to respond to a sending operation for a first message and display the sent first message in the message display area; a withdrawal option control display module, which is used to respond to a target selection operation for the first message and determine the target content in the first message; wherein the target content includes part of the content of the first message; a target content display cancellation module, which is used to cancel the display of the target content in the message display area.
[0016] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned message processing method.
[0017] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned message processing method.
[0018] The embodiments of the present invention bring the following beneficial effects:
[0019] The message processing method, device and electronic device described above, in response to a sending operation for a first message, displays the sent first message in a message display area; in response to a target selection operation for the first message, determines the target content in the first message; and cancels the display of the target content in the message display area. This method allows the user to withdraw part of the content of the message that has been sent, meets the diverse needs of the user, and improves the user experience.
[0020] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 A flowchart of a message processing method provided by an embodiment of the present invention;
[0024] Figure 2 A schematic diagram of a graphical user interface for displaying a recall option control of target content provided by an embodiment of the present invention;
[0025] Figure 3 A schematic diagram of a graphical user interface for displaying a recall option control for selected text provided by an embodiment of the present invention;
[0026] Figure 4 A schematic diagram of a message display after withdrawing part of the content provided by an embodiment of the present invention;
[0027] Figure 5 A schematic diagram of a graphical user interface for displaying a plurality of recall option controls corresponding to character groups provided by an embodiment of the present invention;
[0028] Figure 6 A schematic diagram of a graphical user interface for displaying a recall option control corresponding to a picture provided by an embodiment of the present invention;
[0029] Figure 7 A schematic diagram of a graphical user interface for displaying a recall option control corresponding to a voice segment provided by an embodiment of the present invention;
[0030] Figure 8 A schematic diagram of the structure of a message processing device provided by an embodiment of the present invention;
[0031] Fig. 9 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0033] After a user sends a message to another terminal device through a communication software running on a terminal device, the user may want to change the message that has been sent due to various reasons, such as an error in the message sent, an error in the receiving end of the message sent, etc. In the related art, the chat software has the function of withdrawing the sent message, but when withdrawing a message, only the entire message can be withdrawn, and a single word, graphic content, or voice content cannot be withdrawn separately. This method cannot meet the diverse withdrawal needs of users, resulting in a poor user experience.
[0034] Based on this, an embodiment of the present invention provides a message processing method, device and electronic device, and the technology can be applied to various scenarios where a sent message needs to be withdrawn.
[0035] In one embodiment of the present invention, the message processing method can be run on a touch local terminal device or a server. When the message processing method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0036] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated, the storage and operation of the message processing method are completed on the cloud game server, and the role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud performs information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0037] In an optional embodiment, taking a game as an example, a local touch terminal device stores a game program and is used to present a game screen. The local touch terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run by an electronic device in a conventional manner. The local touch terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal, or provided to the player through a holographic projection. For example, the local touch terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0038] In a possible implementation, an embodiment of the present invention provides a method for message processing, providing a graphical user interface through a touch terminal device, wherein the touch terminal device can be the local touch terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above. A graphical user interface is provided through the touch terminal device, and the graphical user interface can display interface content, such as a game scene screen, a communication interaction window, etc., according to the type of application started.
[0039] In a possible implementation, an embodiment of the present invention provides a message processing method, providing a graphical user interface through a terminal device, the graphical user interface including a message display area; wherein the terminal device may be the local terminal device mentioned above, or may be a client device in the cloud interaction system mentioned above. Figure 1 As shown, the method comprises the following steps:
[0040] Step S102: In response to the sending operation of the first message, the sent first message is displayed in the message display area.
[0041] When the first message is sent through a terminal device, the terminal device can serve as a message sending end. The above-mentioned first message can be a voice message, a text message, a picture message, or a message including text and a picture. The above-mentioned sending operation can be clicking a message sending button or a confirmation button on the graphical user interface, etc. The user can edit and generate the first message in the message editing area in the graphical user interface, and then click the message sending button or the confirmation button to complete the sending operation. When the first message is a voice message, the user can also long press the voice recording button in the graphical user interface to record the voice message. After the recording is completed, release the voice recording button to implement the sending operation. The user can also perform touch operations on the messages received from other terminal devices, such as clicking or long pressing, etc., to forward these messages, thereby completing the sending operation.
[0042] When the first message is a message of a different type, it is usually displayed in a different form in the message display area. For example, when the first message is a text message, a picture message, or a message including both text and pictures, all the characters and pictures in the message can be directly displayed in the message display area; in addition, for the picture in the message, a control representing the picture can also be displayed, and the picture is displayed only after the user triggers the control. When the first message is a voice message, a display control representing the voice message can be displayed in the message display area, and the display control can display the voice duration of the voice message. Usually, after the user triggers the control, the terminal device can play the voice message. In addition, the text content obtained by voice recognition of the voice message can also be directly displayed near the display control, and the corresponding content can be displayed according to the setting of the terminal device.
[0043] Step S104, in response to the target selection operation for the first message, determining the target content in the first message.
[0044] The above-mentioned target content can be part of the content in the first message. For example, when the first message is a text message, the target content can be part of the characters in the text message. When the first message is a message including both text and pictures, the target content can also be a picture message in the first message. When the first message is a voice message, the target content can be part of the voice clips in the voice message.
[0045] The above-mentioned target selection operation can be one operation or multiple operations, such as one or more combinations of click operations, long press operations, drag operations, etc. Different target selection operations can be set for different types of target content. For example, when the target content is a character or a picture, the user can first select the target content through a human-computer interaction device connected to the terminal device, such as a mouse, keyboard, or touch screen, and then long press the selected target content to complete the target selection operation. In this process, the selection operation and the long press operation can be regarded as the target selection operation.
[0046] When the target content is a voice clip, the user can long press the display control of the first message through the human-computer interaction device, so that the terminal device performs voice recognition on the voice message and displays the voice recognition result, that is, the text content corresponding to the voice message, in the graphical user message. The user can select some characters in the text content and then long press the selected some characters, so that the terminal device determines the voice clip corresponding to these characters as the target content. In this process, the long press operation on the display control of the first message, the selection operation and the long press operation on some characters in the text content can all be regarded as target selection operations.
[0047] While determining the target content in the first message, the withdrawal option control corresponding to the target content can be directly displayed, or the withdrawal option control can be triggered by clicking, long pressing, etc. on the target content. The withdrawal option control can be directly displayed near the display area of the target content; Figure 2 As shown, the first message is a text message, and when a target selection operation is generated for some characters in the first message, it can be displayed below the some characters. When the target content includes multiple characters, the target content can be divided into multiple character groups based on the semantic connection between the characters, and each character group forms a word corresponding to an identifier; when displaying the withdrawal option control corresponding to the target content, a withdrawal option control can be displayed for each identifier.
[0048] Step S106, canceling the display of the target content in the message display area.
[0049] When the user selects the target content through the human-computer interaction device, the first message can be directly hidden in the graphical user interface, and then the target content can be deleted from the first message, and the first message with the target content deleted can be displayed on the graphical user interface, thereby canceling the display of the target content. If a withdrawal option control corresponding to the target content is displayed in response to the target selection operation, the target content can be canceled after the user triggers the option.
[0050] Since the current terminal device is the message sending end, after determining the target content, it is also necessary to cancel the display of the target content from the graphical user interface of the terminal device as the message receiving end. Specifically, a withdrawal instruction can be sent to the message receiving end through a communication server that is in communication connection with both the message sending end and the message receiving end. The withdrawal instruction may include the identifier of the first message and the identifier of the target content, so that the message receiving end determines the target message of the target content that needs to be withdrawn based on the identifier of the first message.
[0051] The characters or pictures in the first message may be provided with corresponding identifiers, such as each character or each character group may correspond to an identifier, and one picture may correspond to an identifier. When the first message is a voice message, each character or character group in the text content corresponding to the voice message may correspond to an identifier. The message receiving end may determine the part of the target message that needs to be withdrawn based on the identifier of the target content, thereby canceling the display of the target content in the graphical user interface.
[0052] The message processing method described above, in response to a sending operation for a first message, displays the sent first message in a message display area; in response to a target selection operation for the first message, determines the target content in the first message; and cancels display of the target content in the message display area. This method allows the user to withdraw part of the content of the message that has been sent, meets the diverse needs of the user, and improves the user experience.
[0053] The following embodiments provide an implementation method for displaying a recall option control corresponding to a target content in response to a target selection operation on the target content in a first message.
[0054] In the process of displaying the withdrawal option control corresponding to the target content, it is usually necessary to determine the target content based on the user's selection operation, and then determine the need to display the withdrawal option control corresponding to the target content based on other triggering operations of the user on the selected target content. Specifically, according to the target selection operation, the current display format of the target content can be converted into a preset first display format, and the target content is displayed in the first display format, and the withdrawal option control corresponding to the target content can also be directly displayed. The above-mentioned target selection operation can be a sliding operation or a dragging operation in the display area of the target content; the current display format can usually be a common display format such as no shadow, no highlight, etc., the first display format can be a highlight format, and\or a shadow format, and then respond to a long press operation on the target content to display the withdrawal option control corresponding to the target content. The above-mentioned withdrawal option control can also be generated in response to operations such as clicking, long pressing or dragging on the target content.
[0055] like Figure 3As shown in the figure, the user selects specific text in a message as the target content, and long presses the target content display control (also called a "button") to "withdraw selected text". The selected text can be withdrawn separately, but the message is retained. The server side (equivalent to the above-mentioned "communication server") actually still retains this information, but the client side (including the terminal device as the message sender and the terminal device as the message receiver) hides the selected text. The display effect of the message after withdrawal is as follows Figure 4 shown.
[0056] Normally, the above-mentioned target content may include one character group or multiple character groups; the character groups may be divided according to the semantic associations between the characters through semantic recognition, that is, the character groups are usually verbs, adjectives, nouns, etc.; the character group may include one character or multiple characters; when the character group includes multiple characters, each character alone cannot express the semantics that the user wants to express. The withdrawal option control may include a text withdrawal control corresponding to the character group. When displaying the withdrawal option control, the text withdrawal control corresponding to the character group may be displayed at a specified position in the display area of the character group for each character group in the target content, so that the user can individually withdraw a word, noun, adjective, verb, etc. Figure 5 As shown, "Measure" and "Weight" correspond to a text recall control respectively.
[0057] When the first message contains text and pictures, the target content may also include a target picture, and the corresponding target selection operation may be a long press operation. After the user long presses the target picture, in response to the long press operation on the target picture, a corresponding withdrawal option control of the target picture is displayed at a specified position in the display area of the target picture; in this process, by identifying that the current information format is text or picture, the corresponding withdrawal option control is displayed, so that the user can withdraw the picture or text separately. Figure 6 Take the graphical user interface displayed in as an example. The message includes pictures and text. If you only want to withdraw the pictures, long press the picture in the message to trigger the "Withdraw selected picture" button. The logic on the server side is to keep the picture, hide the picture on the client side, and display it as text-only information after withdrawal; if you only withdraw the text, the operation method and logic are the same as withdrawing part of the content of the message that only includes text.
[0058] When the first message is a voice message, the voice message can be displayed in the message display area through the corresponding display control. In the process of retracting part of the voice message, it is necessary to respond to the long press operation of the display control corresponding to the voice message to display the text content corresponding to the voice message; then respond to the target selection operation of the target content in the text content to display the retract option control corresponding to the target content in the text content. Figure 7As shown, the duration of the voice message is displayed on the display control of the voice message, and "proper weight loss" in the figure is the selected target content.
[0059] The following embodiment provides an implementation method for canceling the display of target content in a graphical interface in response to a trigger operation on a withdraw option control.
[0060] When the first message (also referred to as "unit information") is a text message or a message containing text and pictures, the first message after deleting the target content can be displayed on the graphical user interface in response to the trigger operation for the withdrawal option control. When the first message is a voice message, the target content can be canceled from the display area of the text content corresponding to the voice message in response to the trigger operation for the withdrawal option control, and then the voice content corresponding to the target content can be deleted from the voice content corresponding to the voice message to obtain an updated voice message; and then the updated voice message is displayed through the display control; at this time, the voice duration displayed by the display control matches the voice content of the updated voice message.
[0061] Through the above method, users can individually withdraw a certain image or text in a chat with mixed carriers of multiple images and texts, or individually withdraw a certain voice segment in a single voice content in a conversation, thereby reducing the editing time and reading time of users who need to withdraw the entire message due to incorrect text / image content, and can flexibly handle the content of sent chat messages.
[0062] In addition, all the withdrawn contents mentioned above do not affect the complete withdrawal of a single message (equivalent to the above-mentioned "unit message"). After the complete message is withdrawn, when the complete message is re-edited, the edited content can still include the withdrawn contents, and these contents can be edited and sent again.
[0063] When the above-mentioned terminal device serves as a message receiving end, after receiving the second message sent by terminal devices other than the terminal device, the terminal device displays the received second message in the message display area; in response to a withdrawal instruction for part of the content in the second message, the terminal device cancels the display of part of the content in the second message on the graphical user interface.
[0064] When the second message includes at least one character group, the character group corresponds to a preset identifier; the withdrawal instruction received by the terminal device includes a target identifier corresponding to the partial content to be withdrawn, in response to the withdrawal instruction, the terminal device can cancel the display of the character group corresponding to the target identifier in the second message on the graphical user interface.
[0065] When the second message is a voice message, the text content corresponding to the voice message generally also includes a plurality of character groups, each character group corresponds to a preset identifier, and the withdrawal instruction includes a target identifier of the character group corresponding to the voice segment to be withdrawn. After receiving the withdrawal instruction, the terminal device can also determine the content to be withdrawn corresponding to the voice segment to be withdrawn in the text content based on the target identifier, thereby determining the corresponding voice segment to be withdrawn, and canceling the display of the voice segment corresponding to the target identifier in the second message in the graphical user interface.
[0066] In addition, the delete command can be triggered by a specified gesture, such as a user double-clicking the target content, or by a user inputting a voice message, so that after the delete command is triggered, the delete command is responded to and the target content is canceled in the message display area.
[0067] For the above method embodiments, see Figure 8 A message processing device is shown, which provides a graphical user interface through a terminal device; the graphical user interface includes a message display area; the device includes:
[0068] A first message display module 802, configured to respond to a sending operation for a first message and display the sent first message in a message display area;
[0069] A target content determination module 804, configured to determine target content in the first message in response to a target selection operation on the first message;
[0070] The target content display canceling module 806 is used to cancel the display of the target content in the message display area.
[0071] The above-mentioned message processing device, in response to the sending operation for the first message, displays the sent first message in the message display area; in response to determining the target content in the first message, in response to the first message; and cancels the display of the target content in the message display area. This method allows the user to withdraw part of the content of the message that has been sent, meets the diverse needs of the user, and improves the user experience.
[0072] The above device also includes a format conversion module, which is used to: convert the current display format of the target content into a preset first display format according to the target selection operation, and display the target content in the first display format.
[0073] The above device also includes a withdraw option control display module, which is used to: display the withdraw option control corresponding to the target content.
[0074] The target content display canceling module is further used to: respond to a touch operation on the withdraw option control and cancel the display of the target content in the message display area.
[0075] The target content display canceling module is further used to: respond to a deletion instruction and cancel the display of the target content in the message display area.
[0076] The above-mentioned target content includes at least one character group; the character groups are divided according to the semantic association between the characters; the withdrawal option control includes a text withdrawal control corresponding to the character group; the above-mentioned withdrawal option control display module is also used to: for each character group in the target content, display the text withdrawal control corresponding to the character group at a specified position in the display area of the character group.
[0077] The above-mentioned target content includes a target picture; the target selection operation includes a long press operation; the above-mentioned response to the long press operation on the target picture and determining the target picture as the target content is also used for: responding to the long press operation on the target picture and determining the target picture as the target content.
[0078] The above-mentioned first message includes a voice message; the voice message is displayed in the message display area through the corresponding display control; the above-mentioned target content determination module is also used to: respond to a long press operation of the display control corresponding to the voice message, and display the text content corresponding to the voice message; respond to a specified trigger operation on part of the content in the text content, and determine the part of the content as the target content in the first message.
[0079] The above-mentioned first message includes a voice message; the target content includes part of the text content corresponding to the voice message; the voice message is displayed in the message display area through the corresponding display control; the display control displays the voice duration corresponding to the voice message; the above-mentioned target content display cancellation module is also used to: respond to the trigger operation of the withdrawal option control, and cancel the display of the target content in the display area of the text content; delete the voice content corresponding to the target content from the voice content corresponding to the voice message to obtain an updated voice message; display the updated voice message through the display control; the voice duration displayed by the display control matches the voice content of the updated voice message.
[0080] The above-mentioned device also includes: a second message display module, which is used to receive a second message sent by a terminal device other than the terminal device, and display the received second message in the message display area; a partial content display cancellation module, which is used to respond to a withdrawal instruction for part of the content in the second message, and cancel the display of part of the content in the second message in the graphical user interface.
[0081] The second message includes at least one character group; the character group corresponds to a preset identifier; the withdrawal instruction includes a target identifier corresponding to the partial content; the partial content display cancellation module is also used to: cancel the display of the character group corresponding to the target identifier in the second message on the graphical user interface.
[0082] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned message processing method.
[0083] See also Fig. 9 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine executable instructions that can be executed by the processor 100. The processor 100 executes the machine executable instructions to implement the above message processing method.
[0084] Further, Fig. 9 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0085] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0086] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0087] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned message processing method.
[0088] A message processing method, device and electronic device provided in an embodiment of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.
[0089] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0090] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0091] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0092] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0093] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A message processing method, characterized in that: A graphical user interface is provided by a terminal device; the graphical user interface includes a message display area; the method includes: In response to a sending operation for a first message, displaying the first message that has been sent in the message display area; In response to a target selection operation on the first message, determining target content in the first message; canceling display of the target content in the message display area; The method further comprises: receiving a second message sent by a terminal device other than the terminal device, and displaying the received second message in the message display area; In response to a withdrawal instruction for part of the content in the second message, canceling display of part of the content in the second message on the graphical user interface; After determining the target content in the first message in response to the target selection operation for the first message, the method further includes: Display a withdrawal option control corresponding to the target content; The target content includes at least one character group; the character group is divided according to the semantic association between the characters; the withdrawal option control includes a text withdrawal control corresponding to the character group; The step of displaying a withdrawal option control corresponding to the target content includes: For each character group in the target content, a text recall control corresponding to the character group is displayed at a designated position in a display area of the character group.
2. The method according to claim 1, characterized in that The method further comprises: According to the target selection operation, the current display format of the target content is converted into a preset first display format, and the target content is displayed in the first display format.
3. The method according to claim 1, characterized in that The canceling the display of the target content in the message display area includes: In response to a touch operation on the withdraw option control, the target content is canceled from being displayed in the message display area.
4. The method according to claim 1, characterized in that: The canceling the display of the target content in the message display area includes: In response to the deletion instruction, the target content is undisplayed in the message display area.
5. The method according to claim 1, characterized in that The target content includes a target picture; the target selection operation includes a long press operation; In response to the target selection operation for the first message, the step of determining the target content in the first message includes: In response to a long press operation on the target image, the target image is determined as the target content.
6. The method according to claim 1, characterized in that The first message includes a voice message; the voice message is displayed in the message display area through a corresponding display control; In response to the target selection operation for the first message, the step of determining the target content in the first message includes: In response to a long press operation on a display control corresponding to the voice message, display text content corresponding to the voice message; In response to a specified trigger operation on a portion of the text content, the portion of the text content is determined as target content in the first message.
7. The method according to claim 3, characterized in that The first message includes a voice message; the target content includes part of the text content corresponding to the voice message; the voice message is displayed in the message display area through a corresponding display control; the display control displays the voice duration corresponding to the voice message; In response to a touch operation on the withdraw option control, the step of canceling the display of the target content in the message display area includes: In response to a triggering operation on the withdraw option control, canceling display of the target content in the display area of the text content; Deleting the voice content corresponding to the target content from the voice content corresponding to the voice message to obtain an updated voice message; The updated voice message is displayed through the display control; the voice duration displayed by the display control matches the voice content of the updated voice message.
8. The method according to claim 1, characterized in that The second message includes at least one character group; the character group corresponds to a preset identifier; the withdrawal instruction includes a target identifier corresponding to the partial content; The step of withdrawing part of the content corresponding to the instruction in canceling the display of the second message on the graphical user interface comprises: The character group corresponding to the target identifier in the second message is canceled from being displayed on the graphical user interface.
9. A message processing device, characterized in that: A graphical user interface is provided through a terminal device; the graphical user interface includes a message display area; the device includes: A first message display module, configured to respond to a sending operation for a first message and display the first message that has been sent in the message display area; a target content determination module, configured to determine the target content in the first message in response to a target selection operation on the target content in the first message; A target content display canceling module, used to cancel the display of the target content in the message display area; The device also includes: A second message display module, used for receiving a second message sent by a terminal device other than the terminal device, and displaying the received second message in the message display area; a partial content display cancellation module, configured to respond to a withdrawal instruction for a partial content in the second message and cancel the display of the partial content in the second message on the graphical user interface; The device also includes: A withdrawal option control display module, used to display a withdrawal option control corresponding to the target content; The target content includes at least one character group; the character group is divided according to the semantic association between the characters; the withdrawal option control includes a text withdrawal control corresponding to the character group; The withdraw option control display module is also used for: For each character group in the target content, a text recall control corresponding to the character group is displayed at a designated position in a display area of the character group.
10. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the message processing method according to any one of claims 1 to 8.
11. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the message processing method according to any one of claims 1 to 8.
