CN106972941B - A kind of group chat method and mobile terminal - Google Patents

A kind of group chat method and mobile terminal Download PDF

Info

Publication number
CN106972941B
CN106972941B CN201710295617.4A CN201710295617A CN106972941B CN 106972941 B CN106972941 B CN 106972941B CN 201710295617 A CN201710295617 A CN 201710295617A CN 106972941 B CN106972941 B CN 106972941B
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.)
Active
Application number
CN201710295617.4A
Other languages
Chinese (zh)
Other versions
CN106972941A (en
Inventor
杨章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710295617.4A priority Critical patent/CN106972941B/en
Publication of CN106972941A publication Critical patent/CN106972941A/en
Application granted granted Critical
Publication of CN106972941B publication Critical patent/CN106972941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1822Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a kind of group chat method and mobile terminals.This method comprises: creating Multiway Tree Structure by node of the group members in IM groups, wherein the relationship in Multiway Tree Structure between father node and child node is the hierarchical relationship that the corresponding group members invitation of child node is entered IM groups by the corresponding group members of father node;According to the shortest path between corresponding with mobile terminal user node of node each in Multiway Tree Structure, group members are grouped, obtain at least two groups, wherein the corresponding group members of identical with the shortest path between this node node are same group in Multiway Tree Structure;Group identification is arranged to each group;Group's message that mobile terminal user sends is received, identifies target group mark and message content in group's message;Message content is sent to target group and identifies group members in corresponding target group.This invention simplifies the complex operations during group chat, conducive to the instant messaging of each group members in IM groups.

Description

A kind of group chat method and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of group chat method and mobile terminals.
Background technique
With the development of mobile terminal, instantaneous communication system (IM, Instant Messenger) software has been every shifting Indispensable application is eventually established more in communication process since each user is owned by various social properties in dynamic terminal A chat communication group.Currently, the group chat function of the IM software of mobile terminal is mainly by user by scanning the two-dimensional code, adding friend Friend, transmission invite the modes such as business card to draw in some user in some group and chat, wherein each user in group It can will be drawn in a group with the user for oneself having social networks according to the social networks of the IM software of oneself, thus be led 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 the prior art If re-establishing a group for above-mentioned few members by topic promoter to carry out instant messaging with above-mentioned few members. But when re-establishing this new group, topic promoter needs and each of above-mentioned few members are good friend passes System just can be just can establish the new group after needing to add good friend if not friend relation.Group chat step is allowed in this way Very complicated is unfavorable for instant messaging.
Summary of the invention
The embodiment of the present invention provides a kind of group chat method and mobile terminal, to solve group chat method in the prior art When existing group members need to initiate to chat to part group members in group, need to additionally set up step caused by group again The problem of rapid very complicated.
In a first aspect, being applied to mobile terminal, the method packet the embodiment of the invention provides a kind of group chat method It includes:
Multiway Tree Structure is created by node of the group members in IM groups, wherein father node and son in the Multiway Tree Structure Relationship between node is that the corresponding group members of father node invite the corresponding group members of child node into IM groups of the level Relationship;
According to the shortest path between corresponding with mobile terminal user node of each node in the Multiway Tree Structure, Group members are grouped, at least two groups are obtained, wherein is most short between described node in the Multiway Tree Structure The corresponding group members of the identical node in path are same group;
Group identification is arranged to each group;
Group's message that the mobile terminal user sends is received, identifies target group mark and message in group's message Content;
The message content is sent to the target group and identifies group members in corresponding target group.
Second aspect, the embodiment of the invention also provides a kind of mobile terminal, 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 Relationship 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 IM groups of hierarchical relationships;
Grouping module, for according to corresponding with mobile terminal user node of each node in the Multiway Tree Structure it Between shortest path, group members are grouped, at least two groups are obtained, wherein in the Multiway Tree Structure with described The corresponding group members of the identical node of shortest path between node are same group;
Mark module, for group identification to be arranged to each group;
Identification module is received, the group's message sent for receiving the mobile terminal user identifies in group's message Target group mark and message content;
Sending module identifies group in corresponding target group for the message content to be sent to the target group Member.
In this way, the embodiment of the present invention is by creating multiway tree according to IM groups of hierarchical relationships are added between each group members Structure, and each group members corresponding to node each 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 It adds as a friend, so that it may realize to the group chat of part group members in IM groups, it is cumbersome multiple to avoid step caused by newly-built group Miscellaneous problem simplifies the complex operations during group chat, conducive to the instant messaging of each group members in IM groups.
Detailed description of the invention
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 Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached 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 schematic diagram of the mobile terminal of one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Fig.1, the flow chart of the group chat method of one embodiment of the invention is shown, mobile terminal, institute are applied to The method of stating can specifically include following steps:
When user triggers the division operation to the IM groups, in response to the division operation, the embodiment of the present invention The step of method can be carried out being grouped as follows and grouping is chatted.
Step 101, Multiway Tree Structure is created by node of the group members in IM groups;
Wherein, the relationship in the Multiway Tree Structure between father node and child node is that the corresponding group members of father node will be sub The corresponding group members of node, which are invited, enters IM groups of the hierarchical relationship;
For example, as shown in Fig. 2, first user R1 for creating the IM crowds can by all means invite user R2~R5 It enters in the IM groups, in this way, R2~R5 is the child node of R1, likewise, R2, which can invite user R6~R8, enters to IM again In group, such R2 can enter to user R9~R11 invitation in IM groups as the father node and R5 of R6~R8 again, so that R9 ~R11 is the child node of R5, in this way, IM groups will gradually grow, user is more and more, that is, the embodiment of the present invention Entered according to invitation between each group members and is invited into the hierarchical relationship between the IM groups to construct the IM groups of group members 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, to generate more child nodes (father node).
Step 102, according between corresponding with mobile terminal user node of each node in the Multiway Tree Structure Shortest path is grouped group members, obtains at least two groups;
Wherein, the corresponding group members of the identical node of shortest path in the Multiway Tree Structure between described node For same group.
For example, in Multiway Tree Structure shown in Fig. 2 the corresponding node of mobile terminal user be R6, then the side R6 in order to It is enough that group members in the IM groups are grouped, consequently facilitating the grouping of subsequent group's message is sent, the method for the embodiment of the present invention The shortest path in Multiway Tree Structure between each node and node R 6 can be calculated, the shortest path between R6 is identical 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 Diameter is 1, the shortest path between R6 and R3 is 3, the shortest path between R6 and R4 is 3, the shortest path between R6 and R5 is 3, the shortest path between R6 and R7 is 2, the shortest path between R6 and R8 is 2, the shortest path between R6 and R9 is 4, R6 Shortest path between R10 is 4, the shortest path between 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 side R6 of mobile terminal user, when being grouped to the member in IM crowds, the corresponding user of R2 For one group (such as No.1 group), the corresponding user of R1, R7, R8 is one group (such as No. two groups), the corresponding use of R3, R4, R5 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).In this way, mobile whole End subscriber side, so that it may be divided into 4 groups for IM groups, the member in each group is the corresponding use of each node in above-mentioned grouping Family.
Wherein, the calculation method of shortest path can be using in the prior art any for calculating the calculation of shortest path 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, Situation is grouped as described above, still, it in practical applications, can be according to above-mentioned multiway tree as any group members in IM groups The shortest distance in structure between each node and the node of oneself is grouped the member in IM crowds, therefore, in IM groups not It is not fully consistent to the IM groups of grouping situation with member side.
Step 103, group identification is arranged to each group;
Step 104, group's message that the mobile terminal user sends is received, identifies the target group mark in group's message Knowledge and message content;
Wherein, after the completion of grouping, when mobile terminal user is in editor group's message, mobile terminal user can be in needle To editor in IM groups of group's message (need to receive some group of message, such as No. two groups) group identification and to the group The group message content to be sent, here, the embodiment of the present invention is receiving some mobile terminal user in the IM crowds in IM When the group's message sent in group, so that it may identify in target group mark and specific message pointed in group message Hold.
Step 105, the message content is sent to the target group and identifies group members in corresponding target group.
Finally, the message content can be sent to the pointed mesh of target group mark by the method for the embodiment of the present invention Mark the group members (wherein it is possible to being all or part of group members in target group) in group.
In this way, the embodiment of the present invention is by creating multiway tree according to IM groups of hierarchical relationships are added between each group members Structure, and each group members corresponding to node each 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 being directed toward in group's message Knowledge and specific message content, it is corresponding that the embodiment of the present invention can orient the message content is sent to the group identification Group in group members, without making the member being not belonging in the corresponding group of the group identification in IM crowds receive the message Content.In this way, group members without additionally setting up group again when group members need to initiate to chat to part group members in IM groups Group is added as a friend without to the group members in newly-built group, so that it may be realized to the group chat of part group members in IM groups, be avoided The problem of step very complicated caused by newly-built group, the complex operations during group chat are simplified, is conducive in IM group respectively The instant messaging of group members.
It wherein, in one embodiment, can be corresponding using each group when group identification is arranged to each group Group identification is arranged to each group in shortest path.
For example, the group identification for the No.1 group that shortest path is 1 is the group of " 1 ", No. two groups that shortest path is 2 It is identified as " 2 ".
In this way, the embodiment of the present invention can be named group identification using more intuitive shortest path, so that User can determine contacting more closely between which group and user by group identification, wherein in general, most short Path is smaller, and the connection between two users is closer.
Optionally, in another embodiment, it after executing step 103, also wraps according to the method for the embodiment of the present invention It includes:
Using the group identification as group name, display is grouped to the group members in each group;
Wherein, the display Name for the group members being grouped in the group of display includes affiliated group identification and group members title.
That is, to IM groups grouping after, can to group members be grouped show, and each group show it is entitled respectively From group identification (such as shortest path), show the group members for being included again under each group, wherein in display group members When, display Name includes affiliated group identification and group members title.
For example, respectively 1,2,3,4 are arranged using shortest path for the group identification of the group divided.So after grouping When showing to each group, each group can be shown for group name with 1,2,3,4, wherein be with the group members in 2 groups Example, the display Names of each group members are 2- Zhang San, 2- Li Si ..., 1 group, 3 groups, 4 groups group members display side Similarly, details are not described herein for formula.
In this way, can carry out differentiated after to the group members grouping in IM groups to each group and show, and in each group Group members also carry out differentiated and show, in this way, make be grouped effect it is more intuitive, facilitate user search need to which group into Row information communication.
In addition, in another embodiment, when executing above-mentioned steps 104, can be existed by receiving mobile terminal user The group's message sent in IM groups described identifies 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, needing to edit in group's message when user needs to send group's message to some group in IM groups Default identifier, in this way, the embodiment of the present invention can use the default identifier just to identify in target group mark and message Hold.
Such as the default identifier is "@"+" space ", wherein "@" is used to indicate target group mark, and " space " is used for Instruction message content, such as group's message content are that " how do you do by@2!", then the present invention is real after system receives this group of message Content of the content " 2 " after@and before " space " for target group mark, after " space " can be identified by applying example " how do you do!" it is specific message content.In this manner it is possible to by " how do you do!" it is sent to the group that group identification is 2 in IM groups In group members, and the group members of group that group identification is 2 are not belonging in the grouping 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 to after grouping 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 to indicate 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, " how do you do for this!" corresponding target group is and shifting The Liang Ge group that shortest path between dynamic terminal user is 1 and 2.I.e. "@@" is another identification target for being different from "@" The default identifier of group identification.
In this way, 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 "@@"+" sky The identifier of lattice " can be the identifier for arbitrarily distinguishing target group mark and message content.
Optionally, the message that the group members in IM groups can also preset the group members transmission to which group connects It receives, and the message sent to the group members of other groups is rejected, and avoids being disturbed, therefore, in another embodiment, When executing step 105, it can be identified in corresponding target group for the target group according to the method for the embodiment of the present invention Each group members, obtain each group members for receiving the target shortest path of message;The message content is sent 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, group's message of editor is that " how do you do by@2!", then root It can determine that R6 will " how do you do according to the method that above-mentioned identification message content and target group identify!" be sent between R6 The shortest distance 2 is the second group, and the purpose of R6 is by " how do you do!" to be sent to group identification in IM groups be 2 (group's marks here Know and named with shortest path) target group in group members (correspond to node R 1, R7, R8).Wherein, in the second group at Member's node R 1, R7, R8 can also preset respective for receiving the target shortest path of message.It needs exist for second group It is pre-set for receiving message to obtain them for each group members (including the corresponding user of R1, R7, R8) in group Target shortest path (such as R1 only receives the message for the group that the shortest path between R1 is 1, R7 is only received between R7 The message for the group that shortest path is 2, R8 only receive the message for the group that the shortest path between R8 is 3), and R6 with it is above-mentioned Shortest path between R1, R7, R8 is 2, so, it is corresponding that the message content that R6 is sent can only be sent to the R7 in the second group Member because the corresponding member of R1, R8 is shielded processing to group's message that R6 is sent.
In this way, processing of the embodiment of the present invention by group's message to group members Zuo Zhi receiving portion each in IM groups group, To realize that the message screening to part group is handled, the exchange demand of user is fully considered, to the group for not needing exchange Shielding processing reasonably is made, avoids being disturbed.
Referring to Fig. 3, the block diagram of the mobile terminal of one embodiment of the invention is shown.The mobile terminal of the embodiment of the present invention It is able to achieve the details of the group chat method of above-described embodiment, and reaches identical effect.Mobile terminal shown in Fig. 3 includes:
Creation module 31, for creating Multiway Tree Structure by node of the group members in IM groups, wherein the multiway tree knot Relationship in structure between father node and child node is that the corresponding group members of father node enter the corresponding group members invitation of child node IM groups of the hierarchical relationship;
Grouping module 32, for according to corresponding with mobile terminal user node of each 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 the identical node of shortest path between this node are same group;
Mark module 33, for group identification to be arranged to each group;
Identification module 34 is received, the group's message sent for receiving the mobile terminal user identifies in group's message Target group mark and message content;
Sending module 35 identifies in corresponding target group for the message content to be sent to the target group Group members.
Optionally, the mark module 33 includes:
Labeling submodule, for group identification to be arranged to each group using the corresponding shortest path of each group.
Optionally, the mobile terminal further include:
Display module 36, for dividing the group members in each group using the group identification as group name Group display;
Wherein, the display Name for the group members being grouped in the group of display includes affiliated group identification and group members title.
Optionally, the sending module 35 includes:
Acquisition submodule is obtained for identifying each group members in corresponding target group for the target group The target shortest path for being used to receive message of each group members;
Sending submodule is sent to target group members with by the message content, and the target group members are the target The target shortest path and the target group identify identical group members in group.
Optionally, the reception identification module 34 includes:
First identification submodule, the group's message sent for receiving the mobile terminal user identify in group's message Default identifier;
Second identification submodule, for according to the default identifier, identifying the mark of the target group in group's message And message content.
Mobile terminal can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here not It repeats again.
In this way, the embodiment of the present invention is by creating multiway tree according to IM groups of hierarchical relationships are added between each group members Structure, and each group members corresponding to node each 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 It adds as a friend, so that it may realize to the group chat of part group members in IM groups, it is cumbersome multiple to avoid step caused by newly-built group Miscellaneous problem simplifies the complex operations during group chat, conducive 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.It is each in mobile terminal 400 Component is coupled by bus system 405.It is understood that bus system 405 is logical for realizing the connection between these components Letter.Bus system 405 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But it is For the sake of clear explanation, in Fig. 4 various buses are all designated as bus system 405.
Wherein, user interface 403 may 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, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (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 memory 402 of the system and method for description of the embodiment of the present invention is intended to include but is not limited to these With the memory of any other suitable type.
In some embodiments, memory 402 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 4021 and application program 4022.
Wherein, operating system 4021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.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 the program or instruction of calling memory 402 to store, specifically, can be application The program or instruction stored in program 4022, processor 401 are used to create Multiway Tree Structure by node of the group members in IM groups, Wherein, the relationship 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 enter IM groups of the hierarchical relationship;According to each node and mobile terminal user in the Multiway Tree Structure Shortest path between corresponding node, is grouped group members, obtains at least two groups, wherein the multiway tree The corresponding group members of the identical node of shortest path in structure between described node are same group;Each group is set Set group identification;Receive group's message that the mobile terminal user sends, identify target group mark in group's message and Message content;The message content is sent to the target group and identifies group members in corresponding target group.
The method that the embodiments of the present invention disclose can be applied in processor 401, or be realized by processor 401. Processor 401 may be a kind of IC chip, the processing capacity with signal.During realization, 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), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute 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 is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 402, processor 401 reads the information in memory 402, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more 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 It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.
Optionally, processor 401 is also used to: being marked using the corresponding shortest path of each group to setting group, each group Know.
Optionally, processor 401 is also used to: using the group identification as group name, to the group in each group at Member is grouped display;
Wherein, the display Name for the group members being grouped in the group of display includes affiliated group identification and group members title.
Optionally, processor 401 is also used to: for the target group identify each group in corresponding target group at 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 and the target group identify identical group members in the target group.
Optionally, processor 401 is also used to: being received group's message that the mobile terminal user sends, is identified 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 identified.
Mobile terminal 400 can be realized that mobile terminal in previous embodiment realizes by according between each group members plus Enter IM groups of hierarchical relationships to create Multiway Tree Structure, and to each group members corresponding to node each in Multiway Tree Structure into Row grouping.When group members need to initiate to chat to part group members in IM groups, group members are not necessarily to additionally set up group again, It is added as a friend without to the group members in newly-built group, so that it may realize to the group chat of part group members in IM groups, avoid The problem of step very complicated caused by newly-built group, the complex operations during group chat are simplified, is conducive to each group in IM crowds The effect of the instant messaging of member, to avoid repeating, which is not described herein again.
Fig. 5 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 5 500 can be mobile phone, tablet 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) module 580 and electricity Source 590.
Wherein, input unit 530 can be used for receiving mobile terminal user input number or character information, and generate with The mobile terminal user of mobile terminal 500 is arranged and the related signal input of function control.Specifically, the embodiment of the present invention In, which may include touch panel 531.Touch panel 531, also referred to as touch screen collect mobile terminal and use (for example mobile terminal user uses any suitable object or attachment such as finger, stylus for the touch operation of family on it or nearby Operation on touch panel 531), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 531 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects mobile terminal user's Touch orientation, and touch operation bring signal 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 can receive the hair of processor 560 Next order is simultaneously executed.Furthermore, it is possible to using the multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave reality Existing touch panel 531.In addition to touch panel 531, input unit 530 can also include other input equipments 532, 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 of mark, operating stick etc. are a variety of.
Wherein, display unit 540 can be used for showing the information by mobile terminal user's input or be supplied to mobile terminal and uses The information at family and the various menu interfaces of mobile terminal 500.Display unit 540 may include that display panel 541 optionally can To configure display using the forms such as LCD or Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) Panel 541.
It should be noted that touch panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 560 is sent to determine the type of touch event, is followed by subsequent processing device 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 common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious 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 elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 560 is the control centre of mobile terminal 500, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 521, and calling storage Data in second memory 522 execute the various functions and processing data of mobile terminal 500, thus 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 are used to create Multiway Tree Structure by node of the group members in IM groups, Wherein, the relationship 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 enter IM groups of the hierarchical relationship;According to each node and mobile terminal user in the Multiway Tree Structure Shortest path between corresponding node, is grouped group members, obtains at least two groups, wherein the multiway tree The corresponding group members of the identical node of shortest path in structure between described node are same group;Each group is set Set group identification;Receive group's message that the mobile terminal user sends, identify target group mark in group's message and Message content;The message content is sent to the target group and identifies group members in corresponding target group.
Optionally, processor 560 is also used to: being marked using the corresponding shortest path of each group to setting group, each group Know.
Optionally, processor 560 is also used to: using the group identification as group name, to the group in each group at Member is grouped display;
Wherein, the display Name for the group members being grouped in the group of display includes affiliated group identification and group members title.
Optionally, processor 560 is also used to: for the target group identify each group in corresponding target group at 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 and the target group identify identical group members in the target group.
Optionally, processor 560 is also used to: being received group's message that the mobile terminal user sends, is identified 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 identified.
As it can be seen that the embodiment of the present invention can be realized by according between each group members be added IM groups hierarchical relationship come Multiway Tree Structure is created, and each group members corresponding to node each in Multiway Tree Structure are grouped.When group members exist When needing to initiate to chat to part group members in IM groups, group members without additionally setting up group again, without to newly-built group In group members add as a friend, so that it may realize to the group chats of part group members in IM groups, avoid caused by newly-built group The problem of complex steps complexity, simplifies the complex operations during group chat, conducive to the instant messaging of each group members in IM groups Effect, to avoid repeating, which is not described herein again.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered 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, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (8)

1. a kind of group chat method is applied to mobile terminal, which is characterized in that the described method includes:
Multiway Tree Structure is created by node of the group members in instantaneous communication system IM groups, wherein father in the Multiway Tree Structure Relationship between node and child node is that the corresponding group members of father node invite the corresponding group members of child node into the IM The hierarchical relationship of group;
According to the shortest path between corresponding with mobile terminal user node of each 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 arranged to each group;
Group's message that the mobile terminal user sends is received, is identified in target group mark and the message in group's message Hold;
The message content is sent to the target group and identifies group members in corresponding target group;
It is described that group identification is arranged to each group, comprising:
Group identification is arranged to each group using the corresponding shortest path of each group.
2. the method according to claim 1, wherein it is described to each group be arranged group identification after, it is described Method further include:
Using the group identification as group name, display is grouped to the group members in each group;
Wherein, the display Name for the group members being grouped in the group of display includes affiliated group identification and group members title.
3. the method according to claim 1, wherein described be sent to the target group for the message content Identify the group members in corresponding target group, comprising:
Identify each group members in corresponding target group for the target group, obtain each group members for receiving 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 and the target group identify identical group members.
4. the method according to claim 1, wherein the group for receiving mobile terminal user's transmission disappears Breath identifies target group mark and message content in group's message, comprising:
Group's message that the mobile terminal user sends is received, identifies the default identifier in group's message;
According to the default identifier, target group mark and the message content in group's message are identified.
5. a kind of mobile terminal, which is characterized 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 Relationship between node and child node is that the corresponding group members of father node invite the corresponding group members of child node into the IM The hierarchical relationship of group;
Grouping module, for according between corresponding with mobile terminal user node of each node in the Multiway Tree Structure Shortest path is grouped group members, obtains at least two groups, wherein in the Multiway Tree Structure with described node Between the corresponding group members of the identical node of shortest path be same group;
Mark module, for group identification to be arranged to each group;
Identification module is received, the group's message sent for receiving the mobile terminal user identifies the target in group's message Group identification and message content;
Sending module, for by the message content be sent to the target group identify group in corresponding target group at Member;
Wherein, the mark module includes:
Labeling submodule, for group identification to be arranged to each group using the corresponding shortest path of each group.
6. mobile terminal according to claim 5, which is characterized in that the mobile terminal further include:
Display module, for being grouped display to the group members in each group using the group identification as group name;
Wherein, the display Name for the group members being grouped in the group of display includes affiliated group identification and group members title.
7. mobile terminal according to claim 5, which is characterized in that the sending module includes:
Acquisition submodule obtains each for identifying each group members in corresponding target group for the target group The target shortest path for being used to receive message of group members;
Sending submodule is sent to target group members with by the message content, and the target group members are the target group The interior target shortest path and the target group identify identical group members.
8. mobile terminal according to claim 5, which is characterized in that the reception identification module includes:
First identification submodule, the group's message sent for receiving the mobile terminal user identify pre- in group's message If identifier;
Second identification submodule, for according to the default identifier, identifying the mark of the target group in group's message and disappearing Cease content.
CN201710295617.4A 2017-04-28 2017-04-28 A kind of group chat method and mobile terminal Active CN106972941B (en)

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 CN106972941A (en) 2017-07-21
CN106972941B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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
CN109379274B (en) * 2018-10-29 2021-08-20 政采云有限公司 Information sending method and device for instant messaging group
CN109981304A (en) * 2019-02-28 2019-07-05 北京达佳互联信息技术有限公司 Instant session method, device and storage medium
CN111628877B (en) * 2020-05-25 2022-07-01 上海中通吉网络技术有限公司 Group message sending method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888344A (en) * 2014-03-20 2014-06-25 小米科技有限责任公司 Group creation method, group exiting method and device
CN104660483A (en) * 2013-11-21 2015-05-27 腾讯科技(上海)有限公司 Method, service terminal and system for group communication
CN105224638A (en) * 2015-09-25 2016-01-06 珠海赞友科技有限公司 A kind of display packing of group chat software systems group relation chain

