CN111314211A - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN111314211A
CN111314211A CN202010112937.3A CN202010112937A CN111314211A CN 111314211 A CN111314211 A CN 111314211A CN 202010112937 A CN202010112937 A CN 202010112937A CN 111314211 A CN111314211 A CN 111314211A
Authority
CN
China
Prior art keywords
group
message
sub
authority
subgroup
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.)
Pending
Application number
CN202010112937.3A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010112937.3A priority Critical patent/CN111314211A/en
Publication of CN111314211A publication Critical patent/CN111314211A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/063Content adaptation, e.g. replacement of unsuitable content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present disclosure relates to a method and an apparatus for forwarding a message, which are used to manage the message and improve the communication efficiency. The message forwarding method is applied to a server and comprises the following steps: receiving a message from a client; determining a source of the message; the source of the message comprises a main group and a sub-group; determining the authority relationship between the sub-group and the main group to which the sub-group belongs; and sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority. The technical scheme of the disclosure can achieve the purpose of managing the messages, and further improve the communication efficiency.

Description

Message forwarding method and device
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a method and an apparatus for forwarding a message.
Background
With the rise of IM (Instant Messaging) applications, more and more users use IM applications to communicate.
In the related art, the IM application provides a group chat function. However, for a group with a large group size (for example, more than 1000 members), the problems of low communication efficiency and difficult management generally exist. For example, most group members are overwhelmed by the complexity of the group message, and choose to mask the group message and ignore all messages in the group.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for message forwarding, which are used to manage messages and improve communication efficiency.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for forwarding a message, which is applied to a server, the method including:
receiving a message from a client;
determining a source of the message; the source of the message comprises a main group and a sub-group;
determining the authority relationship between the sub-group and the main group to which the sub-group belongs;
and sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
In one embodiment, the source of the message may be the subgroup; the determining the authority relationship between the sub-group and the main group may include:
determining whether the master group has permission to receive the message;
the sending the message to a message display interface with receiving permission according to the relationship between the source of the message and the permission may include:
if the main group is determined to have the authority of receiving the message, the message is sent to a message display interface of the main group and a message display interface of the sub-group;
and if the main group is determined not to have the authority of receiving the message, sending the message to a message display interface of the sub-group.
In one embodiment, the source of the message may be the master group; the determining the authority relationship between the sub-group and the main group may include:
determining whether the main group has the authority to send the message to the sub-group;
the sending the message to a message display interface with receiving permission according to the relationship between the source of the message and the permission may include:
if the main group is determined to have the authority of sending the message to the sub-group, sending the message to a message display interface of the main group and a message display interface of the sub-group;
and if the main group is determined not to have the authority of sending the message to the sub-group, sending the message to a message display interface of the main group.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for message forwarding, the apparatus including:
a sixth receiving module configured to receive a message from the client;
a fourth determination module configured to determine a source of the message; the source of the message comprises a main group and a sub-group;
a fifth determining module configured to determine an authority relationship between the sub-group and the main group to which the sub-group belongs;
and the seventh sending module is configured to send the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
In one embodiment, the source of the message may be the subgroup;
the fifth determining module may be further configured to determine whether the master group has permission to receive the message;
the seventh sending module may be further configured to send the message to the message display interface of the main group and the message display interface of the subgroup when the fifth determining module determines that the main group has the right to receive the message, and send the message to the message display interface of the subgroup when the fifth determining module determines that the main group does not have the right to receive the message.
In one embodiment, the source of the message may be the master group;
the fifth determining module may be further configured to determine whether the main group has the authority to send the message to the sub-group;
the seventh sending module may be further configured to send the message to the message display interface of the main group and the message display interface of the subgroup when the fifth determining module determines that the main group has the right to send the message to the subgroup, and send the message to the message display interface of the main group when the fifth determining module determines that the main group does not have the right to send the message to the subgroup.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for message forwarding, which is applied to a server, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a message from a client;
determining a source of the message; the source of the message comprises a main group and a sub-group;
determining the authority relationship between the sub-group and the main group to which the sub-group belongs;
and sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, for application to a server, the computer program, when executed by a processor, implementing the steps of:
receiving a message from a client;
determining a source of the message; the source of the message comprises a main group and a sub-group;
determining the authority relationship between the sub-group and the main group to which the sub-group belongs;
and sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the source of the message can be determined through the server, and the message is sent to a message display interface with receiving authority according to the authority relation between the sub-group and the main group to which the sub-group belongs, so that the purpose of managing the message is achieved, and further the communication efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1A is a flow chart illustrating a method of establishing a group according to an example embodiment.
Fig. 1B is a schematic diagram illustrating an application scenario of the method for establishing a group according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of establishing a group according to an example embodiment.
Fig. 3A is a flow chart illustrating a method of establishing a group in accordance with an example embodiment.
Fig. 3B-3E are scene diagrams illustrating a method of establishing a group according to an example embodiment.
Fig. 4 is a flowchart illustrating a method of establishing a group according to an example embodiment.
Fig. 5A is a flowchart illustrating a method of establishing a group according to an example embodiment.
Fig. 5B is a diagram illustrating a display relationship between a message display interface of a subgroup and a message display interface of a main group, according to an example embodiment.
Fig. 5C is a diagram illustrating a display relationship between a message display interface of a subgroup and a message display interface of a main group according to another example embodiment.
Fig. 6 is a flow diagram illustrating a method of message forwarding in accordance with an example embodiment.
Fig. 7 is a flow chart illustrating a method of message forwarding in accordance with an example embodiment.
Fig. 8 is a flowchart illustrating a method of message forwarding according to an example embodiment.
Fig. 9A is a block diagram illustrating an apparatus for establishing a group according to an example embodiment.
Fig. 9B is a block diagram illustrating an apparatus for establishing a group according to another example embodiment.
Fig. 9C is a block diagram illustrating an apparatus for establishing a group according to another example embodiment.
Fig. 9D is a block diagram illustrating an apparatus for establishing a group according to another example embodiment.
Fig. 10A is a block diagram illustrating an apparatus for establishing a group according to an example embodiment.
Fig. 10B is a block diagram illustrating an apparatus for establishing a group according to another example embodiment.
Fig. 10C is a block diagram illustrating an apparatus for establishing a group according to another example embodiment.
Fig. 10D is a block diagram illustrating an apparatus for establishing a group according to another example embodiment.
Fig. 11 is a block diagram illustrating an apparatus for message forwarding in accordance with an example embodiment.
Fig. 12 is a block diagram illustrating an apparatus for establishing a group according to an example embodiment.
Fig. 13 is a block diagram illustrating an apparatus for establishing a group according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1A is a flowchart illustrating a method for establishing a group according to an exemplary embodiment, and fig. 1B is a schematic view illustrating an application scenario of the method for establishing a group according to an exemplary embodiment, where the application scenario illustrated in fig. 1B includes a terminal device 11 and a server 12, a client is installed in the terminal device 11, and the terminal device 11 may be an electronic device such as a smart phone, a tablet computer, and a computer. The method for establishing a group shown in fig. 1A is applied to the server 12, and includes the following steps S101-S105:
in step S101, a request for establishing a sub-group sent by a client is received, where the request for establishing a sub-group carries a user account and a primary group identifier.
After a user performs an operation of establishing a sub-group on a certain main group where the user is located at a client, the client sends a request for establishing the sub-group to a server, wherein the request for establishing the sub-group carries a user account of the user and a main group identifier of the operation of establishing the sub-group.
In one embodiment, when the user account of the user has the authority to establish the sub-group in a certain main group, the operation of establishing the sub-group can be performed on the main group where the user account of the user belongs. In an exemplary embodiment, the server may determine whether the user account has the authority to establish the sub-group according to an authority condition preset by the user at the client, and if it is determined that the user account meets the preset authority condition, determine that the user account has the authority to establish the sub-group.
In an exemplary embodiment, the preset permission condition may be that a group primary account of a primary group has a permission to establish a sub-group. In another exemplary embodiment, the preset permission condition may be that an administrator account of one main group has a permission to establish the sub-group. In another exemplary embodiment, the preset permission condition may be that any member account of a main group has a permission to establish a sub-group.
In another embodiment, any member account of a main group may perform the operation of establishing the sub-group, but whether the user account sending the request for establishing the sub-group has the authority for establishing the sub-group is determined by the server according to the preset authority condition.
In a primary group, the account types include: a group primary account, an administrator account, and a common member account. The group primary account is an account for creating the primary group, and has the management authority of the primary group and the authority for authorizing the common member accounts of the primary group to manage the primary group; the administrator account has the authority to manage the main group, and the ordinary member accounts do not have the authority to manage the main group before being authorized.
In step S102, after determining that the user account has the authority to establish the subgroup, a subgroup identifier is generated.
After receiving the request for establishing the sub-group, the server may determine the type of the user account, and determine whether the user account has the authority for establishing the sub-group according to the type of the user account and a preset authority condition. The preset authority condition is defined based on the type of the user account. Of course, in practical applications, the permission conditions may not be limited to the implementations provided in the present disclosure.
In one embodiment, the subgroup identification may be a string of characters, numbers, or a combination of numbers and characters.
In step S103, the confirmation information carrying the subgroup identifier is fed back to the client.
The confirmation information is used for triggering the client to add the selected member account number in the main group to the subgroup corresponding to the subgroup identification. Specifically, after the client receives the confirmation information from the server 12, the user may select a member account and add the member account to the subgroup corresponding to the subgroup identifier. In an exemplary embodiment, a user may add a selected member account to a subgroup corresponding to a subgroup identification by dragging at a client. In another exemplary embodiment, the user may also select the member account first, call out a drop-down menu including an "add to" option by right-clicking, double-clicking, and the like, call out the established subgroup for the user to select after the "add to" option is selected, and finally add the selected member account to the target subgroup.
In one embodiment, after the client receives the confirmation information from the server 12, the user may also name the subgroup corresponding to the subgroup identification through the client. For example, in the main group of "foreign language learning", after a user account with the established sub-group performs the operation of establishing the sub-group at the client, the client receives the confirmation information carrying the sub-group identifier fed back by the server 12, and the user may name the sub-group corresponding to the sub-group identifier as "english learning", "spanish learning", or "french learning" at the client. Thus, the discussion belonging to the discussion range of the subgroup can be carried out in the subgroup, but not in the main group, thereby improving the communication efficiency and facilitating the grouping management.
After the client adds the selected member account number in the main group to the subgroup corresponding to the subgroup identification, a group establishment notification is generated and sent to the server. The group establishment notification carries a main group identifier, a subgroup identifier and member account numbers included in the subgroup.
In the present disclosure, the relationship between the main group and the subgroup is binding, the subgroup belongs to the main group, rather than an independent group, and each member account in one subgroup belongs to both the main group and the subgroup.
In step S104, a group establishment notification generated based on the confirmation message is received from the client.
In step S105, a subgroup corresponding to the subgroup identifier is established in the group corresponding to the main group identifier according to the member account included in the subgroup.
After receiving the group establishment notification, the server 12 establishes a corresponding sub-group according to the main group identifier, the sub-group identifier, and the member account numbers included in the sub-group, and maintains a friend list, where the member account numbers in the friend list are the member account numbers of the sub-group, and further binds the sub-group with the main group, so that the sub-group is convenient to belong to the main group.
In this embodiment, a request for establishing a subgroup sent by a client is received by a server, after it is determined that a user account sending the request for establishing the subgroup has a right to establish the subgroup, a subgroup identifier is generated, confirmation information carrying the subgroup identifier is fed back to the client, and the server establishes the subgroup corresponding to the subgroup identifier according to a group establishment notification generated by the client based on the confirmation information. As the sub-groups can be established in the main group, the management basis of dividing and controlling the main group can be provided, the group management is convenient, and the communication efficiency is improved.
In one embodiment, the determining that the user account has the right to establish a subgroup may comprise:
judging whether the user account has the authority for establishing the sub-group or not according to a preset authority condition;
and if the user account accords with the preset permission condition, determining that the user account has the permission for establishing the sub-group.
In one embodiment, after the creating, according to the member account numbers included in the sub-groups, the sub-groups corresponding to the sub-group identifications in the group corresponding to the main group identification, the method may further include:
receiving a notice which is sent by the client and generated based on the authority relation;
and saving the authority relationship between the sub-group and the main group according to the notice generated based on the authority relationship.
In one embodiment, after the creating, according to the member account numbers included in the sub-groups, the sub-groups corresponding to the sub-group identifications in the group corresponding to the main group identification, the method may further include:
receiving a notification which is sent by the client and generated based on a display relation;
and saving the display relationship between the message display interfaces of the sub-groups and the message display interface of the main group according to the notification generated based on the display relationship.
Please refer to the following embodiments for the specific way to establish the group.
Therefore, according to the method provided by the embodiment of the present disclosure, a request for establishing a subgroup sent by a client may be received by a server, after it is determined that a user account sending the request for establishing the subgroup has a right to establish the subgroup, a subgroup identifier is generated, confirmation information carrying the subgroup identifier is fed back to the client, and the server establishes the subgroup corresponding to the subgroup identifier according to a group establishment notification generated by the client based on the confirmation message. As the sub-groups can be established in the main group, the management basis of dividing and controlling the main group can be provided, the group management is convenient, and the communication efficiency is improved.
Fig. 2 is a flow chart illustrating a method of establishing a group according to an example embodiment. The method for establishing a group shown in fig. 2, applied to a client, includes the following steps S201-S204:
in step S201, after receiving an instruction to establish a sub-group for a designated main group, sending a request for establishing the sub-group to a server; the request for establishing the sub-group carries the user account and the primary group identifier.
After a user executes the operation of establishing the sub-group on a certain main group where the client is located, the client receives an instruction of establishing the sub-group for the designated main group and sends a request for establishing the sub-group to a server. In one embodiment, when the user account of the user has the authority to establish the sub-group in a certain main group, the operation of establishing the sub-group can be performed on the main group where the user account of the user belongs. For example, when a user account of a user has a right to establish a sub-group in a certain main group to which the user account belongs, a trigger button for creating the sub-group is provided in a display window of the main group on a client to which the user account logs in, or the trigger button for creating the sub-group can be called by right-clicking an icon of an avatar of the main group. In another embodiment, a trigger button for creating the sub-group is provided in a display window of the main group of the client to which all member accounts of one main group log in, each member account can trigger the button to send a request for creating the sub-group to the server, or each member account can call the trigger button for creating the sub-group by right-clicking a head portrait icon of the main group and send the request for creating the sub-group to the server by triggering the button. However, whether the user account sending the request for establishing the sub-group has the authority for establishing the sub-group is confirmed by the server according to the preset authority condition provided in the embodiment shown in fig. 1A.
In step S202, confirmation information generated based on the instruction for establishing the sub-group from the server is received.
The confirmation information carries a subgroup identification generated by the server, and is used for triggering the client to add the selected member account number in the main group to the subgroup corresponding to the subgroup identification, and sending a group establishment notification to the server. The group establishment notification carries a main group identifier, a subgroup identifier and member account numbers included in the subgroup.
In step S203, according to the confirmation message, the selected member account in the main group is added to the subgroup corresponding to the subgroup identifier.
The client can select the member account from the main group and add the member account to the subgroup corresponding to the subgroup identification according to the subgroup identification carried by the confirmation message. The manner in which the user adds the selected member account in the primary group to the subgroup corresponding to the subgroup identifier through the client may be the same as that in the embodiment shown in fig. 1A, and details are not repeated here.
In one embodiment, after the client receives the confirmation information from the server 12, the user may also name the subgroup corresponding to the subgroup identification through the client, so as to facilitate the members of the subgroup to identify the subgroup to which the member belongs.
In step S204, a group establishment notification is sent to the server; the group establishment notification carries the main group identifier, the subgroup identifier and the member account numbers included in the subgroup.
After the client adds the selected member account number in the main group to the subgroup corresponding to the subgroup identification, a group establishment notification is generated and sent to the server.
In the present disclosure, the relationship between the primary group and the subgroup is binding, the subgroup belongs to the primary group, rather than an independent group, and each member account in the subgroup belongs to both the primary group and the subgroup.
In this embodiment, a request for establishing a sub-group is sent to a server through a client, and a selected member account in a main group is added to the sub-group corresponding to the sub-group identifier according to confirmation information from the server carrying the sub-group identifier, so as to establish the sub-group corresponding to the sub-group identifier. As the sub-groups can be established in the main group, the management basis of dividing and controlling the main group can be provided, the group management is convenient, and the communication efficiency is improved.
In one embodiment, before sending the request for establishing the subgroup to the server, the method may further comprise:
determining an authority condition for establishing the sub-group;
sending a notification generated based on the permission condition to the server.
In one embodiment, after the sending of the group notification to the server, the method may further comprise:
determining an authority relationship between the sub-group and the main group;
and sending a notification generated based on the authority relation to the server.
In one embodiment, after the sending of the group notification to the server, the method may further comprise:
determining a display relationship between the message display interfaces of the sub-group and the main group;
sending a notification generated based on the display relationship to the server.
Please refer to the following embodiments for the specific way to establish the group.
Therefore, the method provided by the embodiment of the present disclosure may send a request for establishing a sub-group to a server through a client, add a selected member account in a main group to the sub-group corresponding to the sub-group identifier according to the confirmation information from the server carrying the sub-group identifier, and establish the sub-group corresponding to the sub-group identifier. As the sub-groups can be established in the main group, the management basis of dividing and controlling the main group can be provided, the group management is convenient, and the communication efficiency is improved.
The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
FIG. 3A is a flow chart illustrating a method of establishing a group in accordance with an exemplary embodiment; fig. 3B-3E are scene diagrams illustrating a method of establishing a group according to an example embodiment. In this embodiment, an example is performed by taking an example of determining whether a user account has a permission to establish a sub-group by using the method provided by the embodiment of the present disclosure, and an example is performed by taking a terminal device 11 as a smart phone, as shown in fig. 3A, the method includes the following steps:
in step S301, the client determines a permission condition for establishing the sub-group.
In one embodiment, a user may determine, via a client, a permission condition for a main group to establish a sub-group. The permission condition for establishing the sub-group may be that the group primary account has a permission for establishing the sub-group, the administrator account has a permission for establishing the sub-group, or any one member account has a permission for establishing the sub-group.
In one embodiment, the group primary account or the administrator account of the primary group has a right to determine the right condition for establishing the sub-group, or the administrator account has a right to determine the right condition for establishing the sub-group after obtaining the authorization of the group primary account, and the common member account does not have a right to determine the right condition for establishing the sub-group.
In step S302, the client transmits a notification generated based on the permission condition to the server.
In step S303, the server saves a preset permission condition according to the notification generated based on the permission condition.
In step S304, after receiving the instruction to establish the sub-group for the designated master group, the client sends a request for establishing the sub-group to the server; the request for establishing the sub-group carries the user account and the primary group identifier.
In step S305, the server determines whether the user account has the authority to establish the sub-group according to a preset authority condition.
After receiving a request for establishing a sub-group, the server determines account types (a group primary account, an administrator account and a common member account) of user accounts in a primary group, and judges whether the user accounts have the authority for establishing the sub-group according to the account types of the user accounts and preset authority conditions. For example, if the preset permission condition is "allowing the group main account to establish the sub-group", when the user account is an administrator account or a common member account, the user account does not conform to the preset permission condition, the server determines that the user account does not have the permission to establish the sub-group, and when the user account is the group main account, the user account conforms to the preset permission condition, and the server determines that the user account has the permission to establish the sub-group.
In step S306, if the user account number meets the preset permission condition, the server determines that the user account number has the permission to establish the sub-group.
In step S307, the server generates a subgroup identifier after determining that the user account has the authority to establish the subgroup.
In step S308, the server feeds back the confirmation information carrying the subgroup identification to the client.
In step S309, the client adds the selected member account in the primary group to the subgroup corresponding to the subgroup identifier according to the confirmation message.
In step S310, the client sends a group establishment notification to the server; the group establishment notification carries the main group identifier, the subgroup identifier and the member account numbers included in the subgroup.
In step S311, the server establishes a subgroup corresponding to the subgroup identifier in the group corresponding to the main group identifier according to the member account included in the subgroup.
Steps S307 to S311 are similar to the related steps in the embodiment shown in fig. 1A and fig. 2, and are not repeated herein.
As an exemplary scenario, as shown in fig. 3B to 3E, a main group display window 31 named "foreign language learning", main group id 1236666 includes "chat", "set" buttons, and when the "chat" button is triggered, as shown in fig. 3B, a chat interface is displayed, which includes a chat history sub-interface 32, an information input sub-interface 33, and a group member list sub-interface 34. The "foreign language learning" main group includes the group owner li, the manager zhang hong, the common member wang xing, and the Zhao Jie.
For convenience of management, if the group owner li wants to restrict the members establishing the sub-group, the method can be implemented as follows: triggering the "set" button brings up the group setting interface 35 shown in fig. 3C, and the group setting interface 35 includes 3 setting options for setting up the authority of the subgroup (allowing the group owner to set up the subgroup, allowing the administrator to set up the subgroup, and allowing any one member to set up the subgroup), among which "allowing the group owner to set up the subgroup", "allowing the administrator to set up the subgroup" may be selected simultaneously, and "allowing any one member to set up the subgroup" may be selected separately. For example, li only authorizes the administrator to have the right to establish the sub-group, and then the option "allow the administrator to establish the sub-group" needs to be selected. In this exemplary scenario, there is one status indicating icon 36 before each option, and when an option is not selected, the status indicating icon 36 is white, and when an option is selected, the status indicating icon 36 is black. When the "allow administrator to build subgroups" option is selected, the corresponding status indication icon 36 is black. After the authority condition for establishing the sub-group is set, the authority condition for establishing the sub-group may be determined by triggering the determination button 352, and the group setting interface 35 may be closed by the close button 351.
When the determination button 352 is triggered, the client may determine the permission condition for establishing the sub-group (allowing the administrator to establish the sub-group), and send a notification generated based on the permission condition to the server, and the server saves the preset permission condition (allowing the administrator to establish the sub-group) according to the notification generated based on the permission condition.
When the administrator turns red to respond to a request of a part of members to establish a "french learning" subgroup, the pull-down menu 38 can be called by triggering the "group operation" button 37 in the main group display window 31 in fig. 3B, as shown in fig. 3D, the pull-down menu 38 includes an option button for "establishing a subgroup", and also includes option buttons such as "invite friends to a group", "exit the group", and the like. When the option button of "establish sub-group" is triggered, the client receives an instruction to establish a sub-group to a designated main group, and sends a request for establishing the sub-group to the server. The request for establishing the sub-group carries the user account (Zhanghong account 7777888) and the primary group identifier (1236666).
After receiving a request for establishing a sub-group sent by a client logged in by a zhanhong account, the server confirms that the zhanhong account 7777888 is a management account in a main group with a main group identifier 1236666, determines that the zhanhong account 7777888 meets the authority conditions according to the authority conditions of "allowing an administrator to establish the sub-group", has the authority for establishing the sub-group, and generates a sub-group identifier, such as 1236666111. Next, the server feeds back confirmation information carrying the subgroup identification "1236666111" to the client logged in by the account number zhang.
After receiving the confirmation information carrying the subgroup identifier "1236666111", the client logged in by the zhang account may name the subgroup corresponding to the subgroup identifier "1236666111", for example, named "french learning". After naming the sub-group corresponding to the sub-group identifier "1236666111", as shown in fig. 3E, the main group display window 31 named "foreign language learning" and the main group identifier 1236666 is updated in the group member list sub-interface 34, and then the sub-group of the foreign language learning group- "french learning" sub-group is displayed.
Next, zhang can select a member account from the main group through the client registered by the account and add the member account to the subgroup "french learning" corresponding to the subgroup identification "1236666111", for example, a royal star or zhaojie can be selected and added to the subgroup "french learning".
After Zhang hong adds the selected member account number in the main group to the subgroup corresponding to the subgroup identification through the client, the client sends a group establishment notification to the server; the group establishment notification carries the primary group identifier (1236666), the subgroup identifier (1236666111), and the member accounts included in the subgroup (account 111111 for king, account 222222 for jey).
The server establishes a subgroup corresponding to the subgroup identification (1236666111) according to the received group establishing notification, and binds and saves the main group identification (1236666), the subgroup identification (1236666111) and member accounts (account 111111 of Wangxing and account 222222 of Zhao Jie) included in the subgroup. For example, a saved "French learning" subgroup may be as shown in Table 1. In this way, the binding of the subgroup to the belonging main group is achieved.
TABLE 1
Figure BDA0002390626100000151
In the embodiment, the permission condition is predetermined by the client, and is stored by the server, so that the permission of the members in the main group for establishing the sub-group is limited, the phenomenon that the members in the main group establish the sub-group and are not restricted can be avoided, and the management is convenient.
FIG. 4 is a flowchart illustrating a method of establishing a group in accordance with an example embodiment two; in this embodiment, the method provided by the embodiment of the present disclosure is exemplarily described by taking the determination of the authority relationship between the subgroup and the main group as an example, as shown in fig. 4, the method includes the following steps:
in step S401, after receiving the instruction to establish the sub-group for the designated master group, the client sends a request for establishing the sub-group to the server.
In step S402, after determining that the user account has the authority to establish the subgroup, the server generates a subgroup identifier.
In step S403, the server feeds back the confirmation information carrying the subgroup identifier to the client.
In step S404, the client adds the selected member account in the primary group to the subgroup corresponding to the subgroup identifier according to the confirmation message.
In step S405, the client sends a group establishment notification to the server; the group establishment notification carries the main group identifier, the subgroup identifier and the member account numbers included in the subgroup.
In step S406, the server establishes a subgroup corresponding to the subgroup identifier in the group corresponding to the primary group identifier according to the member account included in the subgroup.
Steps S401 to S406 are similar to the related steps in the embodiment shown in fig. 1A and fig. 2, and are not repeated herein.
In step S407, the client determines the authority relationship between the subgroup and the main group.
After the sub-group is established, the creator of the sub-group can set the authority relationship between the sub-group and the main group through the client. The authority relationship between the sub-group and the main group mainly comprises the following steps:
(1) the main group has the authority of receiving the messages of the sub-group, or the main group has the authority of refusing to receive the messages of the sub-group;
(2) the main group has the authority to send the message to the sub-group, or the main group does not have the authority to send the message to the sub-group;
(3) and the main group has the authority to check the member accounts of the sub-groups.
The creator of the sub-group can determine the authority relationship between the sub-group and the main group according to the requirement, and the client determines the authority relationship between the sub-group and the main group according to the operation executed on the client for setting the authority relationship between the sub-group and the main group.
If viewing of the sub-group message in the main group is allowed, it may be determined by the client that: the master group has the authority to receive messages of the subgroup. If not only the sub-group message is allowed to be viewed in the main group, but also the main group message is allowed to be viewed in the sub-group, it can be determined by the client that: the master group has the authority to receive messages of the sub-group, and the master group has the authority to send messages to the sub-group. If not only the sub-group message is not allowed to be viewed in the main group, but also the main group message is not allowed to be viewed in the sub-group, it can be determined by the client: the master group has the authority to refuse to receive the messages of the sub-group, and the master group does not have the authority to send the messages to the sub-group.
It should be noted that, in order to avoid the conflict between the set permission relationship between the sub-group and the main group, the technical solution of the present disclosure further provides an anti-conflict mechanism, specifically, in the step of determining the permission relationship between the sub-group and the main group by the client, the method includes:
receiving a first instruction for determining the authority relationship between the sub-group and the main group;
receiving a second instruction for determining the authority relationship between the sub-group and the main group;
detecting whether a conflict exists between the first instruction and the second instruction;
if a conflict exists, execution of the second instruction is denied.
In an exemplary embodiment, the authority relationship between the subgroup and the main group determined by the first instruction is: the main group has the authority of refusing to receive the messages of the subgroup, and the authority relationship between the subgroup and the main group determined by the second instruction is as follows: the master group has the authority to receive messages of the subgroup. And after detecting that the first instruction and the second instruction have conflict, the client refuses to execute the second instruction. Certainly, in practical application, the anti-collision mechanism may also be implemented in other forms, for example, only one setting button is set for "the main group has the authority to receive the messages of the sub-group" and "the main group has the authority to reject to receive the messages of the sub-group", and the button is selected to indicate that "the main group has the authority to receive the messages of the sub-group", and the button is not selected to indicate that "the main group has the authority to reject to receive the messages of the sub-group".
In step S408, the client transmits a notification generated based on the authority relationship to the server. The notification carries the determined authority relationship between the sub-group and the main group.
In step S409, the server saves the authority relationship between the sub-group and the main group according to the notification generated based on the authority relationship.
In the embodiment, the authority relationship between the memory group and the main group is predetermined by the client, and the server stores the authority relationship for limiting the sending and receiving of the messages between the sub group and the main group, so that a user can select a receptor of the messages in a targeted manner, the messages are conveniently managed, and the utilization rate of the messages is improved.
FIG. 5A is a flowchart of a method of establishing a group, according to a third illustrative embodiment; FIG. 5B is a diagram illustrating a scenario of a display relationship between a message display interface of a subgroup and a message display interface of a main group, according to an example embodiment; fig. 5C is a scene diagram illustrating a display relationship between the message display interfaces of the subgroup and the main group according to another exemplary embodiment. In this embodiment, an example of determining a display relationship between a message display interface of a subgroup and a message display interface of a main group is exemplarily described by using the above method provided in the embodiment of the present disclosure, as shown in fig. 5A, including the following steps:
in step S501, after receiving an instruction to establish a sub-group for a designated master group, the client sends a request for establishing the sub-group to the server.
In step S502, after determining that the user account has the authority to establish the sub-group, the server generates a sub-group identifier.
In step S503, the server feeds back the confirmation information carrying the subgroup identification to the client.
In step S504, the client adds the selected member account in the primary group to the subgroup corresponding to the subgroup identifier according to the confirmation message.
In step S505, the client sends a group establishment notification to the server; the group establishment notification carries the main group identifier, the subgroup identifier and the member account numbers included in the subgroup.
In step S506, the server establishes a subgroup corresponding to the subgroup identifier in the group corresponding to the main group identifier according to the member account included in the subgroup.
Steps S501 to S506 are similar to the related steps in the embodiment shown in fig. 1A and fig. 2, and are not repeated here.
In step S507, the client determines a display relationship between the message display interfaces of the sub-group and the message display interface of the main group.
The creator of the sub-group or the members of the sub-group may determine the display relationship between the message display interface of the sub-group and the message display interface of the main group according to the requirements. The display relationship between the message display interfaces of the sub-group and the message display interfaces of the main group may include the following two types:
(1) referring to fig. 5B, the message display interface 54 of the sub-group and the message display interface 53 of the main group are located in the same display window 51, and the display window 51 further includes an information input interface 56 of the main group, an information input interface 57 of the sub-group, a group member list sub-interface 52 of the main group, and a group member list sub-interface 55 of the sub-group.
Wherein, when the main group includes a plurality of subgroups, the message display interface 54 of a subgroup may be the message display interface of the subgroup currently receiving the message. Of course, in practical applications, the message display interfaces of the plurality of subgroups and the message display interface of the main group may share one display window.
(2) The message display interface of the subgroup and the message display interface of the main group may be independent and located in different display windows, the message display interface of the main group may be located in a window as shown in fig. 3E, the message display interface of the subgroup may be located in a window 58 as shown in fig. 5C, and the window 58 includes a toolbar 510, a message display interface 511, an information input interface 512, and a group member list sub-interface 59, wherein the toolbar 510 not only provides group operation tools (a chat button and a setting button), but also displays the name of the subgroup (a french learning subgroup) and the name of the main group (a foreign language learning group) to which the subgroup belongs.
In step S508, the client transmits a notification generated based on the display relationship to the server. The notification carries the display relationship between the message display interface of the determined subgroup and the message display interface of the main group.
In step S509, the server saves the display relationship between the message display interface of the subgroup and the message display interface of the main group according to the notification generated based on the display relationship.
In this embodiment, the display relationship between the message display interface of the subgroup and the message display interface of the main group may be determined by the client, and the display relationship is stored by the server, so as to determine the way in which the client displays the subgroup message and the main group message, thereby facilitating the user to refer to the message.
Fig. 6 is a flowchart illustrating a message forwarding method applied to the server 12 for processing messages between subgroups and a main group in the above embodiments, according to an exemplary embodiment, including the following steps S601-S604:
in step S601, a message from a client is received. The message is the conversation content from the members of the main group or the sub-group, and comprises characters, voice, files and the like.
It should be noted that information input by a client registered by a member account needs to be sent to the server 12 and forwarded by the server 12, so that the information can be displayed on the client and other clients registered by other member accounts.
In step S602, the source of the message is determined. The sources of the messages include the main group and the sub-group. The message carries a member account, and the server can determine whether the source of the message is a main group or a sub-group according to pre-stored data (for example, table 1).
In step S603, the authority relationship between the sub-group and the belonging main group is determined. The authority relationship between the sub-group and the main group is the authority relationship determined in the embodiment shown in fig. 4, and is not described herein again.
In step S604, the message is sent to the message display interface with the receiving authority according to the relationship between the source of the message and the authority.
In an exemplary embodiment, the source of the message is a subgroup, and the authority relationship between the subgroup and the main group to which the subgroup belongs is "the main group has authority to receive the message from the subgroup", the server will forward the message from the subgroup to the message display interface of the subgroup as well as the message from the subgroup to the message display interface of the main group.
In this embodiment, the source of the message may be determined by the server, and the message may be sent to the message display interface with the receiving authority according to the authority relationship between the sub-group and the main group to which the sub-group belongs, so as to achieve the purpose of managing the message, and further improve the communication efficiency.
In one embodiment, the source of the message may be the subgroup; the determining the authority relationship between the sub-group and the main group may include:
determining whether the master group has permission to receive the message;
the sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority comprises the following steps:
if the main group is determined to have the authority of receiving the message, the message is sent to a message display interface of the main group and a message display interface of the sub-group;
and if the main group is determined not to have the authority of receiving the message, sending the message to a message display interface of the sub-group.
In one embodiment, the source of the message may be the master group; the determining the authority relationship between the sub-group and the main group may include:
determining whether the main group has the authority to send the message to the sub-group;
the sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority comprises the following steps:
if the main group is determined to have the authority of sending the message to the sub-group, sending the message to a message display interface of the main group and a message display interface of the sub-group;
and if the main group is determined not to have the authority of sending the message to the sub-group, sending the message to a message display interface of the main group.
Please refer to the following embodiments for details of how to forward the message.
Therefore, the method provided by the embodiment of the disclosure can determine the source of the message through the server, and send the message to the message display interface with the receiving authority according to the authority relationship between the sub-group and the main group to which the sub-group belongs, so as to achieve the purpose of managing the message, and further improve the communication efficiency.
The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
FIG. 7 is a flow diagram illustrating a method of message forwarding in accordance with an illustrative embodiment; in this embodiment, the method provided by the embodiment of the present disclosure is exemplarily described by taking a source of a message as a subgroup, as shown in fig. 7, and includes the following steps:
in step S701, a message from a client is received.
In step S702, the source of the message is determined; the message is derived from a subgroup.
In step S703, it is determined whether the master group has the authority to receive the message. Step S704 is performed if it is determined that the master group has the authority to receive the message, and step S705 is performed if it is determined that the master group does not have the authority to receive the message.
In step S704, the message is sent to the message display interfaces of the main group and the subgroup. That is, when the main group has the authority to receive messages, messages from the subgroup are forwarded not only to the subgroup, but also to the main group to which the subgroup belongs. Therefore, all members in the main group can consult the conversation of the sub-group, and the utilization rate of the message can be improved.
In step S705, the message is sent to the message display interface of the subgroup. That is, when the main group does not have the authority to receive messages, the messages from the subgroup may be forwarded to the subgroup. Therefore, the information of the subgroup is only used for the members in the subgroup to look up, the pertinence of the information can be improved, and the communication efficiency is improved.
In this embodiment, when the message source is the sub-group, the server may determine whether the main group has the authority to receive the message from the sub-group, and determine whether to send the message to the message display interface of the main group according to the determination result, so as to achieve the purpose of managing the message, and further improve the communication efficiency.
FIG. 8 is a flow chart illustrating a method of message forwarding in accordance with an example embodiment two; in this embodiment, the method provided by the embodiment of the present disclosure is exemplarily described by taking a source of a message as a main group, as shown in fig. 8, including the following steps:
in step S801, a message from a client is received.
In step S802, the source of the message is determined; the message originates from the master group.
In step S803, it is determined whether the main group has the authority to send a message to the sub-group. Step S804 is performed if it is determined that the main group has the authority to transmit the message to the sub-group, and step S805 is performed if it is determined that the main group does not have the authority to transmit the message to the sub-group.
In step S804, the message is sent to the message display interfaces of the main group and the subgroup. That is, after determining that the main group has the authority to send the message to the sub-group, the message from the main group is forwarded to the message display interface of the main group, and the message from the main group is forwarded to the message display interface of the sub-group. Therefore, information omission caused by the fact that the subgroup member ignores the message of the main group can be avoided.
In step S805, the message is sent to the message display interface of the main group. That is, if it is determined that the main group does not have the authority to send messages to the sub-groups, only messages from the main group are forwarded to the message display interface of the main group. Therefore, repeated receiving of the main group message can be avoided, and especially, when one member account belongs to a plurality of subgroups, information redundancy caused by multiple receiving of the information can be avoided.
In this embodiment, when the source of the message is the main group, the server may determine whether the main group has the authority to send the message to the sub-group, and determine whether to send the message to the message display interface of the sub-group according to the determination result, so as to achieve the purpose of managing the message, and further improve the communication efficiency.
Fig. 9A is a block diagram illustrating an apparatus for establishing a group, according to an exemplary embodiment, where the apparatus for establishing a group 90 is applied to a server, and as shown in fig. 9A, the apparatus for establishing a group 90 includes:
a first receiving module 91, configured to receive a request for establishing a sub-group sent by a client, where the request for establishing a sub-group carries a user account and a primary group identifier;
a generating module 92 configured to generate a subgroup identifier after determining that the user account has the authority to establish the subgroup;
a first sending module 93, configured to feed back, to the client, acknowledgement information carrying the subgroup identifier;
a second receiving module 94 configured to receive a group establishment notification generated based on the acknowledgement message from the client; the group establishment notification carries the main group identification, the subgroup identification and the member account numbers included in the subgroup;
the establishing module 95 is configured to establish a subgroup corresponding to the subgroup identifier in the group corresponding to the main group identifier according to the member account included in the subgroup.
Fig. 9B is a block diagram illustrating an apparatus for establishing a group according to another exemplary embodiment, and as shown in fig. 9B, the generating module 92 includes:
the determining sub-module 921, configured to determine whether the user account has an authority to establish a sub-group according to a preset authority condition;
the determining submodule 922 is configured to determine that the user account has the authority to establish the sub-group if the user account meets the preset authority condition.
Fig. 9C is a block diagram of an apparatus for establishing a group according to another exemplary embodiment, and as shown in fig. 9C, the apparatus for establishing a group 90 further includes:
a third receiving module 96 configured to receive the notification generated based on the authority relationship sent by the client;
a first saving module 97 configured to save the authority relationship between the sub-group and the main group according to the notification generated based on the authority relationship.
Fig. 9D is a block diagram of an apparatus for establishing a group according to another exemplary embodiment, and as shown in fig. 9D, the apparatus for establishing a group 90 further includes:
a fourth receiving module 98 configured to receive a notification generated based on a display relationship sent by the client;
a second saving module 99 configured to save the display relationship between the message display interfaces of the subgroup and the message display interface of the main group according to the notification generated based on the display relationship.
Fig. 10A is a block diagram illustrating an apparatus for establishing a group, according to an exemplary embodiment, where the apparatus for establishing a group 100 is applied to a server, and as shown in fig. 10A, the apparatus for establishing a group 100 includes:
a second sending module 101 configured to send a request for establishing a sub-group to the server after receiving an instruction to establish the sub-group for the designated main group; the request for establishing the sub-group carries a user account and a main group identification;
a fifth receiving module 102, configured to receive confirmation information generated by the server based on the instruction for establishing the subgroup;
an adding module 103, configured to add the selected member account in the primary group to the subgroup corresponding to the subgroup identifier according to the confirmation message;
a third sending module 104 configured to send a group notification to the server; the group establishment notification carries the main group identification, the subgroup identification and the member account numbers included in the subgroup.
Fig. 10B is a block diagram of an apparatus for establishing a group according to another exemplary embodiment, where, as shown in fig. 10B, the apparatus for establishing a group 100 further includes:
a first determining module 105 configured to determine a permission condition for establishing the subgroup;
a fourth sending module 106 configured to send a notification generated based on the permission condition to the server.
Fig. 10C is a block diagram of an apparatus for establishing a group according to another exemplary embodiment, where, as shown in fig. 10C, the apparatus for establishing a group 100 further includes:
a second determining module 107 configured to determine an authority relationship between the sub-group and the main group;
a fifth sending module 108 configured to send a notification generated based on the authority relationship to the server.
Fig. 10D is a block diagram of an apparatus for establishing a group according to another exemplary embodiment, where the apparatus for establishing a group 100 shown in fig. 10D further includes:
a third determining module 109 configured to determine a display relationship between the message display interfaces of the subgroup and the message display interface of the main group;
a sixth sending module 1010 configured to send a notification generated based on the display relationship to the server.
Fig. 11 is a block diagram illustrating a message forwarding apparatus 110 according to an exemplary embodiment, where the message forwarding apparatus 110 is applied to a server, and the group establishing apparatus 110, as shown in fig. 11, includes:
a sixth receiving module 111 configured to receive a message from the client;
a fourth determining module 112 configured to determine a source of the message; the source of the message comprises a main group and a sub-group;
a fifth determining module 113 configured to determine an authority relationship between the sub-group and the main group to which the sub-group belongs;
and a seventh sending module 114, configured to send the message to a message display interface with a receiving right according to the relationship between the source of the message and the right.
In one embodiment, the source of the message is the subgroup;
the fifth determining module 113, further configured to determine whether the master group has the right to receive the message;
the seventh sending module 114 is further configured to send the message to the message display interface of the main group and the message display interface of the subgroup when the fifth determining module determines that the main group has the right to receive the message, and send the message to the message display interface of the subgroup when the fifth determining module determines that the main group does not have the right to receive the message.
In another embodiment, the source of the message is the primary group;
the fifth determining module 113 is further configured to determine whether the main group has the authority to send the message to the sub-group;
the seventh sending module 114 is further configured to send the message to the message display interface of the main group and the message display interface of the subgroup when the fifth determining module determines that the main group has the right to send the message to the subgroup, and send the message to the message display interface of the main group when the fifth determining module determines that the main group does not have the right to send the message to the subgroup.
The present disclosure also provides a system for establishing a group, which includes the server and the client.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 12 is a block diagram illustrating an apparatus for establishing a group according to an example embodiment. For example, the apparatus 1200 may be provided as a server. Referring to fig. 12, apparatus 1200 includes a processing component 1222 that further includes one or more processors, and memory resources, represented by memory 1232, for storing instructions, such as applications, that are executable by processing component 1222. The application programs stored in memory 1232 may include one or more modules that each correspond to a set of instructions. The processing component 1222 is configured to:
receiving a request for establishing a sub-group sent by a client, wherein the request for establishing the sub-group carries a user account and a main group identifier;
generating a subgroup identification after determining that the user account has the authority of establishing the subgroup;
feeding back confirmation information carrying the subgroup identification to the client;
receiving a group establishment notification generated by the client based on the confirmation message; the group establishment notification carries the main group identification, the subgroup identification and the member account numbers included in the subgroup;
and establishing a subgroup corresponding to the subgroup identification in the group corresponding to the main group identification according to the member account numbers included in the subgroup.
The apparatus 1200 may also include a power supply component 1226 configured to perform power management of the apparatus 1200, a wired or wireless network interface 1250 configured to connect the apparatus 1200 to a network, and an input output (I/O) interface 1258. The apparatus 1200 may operate based on an operating system stored in the memory 1232, such as Windows Server, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided that includes instructions, such as memory 1232 that includes instructions, which are executable by the processing component 1222 of the apparatus 1200 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 12 is a block diagram illustrating an apparatus for message forwarding in accordance with an example embodiment. For example, the apparatus 1200 may be provided as a server. Referring to fig. 12, apparatus 1200 includes a processing component 1222 that further includes one or more processors, and memory resources, represented by memory 1232, for storing instructions, such as applications, that are executable by processing component 1222. The application programs stored in memory 1232 may include one or more modules that each correspond to a set of instructions. The processing component 1222 is configured to:
receiving a message from a client;
determining a source of the message; the source of the message comprises a main group and a sub-group;
determining the authority relationship between the sub-group and the main group to which the sub-group belongs;
and sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
The apparatus 1200 may also include a power supply component 1226 configured to perform power management of the apparatus 1200, a wired or wireless network interface 1250 configured to connect the apparatus 1200 to a network, and an input output (I/O) interface 1258. The apparatus 1200 may operate based on an operating system stored in the memory 1232, such as Windows Server, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided that includes instructions, such as memory 1232 that includes instructions, which are executable by the processing component 1222 of the apparatus 1200 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 13 is a block diagram illustrating an apparatus for establishing a group according to an example embodiment. For example, apparatus 1300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 13, the apparatus 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, an audio component 1310, an input/output (I/O) interface 1312, a sensor component 1314, and a communication component 1316.
The processing component 1302 generally controls overall operation of the device 1300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 1302 may include one or more processors 1320 to execute instructions, the processing element 1302 configured to:
after receiving an instruction for establishing a sub-group for a designated main group, sending a request for establishing the sub-group to a server; the request for establishing the sub-group carries a user account and a main group identification;
receiving confirmation information generated by the server based on the instruction for establishing the sub-group;
adding the selected member account in the main group to a subgroup corresponding to the subgroup identification according to the confirmation message;
sending a group establishment notification to the server; the group establishment notification carries the main group identification, the subgroup identification and the member account numbers included in the subgroup.
Further, the processing component 1302 can include one or more modules that facilitate interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate interaction between the multimedia component 1308 and the processing component 1302.
The memory 1304 is configured to store various types of data to support operation at the device 1300. Examples of such data include instructions for any application or method operating on device 1300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1304 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 1306 provides power to the various components of device 1300. The power components 1306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1300.
The multimedia component 1308 includes a screen between the device 1300 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1308 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the back-facing camera may receive external multimedia data when the device 1300 is in an operational mode, such as a capture mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1310 is configured to output and/or input audio signals. For example, the audio component 1310 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1304 or transmitted via the communication component 1316. In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals.
The I/O interface 1312 provides an interface between the processing component 1302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1314 includes one or more sensors for providing various aspects of state assessment for the device 1300. For example, the sensor assembly 1314 may detect an open/closed state of the device 1300, the relative positioning of components, such as a display and keypad of the apparatus 1300, the sensor assembly 1314 may also detect a change in position of the apparatus 1300 or a component of the apparatus 1300, the presence or absence of user contact with the apparatus 1300, orientation or acceleration/deceleration of the apparatus 1300, and a change in temperature of the apparatus 1300. The sensor assembly 1314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1316 is configured to facilitate communications between the apparatus 1300 and other devices in a wired or wireless manner. The apparatus 1300 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1316 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1316 also includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1304 comprising instructions, executable by the processor 1320 of the apparatus 1300 to perform the method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, for application to a server, the computer program, when executed by a processor, implementing the steps of:
receiving a request for establishing a sub-group sent by a client, wherein the request for establishing the sub-group carries a user account and a main group identifier;
generating a subgroup identification after determining that the user account has the authority of establishing the subgroup;
feeding back confirmation information carrying the subgroup identification to the client;
receiving a group establishment notification generated by the client based on the confirmation message; the group establishment notification carries the main group identification, the subgroup identification and the member account numbers included in the subgroup;
and establishing a subgroup corresponding to the subgroup identification in the group corresponding to the main group identification according to the member account numbers included in the subgroup.
The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, for application to a client, the computer program, when executed by a processor, implementing the steps of:
after receiving an instruction for establishing a sub-group for a designated main group, sending a request for establishing the sub-group to a server; the request for establishing the sub-group carries a user account and a main group identification;
receiving confirmation information generated by the server based on the instruction for establishing the sub-group;
adding the selected member account in the main group to a subgroup corresponding to the subgroup identification according to the confirmation message;
sending a group establishment notification to the server; the group establishment notification carries the main group identification, the subgroup identification and the member account numbers included in the subgroup.
The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, for application to a server, the computer program, when executed by a processor, implementing the steps of:
receiving a message from a client;
determining a source of the message; the source of the message comprises a main group and a sub-group;
determining the authority relationship between the sub-group and the main group to which the sub-group belongs;
and sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. A message forwarding method is applied to a server, and the method comprises the following steps:
receiving a message from a client;
determining a source of the message; the source of the message comprises a main group and a sub-group;
determining the authority relationship between the sub-group and the main group to which the sub-group belongs;
and sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
2. The method of claim 1, wherein the source of the message is the subgroup; the determining the authority relationship between the sub-group and the main group comprises:
determining whether the master group has permission to receive the message;
the sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority comprises the following steps:
if the main group is determined to have the authority of receiving the message, the message is sent to a message display interface of the main group and a message display interface of the sub-group;
and if the main group is determined not to have the authority of receiving the message, sending the message to a message display interface of the sub-group.
3. The method of claim 1, wherein the source of the message is the primary group; the determining the authority relationship between the sub-group and the main group comprises:
determining whether the main group has the authority to send the message to the sub-group;
the sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority comprises the following steps:
if the main group is determined to have the authority of sending the message to the sub-group, sending the message to a message display interface of the main group and a message display interface of the sub-group;
and if the main group is determined not to have the authority of sending the message to the sub-group, sending the message to a message display interface of the main group.
4. An apparatus for message forwarding, the apparatus comprising:
a sixth receiving module configured to receive a message from the client;
a fourth determination module configured to determine a source of the message; the source of the message comprises a main group and a sub-group;
a fifth determining module configured to determine an authority relationship between the sub-group and the main group to which the sub-group belongs;
and the seventh sending module is configured to send the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
5. The apparatus of claim 4, wherein the source of the message is the subgroup;
the fifth determining module is further configured to determine whether the master group has the authority to receive the message;
the seventh sending module is further configured to send the message to the message display interface of the main group and the message display interface of the subgroup when the fifth determining module determines that the main group has the right to receive the message, and send the message to the message display interface of the subgroup when the fifth determining module determines that the main group does not have the right to receive the message.
6. The apparatus of claim 4, wherein the source of the message is the primary group;
the fifth determining module is further configured to determine whether the main group has the authority to send the message to the sub-group;
the seventh sending module is further configured to send the message to the message display interface of the main group and the message display interface of the subgroup when the fifth determining module determines that the main group has the right to send the message to the subgroup, and send the message to the message display interface of the main group when the fifth determining module determines that the main group does not have the right to send the message to the subgroup.
7. An apparatus for message forwarding, applied to a server, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a message from a client;
determining a source of the message; the source of the message comprises a main group and a sub-group;
determining the authority relationship between the sub-group and the main group to which the sub-group belongs;
and sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
8. A computer-readable storage medium, on which a computer program is stored, for application to a server, which computer program, when being executed by a processor, carries out the steps of:
receiving a message from a client;
determining a source of the message; the source of the message comprises a main group and a sub-group;
determining the authority relationship between the sub-group and the main group to which the sub-group belongs;
and sending the message to a message display interface with receiving authority according to the relationship between the source of the message and the authority.
CN202010112937.3A 2017-06-21 2017-06-21 Message forwarding method and device Pending CN111314211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010112937.3A CN111314211A (en) 2017-06-21 2017-06-21 Message forwarding method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710474552.XA CN107425991A (en) 2017-06-21 2017-06-21 Establish the method, apparatus of group and the method, apparatus of message forwarding
CN202010112937.3A CN111314211A (en) 2017-06-21 2017-06-21 Message forwarding method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201710474552.XA Division CN107425991A (en) 2017-06-21 2017-06-21 Establish the method, apparatus of group and the method, apparatus of message forwarding

