CN111600729B - Group member adding method and electronic equipment - Google Patents

Group member adding method and electronic equipment Download PDF

Info

Publication number
CN111600729B
CN111600729B CN202010327768.5A CN202010327768A CN111600729B CN 111600729 B CN111600729 B CN 111600729B CN 202010327768 A CN202010327768 A CN 202010327768A CN 111600729 B CN111600729 B CN 111600729B
Authority
CN
China
Prior art keywords
input
identifiers
chat
group
target
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
CN202010327768.5A
Other languages
Chinese (zh)
Other versions
CN111600729A (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 CN202010327768.5A priority Critical patent/CN111600729B/en
Publication of CN111600729A publication Critical patent/CN111600729A/en
Application granted granted Critical
Publication of CN111600729B publication Critical patent/CN111600729B/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/1818Conference organisation arrangements, e.g. handling schedules, setting up parameters needed by nodes to attend a conference, booking network resources, notifying involved parties
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a group member adding method and electronic equipment, relates to the technical field of communication, and can solve the problems of complex operation and time consumption in the process of chatting between a user and a friend to invite the friend to enter a chat group. The method comprises the following steps: receiving a first input under the condition that a target chat interface for chatting between a first contact and a second contact is displayed; in response to the first input, displaying M of the N identifiers that meet a first priority, each of the N identifiers indicating one of the N chat groups; receiving a second input to a target identifier of the M identifiers; in response to the second input, adding the second contact to a target group indicated by the target identification; wherein each of the N chat groups includes the first contact, and none of the N chat groups includes the second contact before responding to the second input, N and M are positive integers, and N is greater than or equal to M.

Description

Group member adding method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a group member adding method and electronic equipment.
Background
Currently, when a user uses a communication application, it may be necessary to add a particular friend to an existing chat group. For example, during the process that the user a chats with the friend B one-to-one through the communication application program, the electronic device is triggered to invite the friend B into the chat group C.
Specifically, the user a must trigger the electronic device to exit the chat interface with the friend B, and then trigger the electronic device to display the address book of the current communication application program. And then, the electronic equipment is triggered to display the group management interface of the chat group C by searching and selecting the identification information of the chat group C from the address book, and the electronic equipment is triggered to display the address book again by a friend adding control in the group management interface. And then, the identification information of the friend B is searched and selected in the address list, so that the electronic equipment is triggered to invite the friend B into the chat group C. Thus, the operation of inviting the friend to enter the chat group in the process of the user chatting with the friend is tedious and time-consuming.
Disclosure of Invention
The embodiment of the invention provides a group member adding method and electronic equipment, which can solve the problems of complicated operation and time consumption of inviting friends to enter a chat group in the process of chatting between a user and the friends.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a group member adding method, which is applied to an electronic device. The method can comprise the following steps: receiving a first input under the condition that a target chat interface is displayed, wherein the target chat interface is a chat interface of a first contact and a second contact; in response to the first input, displaying M of the N identifiers that meet a first priority, each of the N identifiers indicating one of the N chat groups; receiving a second input to a target identifier of the M identifiers; in response to the second input, adding the second contact to a target group indicated by the target identification; wherein each of the N chat groups includes the first contact, and none of the N chat groups includes the second contact before responding to the second input, N and M are positive integers, and N is greater than or equal to M.
In a second aspect, an embodiment of the present invention provides an electronic device, which may include a receiving module, a display module, and a processing module. The receiving module is used for receiving a first input under the condition that a target chat interface is displayed, wherein the target chat interface is a chat interface of a first contact and a second contact; a display module, configured to display, in response to the first input received by the receiving module, M identifiers that meet a first priority among the N identifiers, where each identifier of the N identifiers is used to indicate one chat group of the N chat groups; the receiving module is also used for receiving a second input of a target identifier in the M identifiers; a processing module for adding the second contact to the target group indicated by the target identification in response to the second input received by the receiving module; wherein each of the N chat groups includes the first contact, and none of the N chat groups includes the second contact before responding to the second input, N and M are positive integers, and N is greater than or equal to M.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the group member adding method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the group member adding method provided in the first aspect.
The embodiment of the invention provides a group member adding method and electronic equipment, wherein under the condition that the electronic equipment displays a target chat interface of a first contact and a second contact, M identifiers which accord with a first priority in N identifiers can be directly displayed by receiving a first input. Each of the N identifiers is used to indicate one of N chat groups, and the N chat groups each include a first contact and do not include a second contact, that is, the N chat groups are all chat groups to which a user who uses the first contact through the electronic device may require to add the second contact. In this way, by receiving the first input in the case of displaying the target chat interface, the identifiers of the chat groups to which the second contact person is not added can be quickly and intuitively displayed, so that the user can quickly and conveniently find the target identifier indicating the target group from the identifiers (for example, M identifiers). Subsequently, through a second input to the target identification, the addition of the second contact to the target group can be triggered quickly and conveniently. Obviously, in the process of adding the second contact to the target communication group, the user does not need to perform the tedious steps of triggering the electronic device to quit displaying the target chat interface, searching the target communication group in a large amount of contact information in the address book corresponding to the first contact, and subsequently searching the second contact in the large amount of contact information in the address book through the target communication group. Therefore, the operation of inviting the friends to enter the chat group in the process of chatting between the user and the friends can be simplified, and the time consumption is reduced.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is one of schematic diagrams of a group member adding method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an operation of an electronic device to add a contact to a target group according to an embodiment of the present invention;
fig. 4 is a second schematic view illustrating an operation of adding a contact to a target group by an electronic device according to a second embodiment of the present invention;
fig. 5 is a second schematic diagram of a group member adding method according to an embodiment of the present invention;
fig. 6 is a third schematic diagram of a group member adding method according to an embodiment of the present invention;
fig. 7 is one of operation diagrams of an electronic device according to an embodiment of the present invention for updating a display identifier;
fig. 8 is a second schematic view illustrating an operation of the electronic device to update the display identifier according to the embodiment of the present invention;
fig. 9 is a fourth schematic diagram of a group member adding method according to an embodiment of the present invention;
fig. 10 is an operation diagram of an electronic device searching for an identifier through a search bar according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 12 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes an association of or, e.g., a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "such as" in an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The method for managing the contact persons provided by the embodiment of the invention can be applied to a scene that a user needs to add a certain friend to an existing certain chat group when using a communication application program. For example, during a one-to-one chat between a user and a friend, the user may want to invite the friend to enter a chat group. Specifically, the user may use a first electronic device (i.e., an electronic device corresponding to a first contact), the friend may use a second electronic device (i.e., an electronic device corresponding to a second contact), the user and the friend may chat through the electronic devices, and the user may invite the friend to join a chat group that has not been joined before (i.e., the chat group does not include the second contact). It should be noted that the following embodiments specifically describe the first electronic device as an example of an electronic device (for example, an electronic device that performs steps 101 to 104) that performs the group member adding method. And the second electronic device (i.e., the electronic device corresponding to the second contact) is generally different from the first electronic device.
The embodiment of the invention provides a group member adding method, which can directly display M identifiers meeting a first priority in N identifiers by receiving a first input under the condition that electronic equipment displays a target chat interface of a first contact and a second contact. Each of the N identifiers is used to indicate one of N chat groups, and the N chat groups each include a first contact but not a second contact, that is, the N chat groups are all chat groups in which a user using the first contact through the electronic device may require to add the second contact. In this way, by receiving the first input under the condition that the target chat interface is displayed, the identifiers of the chat groups to which the second contact person is not added can be quickly and intuitively displayed, and the user can quickly and conveniently find the target identifier indicating the target group from the identifiers (such as the M identifiers). Subsequently, through a second input to the target identification, the addition of the second contact to the target group can be triggered quickly and conveniently. Obviously, in the process of adding the second contact to the target communication group, the user does not need to perform the tedious steps of triggering the electronic device to quit displaying the target chat interface, searching the target communication group in a large amount of contact information in the address book corresponding to the first contact, and subsequently searching the second contact in the large amount of contact information in the address book through the target communication group. Therefore, the operation of inviting the friends to enter the chat group in the process of chatting between the user and the friends can be simplified, and the time consumption is reduced.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the group member adding method provided by the embodiment of the present invention, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of an android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the group member adding method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the group member adding method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the group member adding method provided by the embodiment of the present invention by running the software program in the android operating system.
The electronic device in the embodiment of the present invention may be a mobile electronic device, and may also be a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the group member adding method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity that can implement the group member adding method in the electronic device, and may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present invention. The following takes an electronic device as an example to exemplarily describe the group member adding method provided by the embodiment of the present invention.
As shown in fig. 2, an embodiment of the present invention provides a group member adding method, which is applied to a first electronic device, and the method may include steps 101 to 104 described below.
Step 101, the electronic device receives a first input under the condition that the target chat interface is displayed.
The target chat interface is a chat interface of a first contact and a second contact.
It should be noted that, for convenience of description, in some descriptions of the embodiments of the present invention, an electronic device using a first contact is named as a first electronic device, and an electronic device using a second contact is named as a second electronic device, so as to distinguish the electronic devices using the first contact; while others do not explicitly distinguish between an electronic device using a first contact and an electronic device using a second contact. In the following description, the electronic device using the first contact is not specifically referred to as the electronic device of which contact is the contact.
Optionally, in this embodiment of the present invention, the first contact and the second contact may be account numbers authorized to log in the corresponding electronic device, or account numbers authorized to log in and used by an application program in the corresponding electronic device, respectively. Specifically, the first contact and the second contact may be two accounts in a communication application, and the user and the friend of the user may chat with each other through the corresponding electronic device using the two accounts.
Illustratively, in the case where the first contact is account 1 in application Q used by user a and the second contact is account 2 in application Q used by friend B of user a, the target chat interface is a chat interface when user a uses account 1 and friend B to chat using account 2.
Optionally, in this embodiment of the present invention, the first input may be used to trigger the first electronic device to determine the second contact, and trigger the first electronic device to display M identifiers of the N identifiers, where each identifier of the N identifiers may be used to indicate one chat group of the N chat groups of the first electronic device. The first input is exemplarily described below.
The first input may be a touch input to a designated object displayed in the target chat interface. The touch input may be a click input, a double-click input, a long-press input, or the like, and the specified object may be a user avatar or a user name in the target chat interface. Illustratively, if the user a uses account 1 and the friend B uses account 2 to chat in a target chat interface, the target chat interface displays: the name and avatar of account 1, the name and avatar of account 2, and the chat records of account 1 and account 2, etc. The first input may be an input by user a pressing the avatar of account 2, or the first input may be an input by user a double-clicking on the name of account 2.
The first input can also be a sliding input of the user along a preset track on the target chat interface. The preset track is a continuous sliding track with any shape set by a user, such as an "S" -shaped sliding track, an "L" -shaped sliding track, and the like. When the input sliding track performed by the user is a preset track, the first electronic device may be triggered to determine the current account number chatting with the user account number 1 as the second contact through the input. For example, if the preset trajectory is an "S" shaped sliding trajectory, the first input may be an input that the user a slides along the "S" shaped sliding trajectory in the target chat interface in the case that the user a chats in the target chat interface using the account 1 and the friend account 2.
The first input may also be a gesture input that is the same as the preset gesture input (it is understood that the preset gesture input may be a gesture input that implements the first electronic device to display M of the N identifiers in the embodiment of the present invention). For example, if the preset gesture is an "OK" gesture, the first input may be an input that the user a makes the "OK" gesture to the camera of the first electronic device while the first electronic device displays the target chat interface.
Of course, the first input may be any other operation that may cause the first electronic device to determine the second contact. The method may be determined according to actual use requirements, and the embodiment of the present invention is not particularly limited.
And 102, the electronic equipment responds to the first input and displays M identifications which accord with the first priority in the N identifications.
Each of the N identifiers may be used to indicate one of N chat groups, where N and M are positive integers, and N is greater than or equal to M.
Optionally, in the embodiment of the present invention, the N chat groups may be chat groups in the same application program, for example, the N chat groups are all chat groups in the communication application program Q. The N chat groups may be chat groups in different applications. For example, if the electronic device has a chat integration function (i.e., the electronic device can integrate the address list or chat group in different communication applications on the electronic device together for display), a part of the N chat groups may be chat groups in the communication application Q, and another part of the N chat groups may be chat groups in the communication application P. The determination may be specifically performed according to actual use requirements, and the embodiment of the present invention is not particularly limited.
It should be noted that, in the embodiment of the present invention, before displaying M identifiers of the N identifiers, the first electronic device may obtain an address book corresponding to the first contact, and obtain all chat groups in the address book. Then, the first electronic device may screen out at least one chat group that does not include the second contact from all the obtained chat groups, and then, the first electronic device may determine N chat groups (i.e., N chat groups corresponding to the N identifiers) from the screened out at least one chat group. All chat groups in the address book corresponding to the first contact person comprise the first contact person.
Optionally, in the embodiment of the present invention, the first electronic device displays M identifiers of the N identifiers, which may specifically be implemented in the following two ways: in a first mode, the first electronic device may display M identifiers of the N identifiers in a floating manner on the target chat interface. In a second mode, the first electronic device may exit the target chat interface and float and display M identifiers of the N identifiers on other interfaces. Wherein the other interface may be any one of: the method comprises the steps of establishing a new interface of the first electronic device, establishing a main interface of the first electronic device, establishing a previous level interface of a target chat interface in an application program of the target chat interface, establishing a main interface of the application program of the target chat interface and the like. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
It should be noted that, the following embodiment exemplifies that the first electronic device displays M identifiers of the N identifiers in a floating manner on the target chat interface (that is, in the first manner), and this does not limit the present invention.
It can be understood that, under the condition that the electronic device displays M identifiers of the N identifiers in a suspended manner on the target chat interface, the user can directly operate in the target chat interface without exiting the target chat interface, so that the user can invite the friend to enter the chat group and simultaneously chat with the friend through the target chat interface.
It should be noted that, in the embodiment of the present invention, the first priority is the highest priority, and the electronic device may determine, by determining whether the N identifiers meet the first priority, the M identifiers from the N identifiers to be displayed. The identifier corresponding to the first priority may specifically be obtained by sequentially sorting the N identifiers according to the order of priorities from high to low, and determining M identifiers with the highest priority among the N identifiers as the identifiers corresponding to the first priority. For example, in the following embodiments, N identifiers are sorted in a first sorting manner (sorted by the number of target objects), and M identifiers with the highest sorting order among the N identifiers are determined as M identifiers conforming to the first priority. For another example, in the following embodiments, the N identifiers are sorted according to a second sorting manner (sorting according to the number of included keywords), and M identifiers with the highest sorting order among the N identifiers are determined as M identifiers meeting the first priority.
Optionally, in this embodiment of the present invention, each identifier of the N identifiers is a name of the indicated chat group, or is a chat interface of the indicated chat group.
Optionally, in this embodiment of the present invention, in a case that each identifier of the N identifiers is a name of an indicated chat group, the first electronic device may display M identifiers of the N identifiers in the following three manners: mode a, the first electronic device may display a target list, which may include names (i.e., M identities) of M chat groups. In the mode B, the first electronic device may display a target control, where M sub-controls are displayed in a floating manner in the target control, and one chat group name is displayed in each sub-control. In the mode C, the first electronic device may display a target menu, and the user may trigger the target menu to display M menu items, where each menu item displays a name of a chat group. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Optionally, in this embodiment of the present invention, in a case that each identifier of the N identifiers is a chat interface of an indicated chat group, the first electronic device may display M identifiers of the N identifiers in the following two ways: first, the first electronic device can display thumbnails of M chat interfaces on one interface (e.g., a target chat interface, a main interface of the first electronic device, etc.), with each thumbnail of a chat interface indicating a chat group. In a second mode, the first electronic device displays M floating controls, each floating control corresponds to an interface of a chat group, and a user triggers the first electronic device to display the interface of the chat group corresponding to the control through input to any one of the M floating controls. The method may be determined according to actual use requirements, and the embodiment of the present invention is not particularly limited.
Optionally, in this embodiment of the present invention, in a case that the electronic device displays thumbnails of M chat interfaces, the thumbnail of each chat interface may include basic information of the chat group and at least one chat record that is closest to the chat group. Wherein the basic information of the chat group can include at least one of the following: the number of members of the chat group, the name of the chat group, a profile of the chat group, group announcements of the chat group, etc. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Step 103, the electronic device receives a second input of the target identifier in the M identifiers.
It should be noted that, in the embodiment of the present invention, the target identifier may be used to indicate a target group in the M chat groups.
Optionally, in an embodiment of the present invention, the second input may be a touch input to the target identifier, or may be a voice input. The touch input may be a click input, a slide input, a double-click input, a long-press input, or the like. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not limited.
For example, in a case where the first electronic device displays M identifiers on the target chat interface, the second input may be an input that the user presses a target identifier of the M identifiers. The voice input may be a voice input by which the user speaks the name of the target group indicated by the target identification.
Step 104, the electronic device responds to the second input, and adds the second contact to the target group indicated by the target identification.
Wherein, the N chat groups all include a first contact, and the N chat groups do not include a second contact before responding to the second input.
It should be noted that, in the embodiment of the present invention, before the step 104, the target group includes the first contact, and the target group does not include the second contact, that is, before the user invites the friend to enter the target group, the user is in the target group, and the friend is not in the target group, so that the user can invite the friend to the target group.
Optionally, in the embodiment of the present invention, a manner in which the first electronic device adds the second contact to the target group indicated by the target identifier may specifically be any one of the following two addition manners: in a first mode, the first electronic device sends a first request message to the server in response to the second input, the first request message may be used for requesting the server to add the second contact to the target group, and the server may receive the first request message and add the second contact to the target group. At this time, the first request message may carry information of the second contact and information of the target communication group, such as account information of the second contact and identification information of the target communication group. In a second mode, after the first electronic device (i.e., the electronic device corresponding to the first object) sends a second request message to the second electronic device (i.e., the electronic device corresponding to the second contact), and the second contact of the second electronic device receives the second request message and displays a prompt message (the prompt message may be used to prompt the user to confirm that the second contact is added to the target group), the user of the second electronic device may trigger the second electronic device to send a first request message for adding the second contact to the target group to the server through a determination input of the prompt message, and the server may receive the first request message and add the second contact to the target group. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Optionally, in this embodiment of the present invention, after the second contact is added to the target group, the first electronic device may display a chat interface of the target group.
For example, fig. 3 is one of operation diagrams of the electronic device adding a contact to a target group. As shown in (a) of fig. 3, in a case where the first electronic device 00 displays a chat interface 001 (i.e., a target chat interface) of zhang san of user a and a friend, the user may double-click an avatar of zhang san in the chat interface. In response to the double-click input (i.e., the first input), the first electronic device 00 displays a first control 002 in a floating manner on the chat interface 001 and displays in the first control 002: an identity 0021 of the group chat 1, an identity 0022 of the group chat 2, an identity 0023 of the group chat 3 and an identity 0024 of the group chat 4, wherein the identity 0024 of the group chat 4 indicates the basketball group 1. The user may click the identifier 0024 of the group chat 4, and the first electronic device 00 may add an account number of the friend zhang (i.e., a second contact) to the basketball group 1 indicated by the identifier 0024 in response to the click input (i.e., a second input), as shown in (c) of fig. 3, and display a group chat interface 0031 of the basketball group 1.
For example, fig. 4 is a second schematic view illustrating an operation of adding a contact to a target group by an electronic device. As shown in fig. 4 (a), in a case where the first electronic device 00 displays a chat interface 001 (i.e., a target chat interface) between the user a and the friend zhang, the user may perform a slide input along a preset trajectory "S" in the chat interface. The first electronic device 00 may display an interface 004 at the first electronic device 00 in response to a slide input (i.e., a first input) of the "S" track, as shown in (b) of fig. 4, the interface 004 displaying thumbnails of 4 group chat interfaces: a thumbnail 0041 of an interface of a group chat 11, a thumbnail 0042 of an interface of a group chat 12, a thumbnail 0043 of an interface of a group chat 13, and a thumbnail 0044 of an interface of a group chat 14. Wherein the thumbnail of each interface indicates one group chat group, and the thumbnail 0044 of the interface of the group chat 14 indicates the basketball group 2. The user may click the identification 0044 of the group chat 4, and the first electronic device 00 may respond to the click input (i.e., the second input), as shown in (c) of fig. 3, add the account number of the friend zhang (i.e., the second contact) to the basketball group 2 indicated by the identification 0024, and display the group chat interface 0032 of the basketball group 2.
The embodiment of the invention provides a group member adding method, wherein under the condition that an electronic device displays a target chat interface (the target chat interface is a chat interface of a first contact and a second contact), the electronic device can receive a first input, respond to the first input, display M identifications meeting a first priority in N identifications (each of the N identifications can be used for indicating one chat group in N chat groups), receive a second input of a target identification in the M identifications, and respond to the second input, and add the second contact to the target group indicated by the target identification. Wherein each of the N chat groups includes the first contact, and none of the N chat groups includes the second contact before responding to the second input, N and M are positive integers, and N is greater than or equal to M. By means of the scheme, if the user wants to invite the friends to a chat group which the friends do not join when the user and the friends are in one-to-one chat, the user can trigger the electronic equipment to display the identifications of the plurality of chat groups which the friends do not join through input of the electronic equipment used by the user. Then, the user may trigger the electronic device to add the account (i.e., the second contact) of the friend to the chat group indicated by the target identifier through inputting the target identifier in the identifiers of the plurality of un-joined chat groups. Therefore, compared with the prior art, the scheme can avoid switching the display interface of the electronic equipment, searching the chat group from the address list and operating the group management interface of the searched chat group, thereby simplifying the operation process of inviting friends to enter the chat group and saving the time of users.
Optionally, after receiving the first input, the electronic device may sort the N identifiers in a first sorting manner, and display M identifiers therein.
Optionally, with reference to fig. 2, as shown in fig. 5, the step 102 may be specifically implemented by the following step 102 a.
Step 102a, the electronic device, in response to the first input, sorts the N identifiers in a first sorting manner, and displays M identifiers meeting the first priority.
The first ordering manner may be used to instruct that the N identifiers are ordered according to the number of target objects included in the chat group indicated by each identifier, and the address list corresponding to the second contact includes information of the target objects.
Optionally, in an embodiment of the present invention, the target object is a contact in any chat group in the first electronic device (i.e., any chat group in the address book corresponding to the first contact), and information of the contact is further included in the address book corresponding to the second contact (i.e., the information of the contact is included in the address book of the second electronic device). The information of the target object can be account information, registration code information, exclusive number information, unique code information and the like of the target object.
Specifically, a chat group of the first electronic device includes a contact H, and the contact H is included in an address book of the second contact (i.e., an address book in the second electronic device), so that the contact H is a target object.
Illustratively, the group member G is a target object under the condition that the group member G is in the "basketball group" of the chat group of the first electronic device and the friend is in the address book of the second electronic device (i.e. the friend is included in the address book of the second contact).
Optionally, in this embodiment of the present invention, the address book corresponding to the second contact may be an address book in an application program. For example, in the case that the second contact is account 2 in application Q, the address book corresponding to the second contact may be the address book of account 2 in application Q. For example, if the second contact is account 2 in the application Q, the address book corresponding to the second contact may be the sum of the address book of the account 2 in the application Q and the address book of the application P. The method and the device can be determined according to actual use requirements, and embodiments of the invention are not particularly limited.
Optionally, in this embodiment of the present invention, the N identifiers are sorted, and M identifiers are displayed. Specifically, the first electronic device may obtain the number of the target objects included in each of the N chat groups, and sort the N identifiers corresponding to the N chat groups in an order from large to small according to the number of the target objects included in each of the N chat groups. Furthermore, the first electronic device selects M identifiers which are ranked at the top (that is, meet the first priority) from the N identifiers after ranking, and displays the M identifiers (where M is a positive integer less than or equal to N).
Optionally, in this embodiment of the present invention, a manner of acquiring, by the first electronic device, the number of target objects in the N chat groups may be any of the following manners:
in the first obtaining manner, the first electronic device may obtain account information of the second contact and account information of the contact in each chat group (each chat group in the N chat groups) in the first electronic device. Then, the first electronic device may send the account information of the second contact and the account information of the contacts in each chat group in the first electronic device to a server. Subsequently, the server may obtain an address book corresponding to the second contact through the account information of the second contact, and compare the address book corresponding to the second contact with the account information of the contact in each chat group in the first electronic device to obtain a first parameter list (i.e., a list formed by the number of the target objects included in each chat group in the first electronic device). The server sends the first parameter list to the first electronic equipment.
In a second obtaining mode, the first electronic device may obtain account information of the second contact, and send a target request message including the account information of the second contact to the server (the target request message may be used to request the server to obtain an address book corresponding to the second contact). And the server responds to the target request message and sends the address book corresponding to the second contact person to the first electronic equipment. And then, the first electronic device may receive the address book sent by the server and corresponding to the second contact, and compare the address book with the account information of the contacts in each chat group in the first electronic device to obtain the number of the target objects included in each chat group in the first electronic device.
And in the third acquisition mode, the first electronic equipment sends a request for acquiring the address book corresponding to the second contact person to the second electronic equipment, and the second electronic equipment responds to the request and sends the address book corresponding to the second contact person to the first electronic equipment. And then, the first electronic device may receive the address book sent by the server and corresponding to the second contact, and compare the address book with account information of contacts in each chat group in the first electronic device to obtain the number of target objects included in each chat group in the first electronic device.
Of course, the manner in which the first electronic device obtains the number of target objects in the N chat groups may also be any other possible manner. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
For example, assume that a first contact is account 1 in application Q on a first electronic device and a second contact is account 2 in application Q on a second electronic device, where there are three chat groups in the first electronic device: group chat 1, group chat 2 and group chat 3. The first electronic device may compare the contacts (i.e., group members) in the group chat 1 with the contacts in the address book of the account 2 in the second electronic device, and determine the number of the common contacts (i.e., the number of common friends), that is, determine that the group chat 1 includes 6 target objects. Similarly, the first electronic device sequentially obtains that the number of target objects included in the group chat 2 is 2, and the number of target objects included in the group chat 3 is 0. Then, the first electronic device may sort the three group chats according to the number of the target objects included in the three group chats (i.e., a first sorting manner), and the sorting result is: the group chat 1 (the group chat 1 includes the number of target objects of 6) > the group chat 2 (the group chat 2 includes the number of target objects of 3) > the group chat 3 (the group chat 3 includes the number of target objects of 0). The first electronic equipment can display the data in the target chat interface from top to bottom according to the sorting result: an identification of group chat 1, an identification of group chat 2 and an identification of group chat 3.
It can be understood that, in the embodiment of the present invention, the electronic device may sort the N identifiers according to the first sorting manner, and display the M identifiers that meet the first priority, for example, the electronic device may display the M identifiers that are in front of the N identifiers that are arranged according to the first sorting manner, so that the user may conveniently and quickly find the target identifier, and quickly invite the friend to the chat group.
Optionally, after receiving the first input, the electronic device may display K identifiers meeting the second priority in the N identifiers first, and then may update the K identifiers to M identifiers meeting the first priority for display.
Optionally, with reference to fig. 2, as shown in fig. 6, the first input may include a first sub-input and a second sub-input, and the step 102 may be specifically implemented by the following step 102b and step 102 c.
And 102b, the electronic equipment responds to the first sub-input and displays K identifications in the N identifications, wherein the K identifications meet the second priority.
Wherein K is a positive integer less than or equal to N.
In this embodiment of the present invention, the second priority is lower than the first priority. The electronic equipment can determine K identifications from the N identifications to display by judging whether the N identifications accord with the second priority. The second priority may specifically be that the N identifiers are sorted according to a preset order, and it is determined that K identifiers with the lowest order among the N identifiers are the second priority, and the second priority may also be that the K identifiers are randomly displayed. That is, the electronic device may display K identifiers of the N identifiers that meet the second priority, or randomly display K identifiers of the N identifiers, in response to the first sub-input. The above determining whether the N identifiers meet the second priority may specifically refer to the description about the first priority in step 102, and details are not repeated here.
Optionally, in this embodiment of the present invention, the first sub-input may be used to trigger the first electronic device to display K identifiers meeting the second priority in the N identifiers, and the second sub-input may be used to determine that the user updates the K identifiers to M identifiers meeting the first priority. Specifically, the first sub-input may be an input to the target chat interface, and the first electronic device may display, in response to the first sub-input, K identifiers that meet the second priority level from among the N identifiers, and display first prompt information (the first prompt is information that may be used to prompt the user to confirm that the K identifiers are to be updated to the M identifiers). The second sub-input may be an input of the first prompt message.
It should be noted that, in the embodiment of the present invention, for the input of the first sub-input, reference may be specifically made to the relevant description of the first input in step 101, and details are not described herein again.
In addition, in the embodiment of the present invention, for the specific display manner for displaying the K identifiers meeting the second priority in the N identifiers, reference may be made to the description related to the display of the M identifiers in step 102, which is not described herein again.
And 102c, the electronic equipment responds to the second sub-input and updates the K identifications into M identifications conforming to the first priority.
Wherein, the K marks are partially or completely different from the M marks.
It should be noted that, in the embodiments of the present invention, the size relationship between K and M is not specifically limited. K can be larger than M, K can also be equal to M, and K can also be smaller than M.
In addition, in the embodiment of the present invention, that the K identifiers are different from the M identifiers means that one part of the K identifiers is included in the M identifiers, and another part of the K identifiers is not included in the M identifiers. The K identifiers are different from the M identifiers, which means that each of the K identifiers is not in the M identifiers.
Optionally, in this embodiment of the present invention, the second input may be a sliding input of the user in the target chat interface along a preset direction. In a case where the target chat interface displays an update control (the update control may be used to trigger the electronic device to update the identifier displayed in the interface), the second input may also be a touch input to the update control by the user, where the touch input may be a click input, a double click input, a long press input, a slide input, or the like. In a case where the first sub-input triggers display of the first prompt information, the second input may also be touch input of the first prompt information. The touch input may be a click input, a double click input, a long press input, or a sliding along a preset trajectory. The embodiment of the present invention can be determined according to actual use requirements and is not particularly limited.
Optionally, in the embodiment of the present invention, the first electronic device updates the K identifiers to M identifiers meeting the first priority, which may be specifically implemented in the following two ways: in the first update mode, in a case that the first electronic device displays an update control (e.g., the control 005 in fig. 7), the user may trigger the first electronic device to update the K identifiers meeting the second priority to the M identifiers meeting the first priority through an input (i.e., a second sub-input) to the update control. In the second updating manner, in a case where the first electronic device displays K identifiers, the user may trigger the first electronic device to update the K identifiers meeting the second priority level to M identifiers meeting the first priority level by sliding the input along a preset direction (e.g., a direction of F2 in fig. 8). And in a third updating mode, under the condition that the first sub-input triggers and displays the first prompt information, the user can input the first prompt information (namely, the second sub-input), and the first electronic device updates the K identifications conforming to the second priority into the M identifications conforming to the first priority according to a preset updating list. Wherein, the preset update list may include the number of identifiers of each update. The method may be determined according to actual use requirements, and the embodiment of the present invention is not limited in particular.
For example, fig. 7 is one of operation diagrams of the electronic device for updating the display identifier. As shown in fig. 7 (a), the first electronic device 00 displays a chat interface 001 (i.e., a target chat interface) of user a and friend zhang, and a first control 002 is displayed on the chat interface 001 in a floating manner and is displayed in the first control 002: an identifier 0021 of a group chat 1, an identifier 0022 of a group chat 2, an identifier 0023 of a group chat 3, an identifier 0024 of a group chat 4, and an update control 005. The user may drag the update control 005 to move a distance in the direction of F1, as shown in (b) of fig. 7, and the first electronic device 00 updates the identification in the first control 002 to: an identifier 0025 of the group chat 5, an identifier 0026 of the group chat 6, an identifier 0027 of the group chat 7 and an identifier 0028 of the group chat 8.
Fig. 8 is a second exemplary operation diagram illustrating the electronic device updating the display identifier. As shown in fig. 8 (a), when the first electronic device 00 displays the interface 004, thumbnails of 4 group chat interfaces displayed in the interface 004 are: a thumbnail 0041 of an interface of a group chat 11, a thumbnail 0042 of an interface of a group chat 12, a thumbnail 0043 of an interface of a group chat 13, and a thumbnail 0044 of an interface of a group chat 14, wherein each thumbnail of the interfaces indicates one group chat group. The user may slide a distance in the direction F2 on the interface 004, as shown in (b) in fig. 8, and the first electronic device 00 updates the identification displayed in the interface 004 to: an identity 0045 of a group chat 15, an identity 0046 of a group chat 16, an identity 0047 of a group chat 17 and an identity 0048 of a group chat 18.
It can be understood that, in the embodiment of the present invention, a user may trigger the electronic device to update and display the K identifiers conforming to the second priority as M identifiers conforming to the first priority through inputs (e.g., the first sub-input and the second sub-input) to the electronic device. That is, under the condition that the user does not find the target identifier in the part of the identifiers displayed by the electronic device, the user can trigger the electronic device to update the identifiers according to the first priority until the user finds the target identifier. Therefore, the user can update the identification displayed by the electronic equipment according to the actual use requirement, so that the user can conveniently search the identification required by the user, namely the user can conveniently search the identification corresponding to the chat group needing to add the friend, and the user can quickly and conveniently invite the friend to the chat group corresponding to the identification selected by the user.
Optionally, after the first input, the electronic device may display a search bar, and the user may search for the identifiers of the chat groups including the keyword in the information of the chat groups by inputting the keyword in the search bar, and trigger the electronic device to display the identifiers of the chat groups in an order according to the number of the keywords included in the information of the chat groups.
Optionally, with reference to fig. 2, as shown in fig. 9, the first input may include a third sub-input and a fourth sub-input, and the step 102 may be specifically implemented by the following step 102d and step 102 e.
And 102d, the electronic equipment responds to the third sub-input and displays the search bar.
Optionally, in the embodiment of the present invention, the search bar may be used for a user to manually input a keyword to search the chat group. The embodiment of the invention does not specifically limit the style, size and display position of the search bar, and can be set according to actual use requirements.
Optionally, in this embodiment of the present invention, in response to the third sub-input, the electronic device may further display at least one group identifier, where the at least one group identifier is an identifier of the N group identifiers, and the at least one group identifier may be displayed in a sorted manner according to the first sorting manner.
It should be noted that, in the embodiment of the present invention, the third sub-input may be used to trigger the electronic device to display a search bar, and specific input of the third sub-input may specifically refer to the related description of the first input in step 101, which is not described herein again.
And 102e, in response to the fourth sub-input of the keyword input in the search bar, the electronic equipment sorts the N identifications according to a second sorting mode, and displays the M identifications according with the first priority.
And the second sorting mode is to sort the N identifiers according to the number of the keywords in the chat group indicated by each identifier.
Optionally, in this embodiment of the present invention, the keyword may be a character, and specifically, the keyword is at least one of the following: letters, characters, numbers, operator symbols, punctuation marks and other symbols, etc. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Optionally, in the embodiment of the present invention, the fourth sub-input may specifically be input of a keyword input through a keyboard of the electronic device, the fourth sub-input may also be input of a keyword input by a user through handwriting, and the fourth sub-input may also be input of a keyword input by a user through voice. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Optionally, in this embodiment of the present invention, the information of the chat group may be at least one of the following: the name of the chat group, group announcements of the chat group, group profiles of the chat group, historical chat history of the chat group, and the like. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Optionally, in the embodiment of the present invention, the electronic device may sort the identifiers of the chat groups according to the number of keywords included in the name of each chat group; the electronic equipment can also sort the identifiers of the chat groups according to the number of keywords contained in the group announcements of each chat group; the electronic equipment can also sort the identifiers of the chat groups according to the number of keywords contained in the historical chat records of each chat group. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Optionally, in the process of executing the second sorting manner, in the embodiment of the present invention, the electronic device may screen out a chat group including a keyword in the information of the chat group, and distinguish the chat group including the keyword from a chat group not including the keyword. The chat group containing the keyword may be sorted according to the number of the keyword, or sorted by using a first rule, where the first rule may be any one of the following: the frequency with which the user uses the chat group, the number of members of the chat group, the number of words of the name of the chat group, the initials of the name of the chat group, or a random order, etc. The method and the device can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
For example, fig. 10 is an operation diagram of the electronic device searching for the identifier through the search bar. As shown in fig. 10 (a), the first electronic device 00 displays a chat interface 001 (i.e., a target chat interface) of user a and friend zhang, and a first control 002 is displayed on the chat interface 001 in a floating manner and is displayed in the first control 002: an identifier 0021 of group chat 1, an identifier 0022 of group chat 2, an identifier 0023 of group chat 3, an identifier 0024 of group chat 4, and a search bar 006. The user manually inputs "basketball" (i.e., a keyword) in the search bar 006, and the first electronic device 00, in response to the manual input, sorts by the number of "basketball" included in the history chat records in each chat group, and displays the identifiers of the top 4 chat groups, as shown in fig. 10 (b), in the first control 002, sequentially displayed by the number of keywords including "basketball": an identifier 0024 of the group chat 4, an identifier 0022 of the group chat 2, an identifier 0021 of the group chat 1, and an identifier 0027 of the group chat 7.
It can be understood that, in the embodiment of the present invention, since the electronic device can display the search bar, the user can screen out the identifier of the chat group including the keyword in the information of the chat group by inputting the keyword in the search bar, so that the target identifier indicating the target group can be quickly found, and the user can quickly and conveniently invite the friend to the chat group indicated by the target identifier.
In the embodiments of the present invention, the group member adding methods shown in the above drawings are all described by way of example with reference to one drawing in the embodiments of the present invention. In specific implementation, the group member adding method shown in each of the above figures may also be implemented in combination with any other combinable figure shown in the above embodiments, and details are not described here again.
As shown in fig. 11, an embodiment of the invention provides an electronic device 1100. The electronic device may include a receiving module 1101, a display module 1102, and a processing module 1103. The receiving module 1101 may be configured to receive a first input in a case that a target chat interface is displayed, where the target chat interface is a chat interface of a first contact and a second contact. A display module 1102, which may be configured to display M identifiers of the N identifiers that meet the first priority in response to the first input received by the receiving module 1101, where each identifier of the N identifiers may be used to indicate one chat group of the N chat groups. The receiving module 1101 may be further configured to receive a second input of a target identifier in the M identifiers. The processing module 1103 may be configured to add the second contact to the target group indicated by the target identifier in response to the second input received by the receiving module 1101. Wherein each of the N chat groups includes the first contact, and none of the N chat groups includes the second contact before responding to the second input, N and M are positive integers, and N is greater than or equal to M.
Optionally, in this embodiment of the present invention, each identifier of the N identifiers is a name of the indicated chat group, or is a chat interface of the indicated chat group.
Optionally, in this embodiment of the present invention, the display module 1102 may be specifically configured to, in response to the first input received by the receiving module 1101, sort the N identifiers according to a first sorting manner, and display the M identifiers according to the first priority. The first ordering manner may be that the N identifiers are ordered according to the number of target objects included in the chat group indicated by each identifier, and the address book corresponding to the second contact includes information of the target objects.
Optionally, in this embodiment of the present invention, the first input may include a first sub-input and a second sub-input. The display module 1102 may be further configured to display K identifiers of the N identifiers that meet the second priority in response to the first sub-input received by the receiving module 1101. The display module 1102 may be further configured to update the K identifiers to M identifiers according to the first priority in response to the second sub-input received by the receiving module 1101, where the K identifiers are partially or completely different from the M identifiers, and K is a positive integer smaller than or equal to N.
Optionally, in this embodiment of the present invention, the first input may include a third sub-input and a fourth sub-input. The display module 1102 may be further configured to display a search bar in response to the third sub-input received by the receiving module 1101. The display module 1102 may be further configured to sort the N identifiers according to a second sorting manner and display the M identifiers according to the first priority in response to the fourth sub-input of the keyword, which is received by the receiving module 1101, in the search bar. And the second sorting mode is to sort the N identifiers according to the number of the keywords in the chat group indicated by each identifier.
The electronic device 1100 provided in the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described here again to avoid repetition.
The embodiment of the invention provides electronic equipment, which can directly display M identifiers meeting a first priority in N identifiers by receiving a first input under the condition that the electronic equipment displays a target chat interface of a first contact and a second contact. Each of the N identifiers is used to indicate one of N chat groups, and the N chat groups each include a first contact and do not include a second contact, that is, the N chat groups are all chat groups to which a user who uses the first contact through the electronic device may require to add the second contact. In this way, by receiving the first input under the condition that the target chat interface is displayed, the identifiers of the chat groups to which the second contact person is not added can be quickly and intuitively displayed, and the user can quickly and conveniently find the target identifier indicating the target group from the identifiers (such as the M identifiers). Subsequently, through a second input to the target identification, the addition of the second contact to the target group can be triggered quickly and conveniently. Obviously, in the process of adding the second contact to the target communication group, the user does not need to perform the tedious steps of triggering the electronic device to quit displaying the target chat interface, searching the target communication group in a large amount of contact information in the address book corresponding to the first contact, and subsequently searching the second contact in the large amount of contact information in the address book through the target communication group. Therefore, the operation of inviting the friends to enter the chat group in the process of chatting between the user and the friends can be simplified, and the time consumption is reduced.
Fig. 12 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in fig. 12, the electronic device 200 includes, but is not limited to: radio frequency unit 201, network module 202, audio output unit 203, input unit 204, sensor 205, display unit 206, user input unit 207, interface unit 208, memory 209, processor 210, and power supply 211. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 12 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The user input unit 207 may be configured to receive a first input when a target chat interface is displayed, where the target chat interface is a chat interface between a first contact and a second contact. The display unit 206 may be configured to display, in response to the first input received by the user input unit 207, M identifiers of the N identifiers that meet the first priority, where each identifier of the N identifiers may be used to indicate one chat group of the N chat groups. The user input unit 207 may be further configured to receive a second input of a target identifier of the M identifiers. The processor 210 may be configured to add the second contact to the target group indicated by the target identifier in response to the second input received by the user input unit 207. Wherein each of the N chat groups includes the first contact, and none of the N chat groups includes the second contact before responding to the second input, N and M are positive integers, and N is greater than or equal to M.
The embodiment of the invention provides electronic equipment, which can directly display M identifiers meeting a first priority in N identifiers by receiving a first input under the condition that the electronic equipment displays a target chat interface of a first contact and a second contact. Each of the N identifiers is used to indicate one of N chat groups, and the N chat groups each include a first contact and do not include a second contact, that is, the N chat groups are all chat groups to which a user who uses the first contact through the electronic device may require to add the second contact. In this way, by receiving the first input under the condition that the target chat interface is displayed, the identifiers of the chat groups to which the second contact person is not added can be quickly and intuitively displayed, and the user can quickly and conveniently find the target identifier indicating the target group from the identifiers (such as the M identifiers). Subsequently, through a second input to the target identification, the addition of the second contact to the target group can be triggered quickly and conveniently. Obviously, in the process of adding the second contact to the target communication group, the user does not need to perform the tedious steps of triggering the electronic device to quit displaying the target chat interface, searching the target communication group in a large amount of contact information in the address book corresponding to the first contact, and subsequently searching the second contact in the large amount of contact information in the address book through the target communication group. Therefore, the operation of inviting the friends to enter the chat group in the process of chatting between the user and the friends can be simplified, and the time consumption is reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 201 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 210; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 202, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 203 may convert audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into an audio signal and output as sound. Also, the audio output unit 203 may also provide audio output related to a specific function performed by the electronic apparatus 200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
The input unit 204 is used to receive an audio or video signal. The input unit 204 may include a Graphics Processing Unit (GPU) 2041, a microphone 2042, and a camera module 2043, and the graphics processor 2041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 206. The image frames processed by the graphic processor 2041 may be stored in the memory 209 (or other storage medium) or transmitted via the radio frequency unit 201 or the network module 202. The microphone 2042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 201 in case of a phone call mode. The camera module 2043 collects images and transmits the collected images to the graphic processor 2041.
The electronic device 200 also includes at least one sensor 205, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 2061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 2061 and/or the backlight when the electronic device 200 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 205 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 206 is used to display information input by the user or information provided to the user. The display unit 206 may include a display panel 2061, and the display panel 2061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 207 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. Touch panel 2071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 2071 (e.g., user operation on or near the touch panel 2071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 2071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 210, and receives and executes commands sent by the processor 210. In addition, the touch panel 2071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 207 may include other input devices 2072 in addition to the touch panel 2071. In particular, the other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not further described herein.
Further, the touch panel 2071 may be overlaid on the display panel 2061, and when the touch panel 2071 detects a touch operation on or near the touch panel 2071, the touch panel is transmitted to the processor 210 to determine the type of the touch event, and then the processor 210 provides a corresponding visual output on the display panel 2061 according to the type of the touch event. Although the touch panel 2071 and the display panel 2061 are shown as two separate components in fig. 12 to implement the input and output functions of the electronic device, in some embodiments, the touch panel 2071 and the display panel 2061 may be integrated to implement the input and output functions of the electronic device, and are not limited herein.
The interface unit 208 is an interface for connecting an external device to the electronic apparatus 200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 208 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 200 or may be used to transmit data between the electronic apparatus 200 and the external device.
The memory 209 may be used to store software programs as well as various data. The memory 209 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, the memory 209 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 210 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 209 and calling data stored in the memory 209, thereby performing overall monitoring of the electronic device. Processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 210.
The electronic device 200 may further include a power source 211 (such as a battery) for supplying power to various components, and optionally, the power source 211 may be logically connected to the processor 210 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 200 includes some functional modules that are not shown, and thus are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor 210 as shown in fig. 12, a memory 209, and a computer program that is stored in the memory 209 and is executable on the processor 210, and when the computer program is executed by the processor 210, the processes of the foregoing method embodiment are implemented, and the same technical effect can be achieved, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. Examples of the computer-readable storage medium include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk and an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (6)

1. A group member adding method applied to electronic equipment is characterized by comprising the following steps:
receiving a first input under the condition that a target chat interface is displayed, wherein the first input is a sliding input of a user on the target chat interface along a preset track, and the target chat interface is a chat interface of a first contact and a second contact;
in response to the first input, displaying M identifiers meeting a first priority in N identifiers, wherein each identifier in the N identifiers is used for indicating one chat group in the N chat groups, and each identifier in the M identifiers is a group chat interface of one chat group; the M identifications conforming to the first priority comprise N identifications which are sequenced according to the number of target objects, the M identifications with the highest sequence in the N identifications are determined as the M identifications conforming to the first priority, and the target objects are any chat group in the N chat groups and are included in the address book of the second contact; or, the first input comprises a third sub-input and a fourth sub-input; the displaying, in response to the first input, M of the N identifiers that meet a first priority includes: displaying a search bar in response to the third sub-input; in response to the fourth sub-input of a keyword into the search bar, sorting the N identifiers in a second sorting manner, and displaying the M identifiers meeting a first priority; the second sorting mode is used for indicating that the N identifiers are sorted according to the number of the keywords contained in the chat group indicated by each identifier;
receiving a second input to a target identifier of the M identifiers;
in response to the second input, adding the second contact to a target group indicated by the target identification;
wherein each of the N chat groups includes the first contact and none of the N chat groups includes the second contact before responding to the second input, N and M are positive integers, and N is greater than or equal to M.
2. The method of claim 1, wherein the first input comprises a first sub-input and a second sub-input;
the displaying, in response to the first input, M identifiers that meet a first priority among the N identifiers includes:
responding to the first sub-input, and displaying K identifications in accordance with a second priority in the N identifications;
in response to the second sub-input, updating the K identifiers to the M identifiers conforming to the first priority, the K identifiers being partially or completely different from the M identifiers, K being a positive integer less than or equal to N.
3. An electronic device, comprising a receiving module, a display module, and a processing module;
the receiving module is used for receiving a first input under the condition that a target chat interface is displayed, wherein the first input is a sliding input of a user on the target chat interface along a preset track, and the target chat interface is a chat interface of a first contact and a second contact;
the display module is configured to display, in response to the first input received by the receiving module, M identifiers meeting a first priority in N identifiers, where each identifier in the N identifiers is used to indicate one chat group in N chat groups, and each identifier in the M identifiers is a group chat interface of one chat group; the M identifications conforming to the first priority comprise N identifications which are sequenced according to the number of target objects, the M identifications with the highest sequencing in the N identifications are determined as the M identifications conforming to the first priority, and the target objects are any chat group in the N chat groups and are included in the address book of the second contact; or, the first input comprises a third sub-input and a fourth sub-input; the display module is further used for responding to the third sub-input received by the receiving module and displaying a search bar; the display module is further configured to sort the N identifiers according to a second sorting manner in response to the fourth sub-input of the keyword input into the search bar received by the receiving module, and display the M identifiers meeting the first priority; the second sorting mode is to sort the N identifiers according to the number of the keywords contained in the chat group indicated by each identifier;
the receiving module is further configured to receive a second input of a target identifier of the M identifiers;
the processing module is configured to add the second contact to a target group indicated by the target identifier in response to the second input received by the receiving module;
wherein each of the N chat groups includes the first contact and none of the N chat groups includes the second contact before responding to the second input, N and M are positive integers, and N is greater than or equal to M.
4. The electronic device of claim 3, wherein the first input comprises a first sub-input and a second sub-input;
the display module is further configured to display, in response to the first sub-input received by the receiving module, K identifiers that meet a second priority level in the N identifiers;
the display module is further configured to update the K identifiers to the M identifiers meeting the first priority in response to the second sub-input received by the receiving module, where the K identifiers are partially or completely different from the M identifiers, and K is a positive integer smaller than or equal to N.
5. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the group member addition method according to claim 1 or 2.
6. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the group member addition method according to claim 1 or 2.
CN202010327768.5A 2020-04-23 2020-04-23 Group member adding method and electronic equipment Active CN111600729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010327768.5A CN111600729B (en) 2020-04-23 2020-04-23 Group member adding method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010327768.5A CN111600729B (en) 2020-04-23 2020-04-23 Group member adding method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111600729A CN111600729A (en) 2020-08-28
CN111600729B true CN111600729B (en) 2022-09-16

Family

ID=72190344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010327768.5A Active CN111600729B (en) 2020-04-23 2020-04-23 Group member adding method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111600729B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113111647B (en) * 2021-04-06 2022-09-06 北京字跳网络技术有限公司 Information processing method and device, terminal and storage medium
CN114915510B (en) * 2022-05-11 2023-08-11 北京蜂巢世纪科技有限公司 Group chat joining method and device, intelligent head-mounted device and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101948030B1 (en) * 2017-12-15 2019-02-14 주식회사 트위니 Server and user device for managing social network of user

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8938512B2 (en) * 2012-09-06 2015-01-20 Facebook, Inc. Recommending groups to create in a social networking system
CN105610682B (en) * 2015-11-25 2018-10-09 浙江翼信科技有限公司 A kind of method and apparatus that contact person is added to group in instant messaging application
CN109683728B (en) * 2018-12-27 2022-07-29 天津字节跳动科技有限公司 Group member adding method and device
CN109639569B (en) * 2019-01-31 2021-09-14 维沃移动通信有限公司 Social communication method and terminal
CN110311794B (en) * 2019-07-02 2022-04-08 北京小米智能科技有限公司 Social group joining method and device, server and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101948030B1 (en) * 2017-12-15 2019-02-14 주식회사 트위니 Server and user device for managing social network of user

Also Published As

Publication number Publication date
CN111600729A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN111010332A (en) Group chat method and electronic equipment
CN109032719B (en) Object recommendation method and terminal
CN109543099B (en) Content recommendation method and terminal equipment
CN111596818A (en) Message display method and electronic equipment
CN111274416A (en) Chat information searching method and electronic equipment
CN107783709B (en) Image viewing method and mobile terminal
CN111459349B (en) Application recommendation method and electronic equipment
CN108376096B (en) Message display method and mobile terminal
CN108874906B (en) Information recommendation method and terminal
CN111064848B (en) Picture display method and electronic equipment
US20210320995A1 (en) Conversation creating method and terminal device
CN109495638B (en) Information display method and terminal
CN108920040B (en) Application icon sorting method and mobile terminal
CN111079030A (en) Group searching method and electronic device
CN111600729B (en) Group member adding method and electronic equipment
CN107728920B (en) Copying method and mobile terminal
CN111125307A (en) Chat record query method and electronic equipment
US20210318787A1 (en) Information display method and terminal device
CN109067975B (en) Contact person information management method and terminal equipment
CN111131540B (en) Name setting method and electronic equipment
CN109407915B (en) Method and terminal for arranging objects
CN111309934A (en) Collected resource processing method and electronic equipment
CN110888572A (en) Message display method and terminal equipment
CN108833679B (en) Object display method and terminal equipment
CN110879678A (en) Icon display method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
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