CN106972941A - A kind of group chat method and mobile terminal - Google Patents
A kind of group chat method and mobile terminal Download PDFInfo
- Publication number
- CN106972941A CN106972941A CN201710295617.4A CN201710295617A CN106972941A CN 106972941 A CN106972941 A CN 106972941A CN 201710295617 A CN201710295617 A CN 201710295617A CN 106972941 A CN106972941 A CN 106972941A
- Authority
- CN
- China
- Prior art keywords
- group
- node
- target
- members
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1813—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
- H04L12/1822—Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
Abstract
The embodiments of the invention provide a kind of group chat method and mobile terminal.This method includes:Multiway Tree Structure is created by node of the group members in IM groups, wherein, the relation in Multiway Tree Structure between father node and child node invites the corresponding group members of child node for the corresponding group members of father node the hierarchical relationship into IM groups;According to the shortest path between corresponding with mobile terminal user node of each node in Multiway Tree Structure, group members are grouped, at least two groups are obtained, wherein, group members corresponding with the shortest path identical node between this node are same group in Multiway Tree Structure;Group identification is set to each group;Receive the target group mark and message content in group's message that mobile terminal user sends, identification group's message;Message content is sent to target group to the group members identified in corresponding target group.This invention simplifies the complex operations during group chat, beneficial to the instant messaging of each group members in IM groups.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of group chat method and mobile terminal.
Background technology
With the development of mobile terminal, instantaneous communication system (IM, Instant Messenger) software has been every shifting
Indispensable application in dynamic terminal, in communication process, because each user is owned by various social propertys and eventually sets up many
Individual chat communication group.At present, the group chat function of the IM softwares of mobile terminal is mainly by user by scanning Quick Response Code, addition friend
Friend, transmission invite the modes such as business card to draw in some user in some group and chatted, wherein, each user in group
, by with oneself there is the user of social networks to draw in a group, can thus it be led according to the social networks of the IM softwares of oneself
Cause the number of members in group more and more, also, the member in group is not to have friend relation.
So when some user in group merely desires to exchange the few members in this group, the scheme master of prior art
If re-establishing a group to carry out instant messaging with above-mentioned few members for above-mentioned few members by topic promoter.
But, when re-establishing this new group, topic promoter need and above-mentioned few members in everyone be good friend pass
System just can be with if not friend relation, it is necessary to which the new group can just be set up by adding after good friend.So allow for group chat step
Very complicated, is unfavorable for instant messaging.
The content of the invention
The embodiment of the present invention provides a kind of group chat method and mobile terminal, to solve group chat method of the prior art
Existing group members needed in group to part group members initiate chat when, it is necessary to additionally set up the step caused by group again
The problem of rapid very complicated.
In a first aspect, the embodiments of the invention provide a kind of group chat method, applied to mobile terminal, methods described bag
Include:
Multiway Tree Structure is created by node of the group members in IM groups, wherein, father node and son in the Multiway Tree Structure
Relation between node invites the corresponding group members of child node for the corresponding group members of father node the level into described IM groups
Relation;
According to the shortest path between each corresponding with mobile terminal user node of node in the Multiway Tree Structure,
Group members are grouped, at least two groups are obtained, wherein, it is most short between described node in the Multiway Tree Structure
Identical node corresponding group members in path are same group;
Group identification is set to each group;
Group's message that the mobile terminal user sends is received, target group mark and message in group's message is recognized
Content;
The message content is sent to the target group to the group members identified in corresponding target group.
Second aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, and the mobile terminal includes:
Creation module, for creating Multiway Tree Structure by node of the group members in IM groups, wherein, the Multiway Tree Structure
Relation between middle father node and child node, which invites the corresponding group members of child node for the corresponding group members of father node, enters institute
State the hierarchical relationship of IM groups;
Grouping module, for according to each corresponding with mobile terminal user node of node in the Multiway Tree Structure it
Between shortest path, group members are grouped, at least two groups are obtained, wherein, with described in the Multiway Tree Structure
The corresponding group members of shortest path identical node between node are same group;
Mark module, for setting group identification to each group;
Identification module is received, for receiving group's message that the mobile terminal user sends, is recognized in group's message
Target group is identified and message content;
Sending module, for the message content to be sent to the target group into the group identified in corresponding target group
Member.
So, the embodiment of the present invention according to the hierarchical relationship of IM groups is added between each group members by creating multiway tree
Structure, and each group members corresponding to each node in Multiway Tree Structure are grouped.When group members need in IM groups
When initiating to chat to part group members, group members without additionally setting up group again, without to the group members in newly-built group
Add as a friend, it is possible to realize to the group chats of part group members in IM groups, it is to avoid the step caused by newly-built group is cumbersome multiple
Miscellaneous the problem of, the complex operations during group chat are simplified, beneficial to the instant messaging of each group members in IM groups.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the flow chart of the group chat method of one embodiment of the invention;
Fig. 2 is the Multiway Tree Structure schematic diagram of one embodiment of the invention;
Fig. 3 is the block diagram of the mobile terminal of one embodiment of the invention;
Fig. 4 is the block diagram of the mobile terminal of another embodiment of the present invention;
Fig. 5 is the structural representation of the mobile terminal of one embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Reference picture 1, shows the flow chart of the group chat method of one embodiment of the invention, applied to mobile terminal, institute
Method is stated specifically to may include steps of:
When user triggers the division operation to the IM groups, in response to the division operation, the embodiment of the present invention
Method can be carried out the step of following packet and packet chat.
Step 101, Multiway Tree Structure is created by node of the group members in IM groups;
Wherein, the relation in the Multiway Tree Structure between father node and child node is the corresponding group members of father node by son
The corresponding group members of node invite the hierarchical relationship into described IM groups;
For example, as shown in Fig. 2 first user R1 for creating the IM crowds by all means can invite user R2~R5
Enter in the IM groups, so, R2~R5 is R1 child node, likewise, R2, which can invite user R6~R8, enters to IM again
In group, such R2 can turn into R6~R8 father node again, and user R9~R11 is invited and entered in IM groups by R5 so that R9
~R11 is R5 child node, and so, IM groups will gradually grow, and user is more and more, that is, the embodiment of the present invention just can be with
Entered according to invitation between each group members and be invited into the hierarchical relationship between the IM groups to construct the group members of the IM groups
Multiway Tree Structure between corresponding node.
Wherein, each node in Multiway Tree Structure as shown in Figure 2, which can continue to invite other users, enters to the IM
In group, so as to generate more child nodes (father node).
Step 102, according between each corresponding with mobile terminal user node of node in the Multiway Tree Structure
Group members are grouped by shortest path, obtain at least two groups;
Wherein, the corresponding group members of shortest path identical node in the Multiway Tree Structure between described node
For same group.
For example, the corresponding node of mobile terminal user is R6 in Multiway Tree Structure shown in Fig. 2, then R6 sides in order to be able to
It is enough that group members in the IM groups are grouped, consequently facilitating follow-up group's message packet transmission, the method for the embodiment of the present invention
The shortest path between the node of each in Multiway Tree Structure and node R 6 can be calculated, by the shortest path identical between R6
Node division is a group.
It can determine that the shortest path between R6 and R1 is the shortest path between 2, R6 and R2 by the calculating of shortest path
Footpath is that shortest path between 1, R6 and R3 is that shortest path between 3, R6 and R4 is that shortest path between 3, R6 and R5 is
3rd, the shortest path between R6 and R7 is that the shortest path between 2, R6 and R8 is that shortest path between 2, R6 and R9 is 4, R6
Shortest path between R10 is that the shortest path between 4, R6 and R11 is 4.
Therefore, the node that the shortest path between R6 is 1 be the node that the shortest path between R2, with R6 is 2 be R1,
The node that shortest path between R7, R8, with R6 is 3 be the node that the shortest path between R3, R4, R5, with R6 is 4 be R9,
R10、R11。
So, in the corresponding R6 sides of mobile terminal user, when the member in IM crowds is grouped, the corresponding users of R2
For one group (such as No. one group), the corresponding user of R1, R7, R8 is one group (such as No. two groups), and R3, R4, R5 are corresponding to be used
Family is one group (such as No. three groups), and the corresponding user of R9, R10, R11 is one group (such as No. four groups).So, mobile whole
End subscriber side, it is possible to which the member that IM crowds are divided into 4 groups, each group is the corresponding use of each node in above-mentioned packet
Family.
Wherein, the computational methods of shortest path can be using any calculation for being used to calculate shortest path of the prior art
Method, the present invention for shortest path algorithm and be not specifically limited.
In addition, it should be noted that due in the embodiment of the present invention the corresponding node of mobile terminal user be R6, therefore,
Packet situation, in actual applications, can be according to above-mentioned multiway tree as any group members in IM groups as described above, still
Beeline in structure between each node and the node of oneself is grouped to the member in IM crowds, therefore, in IM groups not
It is not fully consistent to the packet situation of the IM groups with member side.
Step 103, group identification is set to each group;
Step 104, group's message that the mobile terminal user sends is received, recognizes the target group mark in group's message
Know and message content;
Wherein, after the completion of packet, when mobile terminal user is in editor group's message, mobile terminal user just can be in pin
(need to receive some group of message, such as No. two groups) group identification to editor in group's message of IM groups and to the group
The group message content to be sent, here, some mobile terminal user of the embodiment of the present invention in receiving the IM crowds is in IM
During the group's message sent in group, it is possible to identify in target group mark pointed in group message and specific message
Hold.
Step 105, the message content is sent to the target group to the group members identified in corresponding target group.
Finally, the method for the embodiment of the present invention, which can be just sent the message content to target group, identifies pointed mesh
Mark the group members (wherein it is possible to being all or part of group members in target group) in group.
So, the embodiment of the present invention according to the hierarchical relationship of IM groups is added between each group members by creating multiway tree
Structure, and each group members corresponding to each node in Multiway Tree Structure are grouped, then when some use in IM groups
When family is wanted to send group's message to the part group members in IM groups, user need to only edit the group's mark pointed in group's message
Know and specific message content, the transmission that the embodiment of the present invention can just orient the message content to group identification correspondence
Group in group members, the member without making to be not belonging in IM crowds in the corresponding group of the group identification receives the message
Content.So, when group members need that part group members are initiated to chat in IM groups, group members without additionally setting up group again
Group, is added as a friend without to the group members in newly-built group, it is possible to realize the group chat to part group members in IM groups, it is to avoid
The problem of step very complicated caused by newly-built group, the complex operations during group chat are simplified, beneficial to each in IM groups
The instant messaging of group members.
Wherein, in one embodiment, can be corresponding using each group when setting group identification to each group
Shortest path sets group identification to each group.
For example, the group identification for the group that shortest path is 1 is " 1 ", the group for No. two groups that shortest path is 2
It is designated " 2 ".
So, the embodiment of the present invention can be named using more intuitively shortest path to group identification so that
User can determine contacting more closely between which group and user by group identification, wherein, it is in general, most short
Path is smaller, and the contact between two users is closer.
Alternatively, in another embodiment, after step 103 is performed, method according to embodiments of the present invention is also wrapped
Include:
Using the group identification as group name, packet is carried out to the group members in each group and shown;
Wherein, the display Name of the group members in the group of packet display includes affiliated group identification and group members title.
That is, after being grouped to IM groups, can be grouped and show to group members, and each group show it is entitled respectively
From group identification (such as shortest path), the group members included are shown again under each group, wherein, in display group members
When, its display Name includes affiliated group identification and group members title.
For example, the group identification of the group divided sets respectively 1,2,3,4 using shortest path.So after grouping
When being shown to each group, can with 1,2,3,4 be group name show each group, wherein, using the group members in 2 groups as
Example, the display Name of each group members is 2- Zhang San, 2- Li Sis ..., 1 group, 3 groups, the display side of the group members of 4 groups
Formula similarly, will not be repeated here.
So, after the group members packet in IM groups, differentiated can be carried out to each group and shown, and in each group
Group members also carry out differentiated and shown, so so that packet effect is more directly perceived, and facilitating user to search needs to enter which group
Row information communicates.
In addition, in another embodiment, when performing above-mentioned steps 104, can be existed by receiving mobile terminal user
The group's message sent in described IM groups, recognizes the default identifier in group's message;And according to the default identifier, to know
Target group mark and message content in not described group's message.
That is, being edited when user needs to send group's message to some group in IM groups, it is necessary in group's message
Default identifier, so, the embodiment of the present invention can be just recognized in target group mark and message using the default identifier
Hold.
For example the default identifier is "@"+" space ", wherein, "@" is used to indicate that target group is identified, and " space " is used for
Message content is indicated, such as group's message content is " how do you do by@2!", then after system receives this group of message, the present invention is real
Applying example can just identify that the content " 2 " before rear and " space " identifies for target group, the content after " space "
" how do you do!" it is specific message content.In this manner it is possible to by " how do you do!" send to the group that group identification in IM groups is 2
In group members, and the group members of group that group identification is 2 are not belonging in the packet of mobile terminal user side to be received
The message, also saves data traffic for other group members, and avoids and be disturbed.
Optionally, in addition, in one embodiment, mobile terminal user after to packet group send group's message when,
It can also edit such as that " how do you do by@@2!" group's message, wherein, "@@X " is represent to most short between mobile terminal user
Group of the path within X sends group's message, that is to say, that in this example, and " how do you do for this!" corresponding target group be and shifting
The Liang Ge groups that shortest path between dynamic terminal user is 1 and 2.I.e. "@@" are different from the identification target of "@" for another
The default identifier of group identification.
So, the target group mark identified can be one or more.
Certainly, the default identifier of the embodiment of the present invention is not limited to above-mentioned specific "@"+" space " or "@@"+" empty
The identifier of lattice ", can be the identifier arbitrarily to distinguish target group mark and message content.
Alternatively, the group members in IM groups can also pre-set the message of the group members transmission to which group and connect
Receive, and the message sent to the group members of other groups is rejected, it is to avoid it is disturbed, therefore, in another embodiment,
When performing step 105, method according to embodiments of the present invention can be identified in corresponding target group for the target group
Each group members, obtain the target shortest path for being used to receive message of each group members;By the message content send to
Target group members, wherein, the target group members are the target shortest path and the target group in the target group
Identify identical group members.
Wherein, for example, sending the mobile terminal user R6 of message, its group's message edited is " how do you do by@2!", then root
The method identified according to above-mentioned identification message content and target group can determine that R6 will " how do you do!" send between R6
Beeline 2 is the second group, and R6 purpose is by " how do you do!" to send to group identification in IM group be that 2 (group here marks
Know and named with shortest path) target group in group members (correspond to node R 1, R7, R8).Wherein, in the second group into
Member's node R 1, R7, R8 can also pre-set the respective target shortest path for being used to receive message.Need exist for second group
Each group members (including R1, R7, R8 distinguish corresponding user) in group, being used for of obtaining that they pre-set receives message
(message for the group that the shortest path that such as R1 is only received between R1 is 1, R7 are only received between R7 target shortest path
The message for the group that the shortest path that the message for the group that shortest path is 2, R8 are only received between R8 is 3), and R6 with it is above-mentioned
Shortest path between R1, R7, R8 is 2, so, the message content that R6 is sent can only send the R7 correspondences into the second group
Member because the corresponding member of R1, R8 is shielded processing to group's message that R6 is sent.
So, the embodiment of the present invention is by the processing to group's message of each group members Zuo Zhi receiving portions group in IM groups,
So as to realize the message screening processing to part group, the exchange demand of user is taken into full account, to the group that need not be exchanged
Reasonably make shielding processing, it is to avoid be disturbed.
Reference picture 3, shows the block diagram of the mobile terminal of one embodiment of the invention.The mobile terminal of the embodiment of the present invention
The details of the group chat method of above-described embodiment can be realized, and reaches identical effect.Mobile terminal includes shown in Fig. 3:
Creation module 31, for creating Multiway Tree Structure by node of the group members in IM groups, wherein, the multiway tree knot
Relation in structure between father node and child node, which invites the corresponding group members of child node for the corresponding group members of father node, to be entered
Described IM groups hierarchical relationship;
Grouping module 32, for according to each corresponding with mobile terminal user node of node in the Multiway Tree Structure
Between shortest path, group members are grouped, at least two groups are obtained, wherein, in the Multiway Tree Structure with it is described
The corresponding group members of shortest path identical node between this node are same group;
Mark module 33, for setting group identification to each group;
Identification module 34 is received, for receiving group's message that the mobile terminal user sends, is recognized in group's message
Target group mark and message content;
Sending module 35, is identified in corresponding target group for the message content to be sent to the target group
Group members.
Alternatively, the mark module 33 includes:
Labeling submodule, for setting group identification to each group using the corresponding shortest path of each group.
Alternatively, the mobile terminal also includes:
Display module 36, for the group identification, as group name, to be divided the group members in each group
Group display;
Wherein, the display Name of the group members in the group of packet display includes affiliated group identification and group members title.
Alternatively, the sending module 35 includes:
Acquisition submodule, for identifying each group members in corresponding target group for the target group, is obtained
The target shortest path for being used to receive message of each group members;
Sending submodule, is sent to target group members, the target group members are the target with by the message content
The target shortest path identifies identical group members with the target group in group.
Alternatively, the reception identification module 34 includes:
First identification submodule, for receiving group's message that the mobile terminal user sends, is recognized in group's message
Default identifier;
Second identification submodule, for according to the default identifier, recognizing the target group mark in group's message
And message content.
Mobile terminal can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here not
Repeat again.
So, the embodiment of the present invention according to the hierarchical relationship of IM groups is added between each group members by creating multiway tree
Structure, and each group members corresponding to each node in Multiway Tree Structure are grouped.When group members need in IM groups
When initiating to chat to part group members, group members without additionally setting up group again, without to the group members in newly-built group
Add as a friend, it is possible to realize to the group chats of part group members in IM groups, it is to avoid the step caused by newly-built group is cumbersome multiple
Miscellaneous the problem of, the complex operations during group chat are simplified, beneficial to the instant messaging of each group members in IM groups.
Fig. 4 is the block diagram of the mobile terminal of another embodiment of the invention.Mobile terminal 400 shown in Fig. 4 includes:At least
One processor 401, memory 402, at least one network interface 404 and user interface 403.Each in mobile terminal 400
Component is coupled by bus system 405.It is understood that bus system 405 is used to realize that the connection between these components to be led to
Letter.Bus system 405 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But be
For the sake of clear explanation, in Fig. 4 various buses are all designated as bus system 405.
Wherein, user interface 403 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 402 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The embodiment of the present invention description system and method memory 402 be intended to including but not limited to these
With the memory of any other suitable type.
In some embodiments, memory 402 stores following element, can perform module or data structure, or
Their subset of person, or their superset:Operating system 4021 and application program 4022.
Wherein, operating system 4021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for
Realize various basic businesses and handle hardware based task.Application program 4022, includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 4022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 402, specifically, can be application
The program stored in program 4022 or instruction, processor 401 are used to create Multiway Tree Structure by node of the group members in IM groups,
Wherein, the relation in the Multiway Tree Structure between father node and child node is that the corresponding group members of father node are corresponding by child node
Group members invite and enter described IM groups of hierarchical relationship;According to each node and mobile terminal user in the Multiway Tree Structure
Group members are grouped by the shortest path between corresponding node, obtain at least two groups, wherein, the multiway tree
The corresponding group members of shortest path identical node in structure between described node are same group;Each group is set
Put group identification;Receive group's message that the mobile terminal user sends, recognize target group mark in group's message and
Message content;The message content is sent to the target group to the group members identified in corresponding target group.
The method that the embodiments of the present invention are disclosed can apply in processor 401, or be realized by processor 401.
Processor 401 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 401 or the instruction of software form.Above-mentioned processing
Device 401 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 402, processor 401 reads the information in memory 402, the step of completing the above method with reference to its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits
(Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal
Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable
Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place
Manage in device, controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
For software realize, can by perform the module (such as process, function) of function described in the embodiment of the present invention come
Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can
To realize within a processor or outside processor.
Alternatively, processor 401 is additionally operable to:Group is set to mark each group using the corresponding shortest path of each group
Know.
Alternatively, processor 401 is additionally operable to:Using the group identification as group name, to the group in each group into
Member carries out packet and shown;
Wherein, the display Name of the group members in the group of packet display includes affiliated group identification and group members title.
Alternatively, processor 401 is additionally operable to:For the target group identify each group in corresponding target group into
Member, obtains the target shortest path for being used to receive message of each group members;The message content is sent to target group members,
The target group members are that the target shortest path identifies identical group members with the target group in the target group.
Alternatively, processor 401 is additionally operable to:Group's message that the mobile terminal user sends is received, recognizes that the group disappears
Default identifier in breath;According to the default identifier, target group mark and the message content in group's message are recognized.
Mobile terminal 400 can realize that mobile terminal in previous embodiment realizes by according between each group members plus
Enter the hierarchical relationship of IM groups to create Multiway Tree Structure, and each group members corresponding to each node in Multiway Tree Structure are entered
Row packet.When group members need that part group members are initiated to chat in IM groups, group members need not additionally set up group again,
Added as a friend without to the group members in newly-built group, it is possible to realize the group chat to part group members in IM groups, it is to avoid
The problem of step very complicated caused by newly-built group, the complex operations during group chat are simplified, beneficial to each group in IM crowds
The effect of the instant messaging of member, to avoid repeating, is repeated no more here.
Fig. 5 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 5
500 can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 500 in Fig. 5 includes radio frequency (Radio Frequency, RF) circuit 510, memory 520, input
Unit 530, display unit 540, processor 560, voicefrequency circuit 570, WiFi (Wireless Fidelity) modules 580 and electricity
Source 590.
Wherein, input block 530 can be used for receive mobile terminal user input numeral or character information, and produce with
The signal input that the mobile terminal user of mobile terminal 500 is set and function control is relevant.Specifically, the embodiment of the present invention
In, the input block 530 can include contact panel 531.Contact panel 531, also referred to as touch-screen, collect mobile terminal and use
(such as mobile terminal user uses any suitable objects or annex such as finger, stylus for touch operation of the family on or near it
Operation on contact panel 531), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel
531 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects mobile terminal user's
Touch orientation, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch detection
Touch information is received on device, and is converted into contact coordinate, then gives the processor 560, and energy reception processing device 560 is sent out
Come order and performed.Furthermore, it is possible to real using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves
Existing contact panel 531.Except contact panel 531, input block 530 can also include other input equipments 532, and other inputs are set
Standby 532 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse
One or more in mark, action bars etc..
Wherein, display unit 540 can be used for showing the information inputted by mobile terminal user or be supplied to mobile terminal to use
The information at family and the various menu interfaces of mobile terminal 500.Display unit 540 may include display panel 541, optionally, can
To configure display using the form such as LCD or Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
Panel 541.
It should be noted that contact panel 531 can cover display panel 541, touch display screen is formed, when touch display screen inspection
Measure after the touch operation on or near it, processor 560 is sent to determine the type of touch event, with preprocessor
560 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 560 is the control centre of mobile terminal 500, utilizes various interfaces and connection whole mobile phone
Various pieces, software program and/or module in first memory 521 are stored in by operation or execution, and call storage
Data in second memory 522, perform the various functions and processing data of mobile terminal 500, so as to mobile terminal 500
Carry out integral monitoring.Optionally, processor 560 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 521 in software program and/or module and/
Or the data in the second memory 522, processor 560 be used for by node of the group members in IM group establishment Multiway Tree Structure,
Wherein, the relation in the Multiway Tree Structure between father node and child node is that the corresponding group members of father node are corresponding by child node
Group members invite and enter described IM groups of hierarchical relationship;According to each node and mobile terminal user in the Multiway Tree Structure
Group members are grouped by the shortest path between corresponding node, obtain at least two groups, wherein, the multiway tree
The corresponding group members of shortest path identical node in structure between described node are same group;Each group is set
Put group identification;Receive group's message that the mobile terminal user sends, recognize target group mark in group's message and
Message content;The message content is sent to the target group to the group members identified in corresponding target group.
Alternatively, processor 560 is additionally operable to:Group is set to mark each group using the corresponding shortest path of each group
Know.
Alternatively, processor 560 is additionally operable to:Using the group identification as group name, to the group in each group into
Member carries out packet and shown;
Wherein, the display Name of the group members in the group of packet display includes affiliated group identification and group members title.
Alternatively, processor 560 is additionally operable to:For the target group identify each group in corresponding target group into
Member, obtains the target shortest path for being used to receive message of each group members;The message content is sent to target group members,
The target group members are that the target shortest path identifies identical group members with the target group in the target group.
Alternatively, processor 560 is additionally operable to:Group's message that the mobile terminal user sends is received, recognizes that the group disappears
Default identifier in breath;According to the default identifier, target group mark and the message content in group's message are recognized.
It can be seen that, the embodiment of the present invention can realize by according between each group members add IM groups hierarchical relationship come
Multiway Tree Structure is created, and each group members corresponding to each node in Multiway Tree Structure are grouped.When group members exist
When needing that part group members are initiated to chat in IM groups, group members without additionally setting up group again, without to newly-built group
In group members add as a friend, it is possible to realize to the group chats of part group members in IM groups, it is to avoid caused by newly-built group
The problem of complex steps are complicated, simplifies the complex operations during group chat, beneficial to the instant messaging of each group members in IM groups
Effect, to avoid repeating, is repeated no more here.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each
The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.
Claims (10)
1. a kind of group chat method, applied to mobile terminal, it is characterised in that methods described includes:
Group members using in instantaneous communication system IM groups create Multiway Tree Structure as node, wherein, father in the Multiway Tree Structure
Relation between node and child node, which invites the corresponding group members of child node for the corresponding group members of father node, enters the IM
The hierarchical relationship of group;
According to the shortest path between each corresponding with mobile terminal user node of node in the Multiway Tree Structure, to group
Member is grouped, and obtains at least two groups, wherein, the shortest path in the Multiway Tree Structure between described node
The corresponding group members of identical node are same group;
Group identification is set to each group;
Group's message that the mobile terminal user sends is received, is recognized in target group mark and the message in group's message
Hold;
The message content is sent to the target group to the group members identified in corresponding target group.
2. according to the method described in claim 1, it is characterised in that described to set group identification to each group, including:
Group identification is set to each group using the corresponding shortest path of each group.
3. method according to claim 1 or 2, it is characterised in that after the setting group identification to each group, institute
Stating method also includes:
Using the group identification as group name, packet is carried out to the group members in each group and shown;
Wherein, the display Name of the group members in the group of packet display includes affiliated group identification and group members title.
4. method according to claim 2, it is characterised in that described to send the message content to the target group
The group members in corresponding target group are identified, including:
Identify each group members in corresponding target group for the target group, obtain each group members be used for receive
The target shortest path of message;
The message content is sent to target group members, the target group members are that the target is most short in the target group
Path identifies identical group members with the target group.
5. according to the method described in claim 1, it is characterised in that the group for receiving mobile terminal user's transmission disappears
Breath, recognizes target group mark and the message content in group's message, including:
Group's message that the mobile terminal user sends is received, the default identifier in group's message is recognized;
According to the default identifier, target group mark and the message content in group's message are recognized.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Creation module, for creating Multiway Tree Structure by node of the group members in IM groups, wherein, father in the Multiway Tree Structure
Relation between node and child node, which invites the corresponding group members of child node for the corresponding group members of father node, enters the IM
The hierarchical relationship of group;
Grouping module, for according between each corresponding with mobile terminal user node of node in the Multiway Tree Structure
Group members are grouped by shortest path, obtain at least two groups, wherein, with described node in the Multiway Tree Structure
Between the corresponding group members of shortest path identical node be same group;
Mark module, for setting group identification to each group;
Identification module is received, for receiving group's message that the mobile terminal user sends, the target in group's message is recognized
Group identification and message content;
Sending module, for by the message content send to the target group identify group in corresponding target group into
Member.
7. mobile terminal according to claim 6, it is characterised in that the mark module includes:
Labeling submodule, for setting group identification to each group using the corresponding shortest path of each group.
8. the mobile terminal according to claim 6 or 7, it is characterised in that the mobile terminal also includes:
Display module, for as group name, carrying out packet to the group members in each group and showing the group identification;
Wherein, the display Name of the group members in the group of packet display includes affiliated group identification and group members title.
9. mobile terminal according to claim 7, it is characterised in that the sending module includes:
Acquisition submodule, for identifying each group members in corresponding target group for the target group, obtains each
The target shortest path for being used to receive message of group members;
Sending submodule, is sent to target group members, the target group members are the target group with by the message content
The interior target shortest path identifies identical group members with the target group.
10. mobile terminal according to claim 6, it is characterised in that the reception identification module includes:
First identification submodule, for receiving group's message that the mobile terminal user sends, is recognized pre- in group's message
If identifier;
Second identification submodule, for according to the default identifier, recognizing the mark of the target group in group's message and disappearing
Cease content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710295617.4A CN106972941B (en) | 2017-04-28 | 2017-04-28 | A kind of group chat method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710295617.4A CN106972941B (en) | 2017-04-28 | 2017-04-28 | A kind of group chat method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106972941A true CN106972941A (en) | 2017-07-21 |
CN106972941B CN106972941B (en) | 2019-10-15 |
Family
ID=59330281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710295617.4A Active CN106972941B (en) | 2017-04-28 | 2017-04-28 | A kind of group chat method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106972941B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108833252A (en) * | 2018-04-02 | 2018-11-16 | 阿里巴巴集团控股有限公司 | A kind of method for sending information based on cluster, device and equipment |
CN109379274A (en) * | 2018-10-29 | 2019-02-22 | 政采云有限公司 | A kind of method for sending information and device of instant messaging group |
CN109981304A (en) * | 2019-02-28 | 2019-07-05 | 北京达佳互联信息技术有限公司 | Instant session method, device and storage medium |
CN111628877A (en) * | 2020-05-25 | 2020-09-04 | 上海中通吉网络技术有限公司 | Group message sending method, device and system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070019616A1 (en) * | 2005-06-29 | 2007-01-25 | Olli Rantapuska | Group formation using mobile computing devices |
US20100005402A1 (en) * | 2008-07-01 | 2010-01-07 | International Business Machines Corporation | System and Apparatus for Whispering in Group Chats |
CN103888344A (en) * | 2014-03-20 | 2014-06-25 | 小米科技有限责任公司 | Group creation method, group exiting method and device |
CN104301359A (en) * | 2013-07-19 | 2015-01-21 | 深圳市友福同享信息科技有限公司 | Method and system for displaying user relation in network community via groups |
CN104660483A (en) * | 2013-11-21 | 2015-05-27 | 腾讯科技(上海)有限公司 | Method, service terminal and system for group communication |
CN105187297A (en) * | 2015-08-17 | 2015-12-23 | 湖南简成信息技术有限公司 | Multi-stage group control method based on instant messaging |
CN105224638A (en) * | 2015-09-25 | 2016-01-06 | 珠海赞友科技有限公司 | A kind of display packing of group chat software systems group relation chain |
US20160277335A1 (en) * | 2015-03-20 | 2016-09-22 | Alibaba Group Holding Limited | Method and system for providing private chat within a group chat |
CN105991420A (en) * | 2015-02-27 | 2016-10-05 | 深圳市兆面信息技术有限公司 | Instant communication software and social circle privacy classification isolation method and system |
-
2017
- 2017-04-28 CN CN201710295617.4A patent/CN106972941B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070019616A1 (en) * | 2005-06-29 | 2007-01-25 | Olli Rantapuska | Group formation using mobile computing devices |
US20100005402A1 (en) * | 2008-07-01 | 2010-01-07 | International Business Machines Corporation | System and Apparatus for Whispering in Group Chats |
CN104301359A (en) * | 2013-07-19 | 2015-01-21 | 深圳市友福同享信息科技有限公司 | Method and system for displaying user relation in network community via groups |
CN104660483A (en) * | 2013-11-21 | 2015-05-27 | 腾讯科技(上海)有限公司 | Method, service terminal and system for group communication |
CN103888344A (en) * | 2014-03-20 | 2014-06-25 | 小米科技有限责任公司 | Group creation method, group exiting method and device |
CN105991420A (en) * | 2015-02-27 | 2016-10-05 | 深圳市兆面信息技术有限公司 | Instant communication software and social circle privacy classification isolation method and system |
US20160277335A1 (en) * | 2015-03-20 | 2016-09-22 | Alibaba Group Holding Limited | Method and system for providing private chat within a group chat |
CN105187297A (en) * | 2015-08-17 | 2015-12-23 | 湖南简成信息技术有限公司 | Multi-stage group control method based on instant messaging |
CN105224638A (en) * | 2015-09-25 | 2016-01-06 | 珠海赞友科技有限公司 | A kind of display packing of group chat software systems group relation chain |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108833252A (en) * | 2018-04-02 | 2018-11-16 | 阿里巴巴集团控股有限公司 | A kind of method for sending information based on cluster, device and equipment |
WO2019192251A1 (en) * | 2018-04-02 | 2019-10-10 | 阿里巴巴集团控股有限公司 | Cluster-based information transmission method and apparatus, and device |
CN109379274A (en) * | 2018-10-29 | 2019-02-22 | 政采云有限公司 | A kind of method for sending information and device of instant messaging group |
CN109981304A (en) * | 2019-02-28 | 2019-07-05 | 北京达佳互联信息技术有限公司 | Instant session method, device and storage medium |
CN111628877A (en) * | 2020-05-25 | 2020-09-04 | 上海中通吉网络技术有限公司 | Group message sending method, device and system |
CN111628877B (en) * | 2020-05-25 | 2022-07-01 | 上海中通吉网络技术有限公司 | Group message sending method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN106972941B (en) | 2019-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107147505A (en) | A kind of group chat method and mobile terminal | |
CN107196846A (en) | A kind of group chat method and mobile terminal | |
CN106961342A (en) | A kind of group chat method and mobile terminal | |
CN107466077A (en) | A kind of method for switching network and mobile terminal | |
CN106844067B (en) | A kind of processing method and mobile terminal of content | |
CN104202473B (en) | Merge the method and mobile terminal of session | |
CN106681711A (en) | Method for content sharing under split screen mode and mobile terminal | |
CN106972941A (en) | A kind of group chat method and mobile terminal | |
CN107360008A (en) | The method for pushing and mobile terminal of a kind of group message | |
CN106445495A (en) | Application program interface display method and mobile terminal | |
CN107526492A (en) | The interface display method and mobile terminal of a kind of application program | |
CN106851001A (en) | A kind of information processing method and mobile terminal | |
CN107196847A (en) | A kind of group chat method and mobile terminal | |
CN107357484A (en) | One kind prompting mark adding method, terminal and computer-readable recording medium | |
CN106304276A (en) | A kind of wireless network processing method and mobile terminal | |
CN106993267A (en) | A kind of hotspot connection method, first terminal and second terminal | |
CN106790547A (en) | A kind of PPT sharing methods and mobile terminal | |
CN106817484A (en) | The acquisition methods and mobile terminal of a kind of session information | |
CN106802766A (en) | The control method and mobile terminal of a kind of mobile terminal | |
CN107729420A (en) | A kind of update method and mobile terminal of input method dictionary | |
CN106210106A (en) | A kind of intelligent meeting implementation method and mobile terminal | |
CN106874046A (en) | The operating method and mobile terminal of a kind of application program | |
CN107172287A (en) | A kind of many cartoon letters methods and mobile terminal | |
CN106231113A (en) | A kind of Dialing Method and mobile terminal | |
CN107390991A (en) | The processing method and mobile terminal of a kind of sectional drawing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |