Specific embodiment
Embodiment of the disclosure is described below in detail, the example of embodiment is shown in the accompanying drawings, wherein identical from beginning to end
Or similar label indicates same or similar element or element with the same or similar functions.It is retouched below with reference to attached drawing
The embodiment stated is exemplary, and is only used for explaining the disclosure, and should not be understood as the limitation to the disclosure.On the contrary, the disclosure
Embodiment include all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
Fig. 1 is the flow diagram for the message treatment method that one embodiment of the disclosure proposes.
The embodiment of the present disclosure is configured as in message processing apparatus illustrating with message treatment method.
Message treatment method can be configured in message processing apparatus in the embodiment of the present disclosure, and message processing apparatus can be with
Setting in the server, or also can be set in the electronic device, the embodiment of the present disclosure to this with no restriction.
The embodiment of the present disclosure is by taking message treatment method is configured in the electronic device as an example.
It should be noted that the executing subject of the embodiment of the present disclosure, can be, for example, server or electronics on hardware
Central processing unit (Central Processing Unit, CPU) in equipment, on software can be, for example, server or
Relevant background service in electronic equipment, with no restriction to this.
The disclosure is applied in instant messaging application, and instant messaging application is the application program of instant messaging class, application
Program can refer to the software program operated on electronic equipment, and electronic equipment is, for example, PC (Personal
Computer, PC), cloud device or mobile device, mobile device such as smart phone or tablet computer etc..
Message in the embodiment of the present disclosure is the message in instant messaging application.
Referring to Fig. 1, this method comprises:
S101: when receiving process instruction of first user to first message in the first session, process instruction is obtained
At least one message indicated.
Wherein, message needs the session being forwarded that can be referred to as the first session, and the user with message forwarding demand can
It,, can when choosing particular message, and clicking cursor of mouse by right key the first user is in the first session to be referred to as the first user
With ejector pin to the processing block option of the particular message, which can be referred to as first message, if the first user is in turn
When choosing [forwarding] control in processing block option, then it can show that [selection] is controlled in each message before first message
Part can trigger generation process instruction if the first user chooses part messages therein, and the process instruction by first for disappearing
The part messages that breath and user choose are forwarded in the second session, and part messages therein are at least one message.
S102: according to first message and at least one message, target message is generated, target message is disappearing for nesting type structure
Breath.
In the embodiment of the present disclosure, the message of nesting type structure can have following characteristics in display, only show that first disappears
Information associated by part messages in breath and at least one message, information is, for example, the sender of message, head portrait, sending time
Deng, and the specific message content of first message and at least one message is hidden, it can effectively simplify forwarded message, simultaneously
Associated information is remained, is traced to the source convenient for subsequent target information.
The embodiment of the present disclosure in order to effectively simplify forwarded message, while remaining pass during specific execute
The information of connection accurately traces to the source to target information convenient for subsequent, can determine at least one message, object time point
Information associated by message;Using information as the message header of target message, object time point will be removed at least a piece of news
The content of message except message, the message content as target message;Target message is generated according to information and message content.
In the embodiment of the present disclosure, can in the second session displaying target message message header, meanwhile, hiding target disappears
The message content of breath, alternatively, can also in the second session displaying target message message header, and hide target message and disappear
While ceasing content, display forwards the message on time point recently before, and message process mode is more flexible.
Object time point therein can be earliest for time point in multiple messages time point, information is, for example, the hair of message
It makes a gift to someone, head portrait, sending time etc., with no restriction to this.
The content of message therein is the content in terms of the practical semanteme for including of message.
In the embodiment of the present disclosure, can also merge generate target message when, judge at least one message whether include
Second message, second message are the message of nesting type structure;According to first message and at least one message, target message is generated,
And when at least one message comprising second message, target message and second message have different nested layer levels, Neng Goushi
When now forwarding message, the nesting of multi-layer is realized to the message for needing to merge forwarding, promotes the presentation effect of forwarded message.
In the embodiment of the present disclosure, if in target message including multilayer nest level, it can have in display following
Feature, only shows the message header of each nesting type structure message included in it, and disappearing for each nesting type structure message
Content is ceased, then when being hidden, and supporting subsequently received corresponding instruction, shows the message content hidden again.
Referring to fig. 2, Fig. 2 is a kind of application effect schematic diagram in the embodiment of the present disclosure, comprising: the first session 21, the second meeting
Words 22, target message 23 and target message 24, wherein the nested layer level of target message 23 is one layer, 24 nesting level of target message
Grade is two layers, comprising: first layer nested layer level 241 and second layer nested layer level 242 are only shown in displaying target message 24
The message header of the target message of first layer nested layer level 241 and second layer nested layer level 242.
For being described as follows for above-mentioned Fig. 2: the first session is, for example, to test group 1, and the second session is, for example, to test group
2, the inside is tri- users of two users of A, B and A, B, C respectively, and specific repeating process example is as follows:
1, in test group 1, A first inputs 1 message " 1 ", and B replys 1 message " 2 ".
2, message " 1 " and " 2 " are merged into 1 message (message can be referred to as target message) by B, and by target message
It is forwarded to test group 2, target message is shown as " 1/2 ", and the target message is the message of nesting type structure.
3, C replys target message " 1/2 ", inputs message " 3 ".
4, target message " 1/2 " and " 3 " can be merged into 1 message and be forwarded to test group 1, target message performance by A
For " 1/2/3 ", wherein due to the message that target message " 1/2 " is nesting type structure, if needing to be merged forwarding again,
When generating another target message, target message " 1/2 " can be known as second message, and make another target generated
The nested layer level of message and the nested layer level of second message be not identical.
5, B replys another target message " 1/2/3 ", has input text " 4 ".
6, target message " 1/2/3 " and " 4 " are merged into 1 message and are forwarded to test group 2 by B, and target message is shown as
“1/2/3/4”。
7, C replys target message " 1/2/3/4 ", has input text " 5 ".
8, target message " 1/2/3/4 " and " 5 " can be merged into 1 message and be forwarded to test group 1, target message by A
Show as " 1/2/3/4/5 ".
S103: target message is sent in the second session of process instruction instruction.
The embodiment of the present disclosure during specific execute, can in the second session displaying target message message mark
Topic, meanwhile, hide the message content of target message.
Alternatively, then showing each nested layer level message respectively when in target message including the message of multiple nested layer levels
Title, meanwhile, hide the message content of each nested layer level message.
In the embodiment of the present disclosure, also for convenient for subsequent user can precision trace to the source, in time refer to context, know
Complete message content, when receiving expansion instruction of the second user to target message in the second session, displaying target disappears
The message content of breath.
Together referring to fig. 2, Fig. 3 and Fig. 4, Fig. 3 be another application effect schematic diagram in the embodiment of the present disclosure, Fig. 4 is this
Another application effect schematic diagram illustrates the display of target message in Fig. 2 " 1/2/3/4/5 " in Fig. 3 in open embodiment
Effect diagram illustrates the display effect schematic diagram of target message in Fig. 2 " 1/2/3/4 " in Fig. 4.
In the embodiment of the present disclosure, the whole story information that message is quickly understood convenient for user is alsoed for, it can also be by nested type knot
The message of structure body is shown in 1 view sequentially in time, can generate mesh according to the message content of target message when being executed
Mark view, the displaying target view in the second session.
It is another application effect schematic diagram in the embodiment of the present disclosure referring to Fig. 5, Fig. 5, includes target view in Fig. 5
31, which show the detail message contents of the message of nesting type structure body.
In the embodiment of the present disclosure, alsos for realizing by the message of nesting type structure, be checked according to the time and sequence of forwarding
And positioning, key message is conveniently found, it can also be according to the message content in target view, when corresponding in conjunction with each message content
Between put and nested layer level, generate message map;Message map is shown in the second session.
It is another application effect schematic diagram in the embodiment of the present disclosure referring to Fig. 6, Fig. 6, includes message map in Fig. 6
61, which show in the message of nesting type structure body nested layer level and each message corresponding time point.
In the embodiment of the present disclosure, also for convenient for accurately tracing to the source and positioning original message, it can also be when in message
When receiving positioning instruction of the second user to message in figure, the specified target message content of positioning instruction is determined;From the second meeting
Message corresponding to target message content is oriented in words.
Wherein, target message content selected by positioning instruction can be referred to as in the specified target message of positioning instruction
Hold.
Target message content is specially to merge the content of the target message of forwarding, and the corresponding message of target message content is
Origination message before forwarding is merged to the target message.
In the embodiment of the present disclosure, when by receiving process instruction of first user to first message in the first session,
At least one message of process instruction instruction is obtained, and according to first message and at least one message, generates target message, target
Message is the message of nesting type structure, and target message is sent in the second session of process instruction instruction, due to generating
Target message be nesting type structure message, flexibility to Message Processing can be promoted, convenient for other when message forwards
Conversation group user's checks, promotes Message Processing effect.
Fig. 7 is the structural schematic diagram for the message processing apparatus that one embodiment of the disclosure proposes.
Message is the message in instant messaging application.
Referring to Fig. 7, which includes:
Module 701 being obtained, when for receiving process instruction of first user to first message in the first session, being obtained
At least one message of process instruction instruction;
First generation module 702, for generating target message, target message according to first message and at least one message
For the message of nesting type structure;
Sending module 703, for being sent to target message in the second session of process instruction instruction.
Optionally, in some embodiments, referring to Fig. 8, further includes:
Judgment module 704, for judging that second message is nested type knot whether comprising second message at least one message
The message of structure;
First generation module 702, is specifically used for:
According to first message and at least one message, target message is generated, and is disappeared at least one message comprising second
When breath, target message and second message have different nested layer levels.
Optionally, in some embodiments, the first generation module 702 is specifically used for:
It determines at least one message, information associated by the message of object time point;
Using information as the message header of target message, will disappear in addition to the message of object time point at least a piece of news
The content of breath, the message content as target message;
Target message is generated according to information and message content.
Optionally, in some embodiments, further includes:
Display module 705, for the message header of the displaying target message in the second session, meanwhile, hide target message
Message content.
Optionally, in some embodiments, display module 705 is also used to:
When receiving expansion instruction of the second user to target message in the second session, the message of displaying target message
Content.
Optionally, in some embodiments, further includes:
Second generation module 706, for generating target view according to the message content of target message;
Display module 705 is also used to the displaying target view in the second session.
Optionally, in some embodiments, further includes:
Third generation module 707, for according to the message content in target view, in conjunction with each message content corresponding time
Point and nested layer level generate message map;
Display module 705 is also used to show message map in the second session.
Optionally, in some embodiments, further includes:
Receiving module 708 when for receiving positioning instruction of the second user to message in message map, determines positioning
The specified target message content of instruction;
Locating module 709, for orienting message corresponding to target message content from the second session.
It should be noted that being also suitable in earlier figures 1- Fig. 6 embodiment to the explanation of message treatment method embodiment
In the message processing apparatus 700 of the embodiment, realization principle is similar, and details are not described herein again.
In the embodiment of the present disclosure, the first user is received to the process instruction of first message in the first session by working as
When, at least one message of process instruction instruction is obtained, and according to first message and at least one message, generate target message,
Target message is the message of nesting type structure, and target message is sent in the second session of process instruction instruction, due to
The target message of generation is the message of nesting type structure, can promote the flexibility to Message Processing when message forwards, be convenient for
Other conversation group users' checks, promotes Message Processing effect.
It is the structural schematic diagram for the electronic equipment that an embodiment of the present disclosure proposes below with reference to Fig. 9, Fig. 9.It illustrates
Suitable for being used to realize the structural schematic diagram of the electronic equipment 900 of the embodiment of the present disclosure.Terminal device in the embodiment of the present disclosure can
It is (flat to include but is not limited to such as mobile phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD
Plate computer), PMP (portable media player), car-mounted terminal (such as vehicle mounted guidance terminal) etc. mobile terminal and
Such as fixed terminal of number TV, desktop computer etc..
Electronic equipment shown in Fig. 9 is only an example, should not function and use scope band to the embodiment of the present disclosure
Carry out any restrictions.
As shown in figure 9, electronic equipment 900 may include processing unit (such as central processing unit, graphics processor etc.)
901, random access can be loaded into according to the program being stored in read-only memory (ROM) 902 or from storage device 808
Program in memory (RAM) 903 and execute various movements appropriate and processing.In RAM 903, it is also stored with electronic equipment
Various programs and data needed for 900 operations.Processing unit 901, ROM 902 and RAM 903 pass through the phase each other of bus 904
Even.Input/output (I/O) interface 905 is also connected to bus 904.
In general, following device can connect to I/O interface 905: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 906 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 907 of dynamic device etc.;Storage device 908 including such as tape, hard disk etc.;And communication device 909.Communication device
909, which can permit electronic equipment 900, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 9 shows tool
There is the electronic equipment 900 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for message treatment method shown in execution flow chart.At this
In the embodiment of sample, which can be downloaded and installed from network by communication device 909, or be filled from storage
It sets 908 to be mounted, or is mounted from ROM 902.When the computer program is executed by processing unit 901, the disclosure is executed
The above-mentioned function of being limited in embodiment message treatment method.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.
In the disclosure, computer readable storage medium can be any tangible medium for including or store program, the journey
Sequence can be commanded execution system, device or device use or in connection.And in the disclosure, it is computer-readable
Signal media may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying computer-readable
Program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, optical signal or on
Any appropriate combination stated.Computer-readable signal media can also be any calculating other than computer readable storage medium
Machine readable medium, the computer-readable signal media can send, propagate or transmit for by instruction execution system, device or
Person's device uses or program in connection.The program code for including on computer-readable medium can be with any appropriate
Medium transmission, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: when receiving process instruction of first user to first message in the first session,
Obtain at least one message of process instruction instruction;According to first message and at least one message, target message is generated, target disappears
Breath is the message of nesting type structure;Target message is sent in the second session of process instruction instruction.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in module involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of module does not constitute the restriction to the module itself under certain conditions, for example, the
One generation module is also described as " for generating target message, target message according to first message and at least one message
For the module of the message of nesting type structure ".
It should be noted that term " first ", " second " etc. are used for description purposes only in the description of the disclosure, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the disclosure, unless otherwise indicated, the meaning of " multiple "
It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the disclosure includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the disclosure
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the disclosure can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
Suddenly be that relevant hardware can be instructed to complete by program, program can store in a kind of computer readable storage medium
In, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the disclosure
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.If integrated module with
The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one
It takes in storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the disclosure.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although embodiment of the disclosure has been shown and described above, it is to be understood that above-described embodiment is example
Property, it should not be understood as the limitation to the disclosure, those skilled in the art within the scope of this disclosure can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.