Publications (1)

Publication Number Publication Date
CN111314211A true CN111314211A (en) 2020-06-19

Family

ID=60426640

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710474552.XA Pending CN107425991A (en) 2017-06-21 2017-06-21 Establish the method, apparatus of group and the method, apparatus of message forwarding
CN202010112937.3A Pending CN111314211A (en) 2017-06-21 2017-06-21 Message forwarding method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201710474552.XA Pending CN107425991A (en) 2017-06-21 2017-06-21 Establish the method, apparatus of group and the method, apparatus of message forwarding

Country Status (1)

Country Link
CN (2) CN107425991A (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108847948B (en) * 2018-05-29 2021-05-14 网易乐得科技有限公司 Method and device for creating activity group, medium and computing equipment
CN109167669A (en) * 2018-09-20 2019-01-08 五八有限公司 Message treatment method, calculates equipment and storage medium at device
CN109327381B (en) * 2018-10-30 2021-01-22 蓝信移动(北京)科技有限公司 Method and device for rapidly adding personnel into group and creating new group
CN109714179A (en) * 2018-12-29 2019-05-03 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN109787785A (en) * 2019-02-01 2019-05-21 杭州来布科技有限公司 Group management, background server and terminal
CN113746783B (en) * 2020-05-28 2023-06-20 腾讯科技(深圳)有限公司 Group chat authority control method, team instant messaging application and background server
CN114095288A (en) * 2020-07-30 2022-02-25 阿里巴巴集团控股有限公司 User group interaction method and device and electronic equipment
CN115378891A (en) * 2022-08-22 2022-11-22 中国银行股份有限公司 Group chat processing method, device, storage medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120036209A1 (en) * 2010-07-08 2012-02-09 National Field, LLC Hierarchical social network system
CN104301359A (en) * 2013-07-19 2015-01-21 深圳市友福同享信息科技有限公司 Method and system for displaying user relation in network community via groups
CN105099876A (en) * 2015-06-26 2015-11-25 阿里巴巴集团控股有限公司 Methods and devices for managing data of group users and maintaining instant messaging group
CN106453053A (en) * 2016-10-18 2017-02-22 腾讯科技(深圳)有限公司 Group message display method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159714B (en) * 2007-11-30 2011-10-26 腾讯科技(深圳)有限公司 Instant communication method and device
CN103888344B (en) * 2014-03-20 2017-07-14 小米科技有限责任公司 Group creating method, group exit method and apparatus
CN105515945B (en) * 2015-11-30 2019-06-14 小米科技有限责任公司 Group's method for splitting, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120036209A1 (en) * 2010-07-08 2012-02-09 National Field, LLC Hierarchical social network system
CN104301359A (en) * 2013-07-19 2015-01-21 深圳市友福同享信息科技有限公司 Method and system for displaying user relation in network community via groups
CN105099876A (en) * 2015-06-26 2015-11-25 阿里巴巴集团控股有限公司 Methods and devices for managing data of group users and maintaining instant messaging group
CN106453053A (en) * 2016-10-18 2017-02-22 腾讯科技(深圳)有限公司 Group message display method and device

Also Published As

Publication number Publication date
CN107425991A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN111314211A (en) Message forwarding method and device
US10237901B2 (en) Method and apparatus for connecting with controlled smart device, and storage medium
CN106790043B (en) Method and device for sending message in live broadcast application
US20160164808A1 (en) Method and device for instant messaging
US11895630B2 (en) Method and device for identifying downlink transmissions
CN109274510B (en) Message processing method, device, client, server and storage medium
EP3226432B1 (en) Method and devices for sharing media data between terminals
US11792659B2 (en) Method and device for using network slice
CN107071862B (en) Account number binding method and device and intelligent equipment
CN110740091B (en) Processing method and device for sharing message, electronic equipment and readable storage medium
CN108702763B (en) Method and device for sending lead code and scheduling request
CN107959757B (en) User information processing method and device, APP server and terminal equipment
EP3203690B1 (en) Message transmission method and apparatus, and electronic device
CN110730954A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN112632418A (en) Password sharing method and device, electronic equipment and storage medium
CN107404521B (en) Method, device and system for resetting equipment
CN106412884B (en) WIFI connection management method and device
CN104572230B (en) Script file loading method and device and script file generating method and device
CN105227426B (en) Application interface switching method and device and terminal equipment
CN106211160B (en) Network access method and device
CN109150901B (en) Information source prompting method and device, electronic equipment and storage medium
CN108521882B (en) Network access method and device
US20210036830A1 (en) System information reception method and apparatus, and system information transmission method and apparatus
US11483263B2 (en) Method and terminal for facilitating chat between users of two terminals
CN112640569B (en) Connection establishment method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619