Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of illustrating the present disclosure and should not be construed as limiting the same. On the contrary, the embodiments of the disclosure include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart illustrating a message processing method according to an embodiment of the disclosure.
The disclosed embodiments are exemplified in a case where a message processing method is configured as a message processing apparatus.
The message processing method in the embodiment of the present disclosure may be configured in a message processing apparatus, and the message processing apparatus may be disposed in a server, or may also be disposed in an electronic device, which is not limited in the embodiment of the present disclosure.
The embodiment of the present disclosure takes the case where the message processing method is configured in an electronic device.
It should be noted that the execution subject of the embodiment of the present disclosure may be, for example, a Central Processing Unit (CPU) in a server or an electronic device in terms of hardware, and may be, for example, a related background service in the server or the electronic device in terms of software, which is not limited to this.
The present disclosure is applied to an instant messaging application, which is an instant messaging application program, and the application program may refer to a software program running on an electronic device, such as a Personal Computer (PC), a cloud device or a mobile device, a mobile device such as a smart phone or a tablet Computer.
The message in the embodiment of the disclosure is a message in an instant messaging application.
Referring to fig. 1, the method includes:
s101: when a processing instruction of a first user to a first message is received in a first session, at least one message indicated by the processing instruction is acquired.
The session in which the message needs to be forwarded may be referred to as a first session, a user with a message forwarding requirement may be referred to as a first user, when the first user selects a specific message in the first session and right clicks a mouse cursor, a processing box option for the specific message may be popped up, the specific message may be referred to as a first message, if the first user further selects a [ forward ] control in the processing box option, a [ select ] control may be displayed in each message before the first message, and if the first user selects a partial message therein, a processing instruction may be triggered to be generated, where the processing instruction is used to forward the first message and the partial message selected by the user to a second session, and the partial message is at least one message.
S102: and generating a target message according to the first message and the at least one message, wherein the target message is a message with a nested structure.
In the embodiment of the present disclosure, the message with the nested structure may have the following characteristics when displayed, that is, only information associated with a part of the first message and the at least one message is displayed, where the information is, for example, a sender, an avatar, sending time, and the like of the message, and specific message contents of the first message and the at least one message are hidden, so that the forwarded message can be effectively simplified, and meanwhile, the associated information is retained, which is convenient for tracing the source of the target information in the following process.
In the specific implementation process of the embodiment of the disclosure, in order to effectively simplify the forwarded message and simultaneously retain the associated information, which is convenient for accurately tracing the source of the target information in the following, the information associated with the message at the target time point in at least one message may be determined; taking the information as a message title of a target message, and taking the content of the message except the message of the target time point in at least one message as the message content of the target message; and generating the target message according to the information and the message content.
In the embodiment of the present disclosure, the message header of the target message may be displayed in the second session, and the message content of the target message may be hidden, or the message header of the target message may be displayed in the second session, and the message content of the target message may be hidden, and the message at the latest time point before forwarding may be displayed, so that the message processing manner is flexible.
The target time point may be the earliest time point among the plurality of messages, and the information may be, for example, a sender, an avatar, a sending time, etc. of the message, which is not limited in this respect.
The content of the message is the content of the semantic aspect actually contained in the message.
In the embodiment of the present disclosure, when the target message is generated by merging, it may be further determined whether at least one message includes a second message, where the second message is a nested structure message; according to the first message and the at least one message, the target message is generated, when the at least one message contains the second message, the target message and the second message have different nesting levels, multi-level nesting can be achieved for messages needing to be combined and forwarded when the messages are forwarded, and the presentation effect of the forwarded messages is improved.
In the embodiment of the present disclosure, if the target message includes multiple layers of nested hierarchies, the display may have a feature that only the message header of each nested structure message included therein is displayed, and the message content of each nested structure message is hidden, and the hidden message content is re-displayed when a corresponding instruction is subsequently received.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating an application effect in an embodiment of the present disclosure, including: a first conversation 21, a second conversation 22, a target message 23 and a target message 24, wherein the nesting level of the target message 23 is one layer, and the nesting level of the target message 24 is two layers, comprising: the first-level nesting level 241 and the second-level nesting level 242 display only the message headers of the target messages of the first-level nesting level 241 and the second-level nesting level 242 when the target message 24 is displayed.
The description for the above fig. 2 is as follows: the first session is, for example, test group 1, the second session is, for example, test group 2, and A, B two-bit users and A, B, C three-bit users are located inside the first session, and specific forwarding processes are exemplified as follows:
1. in test group 1, a first inputs 1 message "1" and B replies with 1 message "2".
2. B merges messages "1" and "2" into 1 message (which may be referred to as a target message) and forwards the target message to test group 2, the target message appearing as "1/2" and the target message being a nested structured message.
3. C replies to the target message "1/2" and enters the message "3".
4. A may merge the destination messages "1/2" and "3" into 1 message to forward to the test group 1, and the destination message appears as "1/2/3", wherein, since the destination message "1/2" is a message of a nested structure, if it needs to be merged and forwarded again, when another destination message is generated, the destination message "1/2" may be referred to as a second message, and the nesting level of the generated another destination message is different from the nesting level of the second message.
5. B replies to another target message "1/2/3" with the word "4" entered.
6. B merges the target messages "1/2/3" and "4" into 1 message to forward to test group 2, the target message appearing as "1/2/3/4".
7. C replies to the target message "1/2/3/4" with the word "5" entered.
8. A may merge the target messages "1/2/3/4" and "5" into 1 message to forward to test group 1, with the target message appearing as "1/2/3/4/5".
S103: and sending the target message to the second session indicated by the processing instruction.
In a specific implementation process, the message header of the target message may be displayed in the second session, and meanwhile, the message content of the target message may be hidden.
Alternatively, when the target message includes a plurality of nested-level messages, the header of each nested-level message is displayed and the message content of each nested-level message is hidden.
In the embodiment of the disclosure, in order to facilitate accurate traceability of subsequent users, the context is referred to in time to obtain complete message content, and when an expansion instruction of a second user on a target message is received in a second session, the message content of the target message is displayed.
Referring to fig. 2, fig. 3 and fig. 4 together, fig. 3 is a schematic diagram of another application effect in the embodiment of the present disclosure, fig. 4 is a schematic diagram of another application effect in the embodiment of the present disclosure, in fig. 3, a schematic diagram of a display effect of the target message "1/2/3/4/5" in fig. 2 is shown, and in fig. 4, a schematic diagram of a display effect of the target message "1/2/3/4" in fig. 2 is shown.
In the embodiment of the disclosure, in order to facilitate a user to quickly know the beginning and end information of a message, the message of the nested structure can be displayed in 1 view according to the time sequence, when the message is executed, a target view can be generated according to the message content of the target message, and the target view is displayed in the second session.
Referring to fig. 5 and 5, another application effect diagram in the embodiment of the present disclosure is shown, and fig. 5 includes a target view 31, in which detailed message content of a message of a nested structure is shown.
In the embodiment of the disclosure, in order to realize that the messages with the nested structure are viewed and positioned according to the forwarding time and sequence, key information is conveniently found, and a message map can be generated according to the message content in the target view and by combining the time point and the nested hierarchy corresponding to each message content; a message map is displayed in the second session.
Referring to fig. 6 and fig. 6 are schematic diagrams illustrating another application effect in the embodiment of the present disclosure, in fig. 6, a message map 61 is included, where nesting levels in messages of a nested structure and time points corresponding to the messages are shown.
In the embodiment of the disclosure, the original message can be traced and positioned accurately, and when a positioning instruction of a second user to the message is received in the message map, the target message content specified by the positioning instruction can be determined; and locating the message corresponding to the target message content from the second session.
The target message content selected by the positioning instruction may be referred to as the target message content specified by the positioning instruction.
The content of the target message is specifically the content of the target message to be merged and forwarded, and the message corresponding to the content of the target message is the original message before the target message is merged and forwarded.
In the embodiment of the disclosure, when a processing instruction of a first user for a first message is received in a first session, at least one message indicated by the processing instruction is obtained, a target message is generated according to the first message and the at least one message, the target message is a message of a nested structure, and the target message is sent to a second session indicated by the processing instruction.
Fig. 7 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present disclosure.
The message is a message in an instant messaging application.
Referring to fig. 7, the apparatus 700 includes:
an obtaining module 701, configured to obtain at least one message indicated by a processing instruction when the processing instruction of a first user for a first message is received in a first session;
a first generating module 702, configured to generate a target message according to the first message and the at least one message, where the target message is a message in a nested structure;
a sending module 703, configured to send the target message to the second session indicated by the processing instruction.
Optionally, in some embodiments, referring to fig. 8, further comprising:
a judging module 704, configured to judge whether the at least one message includes a second message, where the second message is a nested structure message;
the first generating module 702 is specifically configured to:
and generating a target message according to the first message and the at least one message, wherein when the at least one message comprises a second message, the target message and the second message have different nesting levels.
Optionally, in some embodiments, the first generating module 702 is specifically configured to:
determining information associated with the message of the target time point in at least one message;
taking the information as a message title of a target message, and taking the content of the message except the message of the target time point in at least one message as the message content of the target message;
and generating the target message according to the information and the message content.
Optionally, in some embodiments, the method further comprises:
a display module 705, configured to display the message header of the target message in the second session, and at the same time, hide the message content of the target message.
Optionally, in some embodiments, the display module 705 is further configured to:
and when receiving an expansion instruction of the second user to the target message in the second session, displaying the message content of the target message.
Optionally, in some embodiments, the method further comprises:
a second generating module 706, configured to generate a target view according to the message content of the target message;
the display module 705 is further configured to display the target view in the second session.
Optionally, in some embodiments, the method further comprises:
a third generating module 707, configured to generate a message map according to the message content in the target view by combining the time point and the nesting level corresponding to each message content;
the display module 705 is further configured to display a message map in the second session.
Optionally, in some embodiments, the method further comprises:
a receiving module 708, configured to determine, when a positioning instruction for a message by a second user is received in a message map, a target message content specified by the positioning instruction;
a positioning module 709, configured to position a message corresponding to the target message content from the second session.
It should be noted that the explanation of the message processing method in the foregoing embodiments of fig. 1 to fig. 6 also applies to the message processing apparatus 700 in this embodiment, and the implementation principle is similar and is not described herein again.
In the embodiment of the disclosure, when a processing instruction of a first user for a first message is received in a first session, at least one message indicated by the processing instruction is obtained, a target message is generated according to the first message and the at least one message, the target message is a message of a nested structure, and the target message is sent to a second session indicated by the processing instruction.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. A schematic structural diagram of an electronic device 900 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like.
The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 900 may include a processing means (e.g., central processing unit, graphics processor, etc.) 901 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are also stored. The processing apparatus 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
Generally, the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 907 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 908 including, for example, magnetic tape, hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic apparatus 900 to perform wireless or wired communication with other apparatuses to exchange data. While fig. 9 illustrates an electronic device 900 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program containing program code for performing the message processing method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. The computer program performs the above-described functions defined in the message processing method of the embodiment of the present disclosure when executed by the processing apparatus 901.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: when a processing instruction of a first user to a first message is received in a first session, acquiring at least one message indicated by the processing instruction; generating a target message according to the first message and at least one message, wherein the target message is a nested structure message; and sending the target message to the second session indicated by the processing instruction.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module does not constitute a limitation to the module itself in some cases, for example, the first generating module may also be described as "a module for generating a target message from the first message and the at least one message, the target message being a message in a nested structure".
It should be noted that, in the description of the present disclosure, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present disclosure, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present disclosure includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure, and that changes, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present disclosure.