Family Cites Families (6)

* Cited by examiner, † Cited by third party
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
CN104301359B (en) * 2013-07-19 2017-12-29 深圳市友福同享信息科技有限公司 A kind of method and system of the customer relationship shown by group in Web Community
CN105991420A (en) * 2015-02-27 2016-10-05 深圳市兆面信息技术有限公司 Instant communication software and social circle privacy classification isolation method and system
CN106034068A (en) * 2015-03-20 2016-10-19 阿里巴巴集团控股有限公司 Method and device for private chat in group chat, client-side, server and system
CN105187297B (en) * 2015-08-17 2019-04-16 李卫军 Multi-level groups control method based on instant messaging

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN105224638A (en) * 2015-09-25 2016-01-06 珠海赞友科技有限公司 A kind of display packing of group chat software systems group relation chain

Also Published As

Publication number Publication date
CN106972941A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
CN106972941B (en) A kind of group chat method and mobile terminal
CN106844067B (en) A kind of processing method and mobile terminal of content
CN106961342A (en) A kind of group chat method and mobile terminal
CN104202473B (en) Merge the method and mobile terminal of session
CN107147505A (en) A kind of group chat method and mobile terminal
CN107196846A (en) A kind of group chat method and mobile terminal
EP2509390B1 (en) Method and mobile terminal for processing contacts
CN106681711A (en) Method for content sharing under split screen mode and mobile terminal
CN106304276B (en) A kind of wireless network processing method and mobile terminal
CN112291134B (en) Information prompting method, device, equipment and storage medium
CN106210231B (en) A kind of method and mobile terminal of information processing
CN106325753B (en) A kind of display methods and mobile terminal of payment interface
CN106445495A (en) Application program interface display method and mobile terminal
CN107819922B (en) A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset
CN106851001A (en) A kind of information processing method and mobile terminal
CN107390991B (en) A kind of processing method and mobile terminal of screenshot
CN106791182A (en) A kind of chat method and mobile terminal based on image
CN106817484A (en) The acquisition methods and mobile terminal of a kind of session information
CN107729420A (en) A kind of update method and mobile terminal of input method dictionary
CN107196847A (en) A kind of group chat method and mobile terminal
CN106453042B (en) A kind of information sharing method and mobile terminal
CN106528156A (en) Page data processing method and device
CN106231113A (en) A kind of Dialing Method and mobile terminal
CN106502872B (en) A kind of display methods and terminal of application state information
CN107708093B (en) A kind of method and mobile terminal for establishing relaying data network using wireless headset

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