CN110971426A - Method for constructing group session, client and storage medium - Google Patents

Method for constructing group session, client and storage medium Download PDF

Info

Publication number
CN110971426A
CN110971426A CN201911235689.5A CN201911235689A CN110971426A CN 110971426 A CN110971426 A CN 110971426A CN 201911235689 A CN201911235689 A CN 201911235689A CN 110971426 A CN110971426 A CN 110971426A
Authority
CN
China
Prior art keywords
account
group
information
new group
new
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
CN201911235689.5A
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.)
Cloudminds Robotics Co Ltd
Original Assignee
Cloudminds Shenzhen Robotics Systems 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 Cloudminds Shenzhen Robotics Systems Co Ltd filed Critical Cloudminds Shenzhen Robotics Systems Co Ltd
Priority to CN201911235689.5A priority Critical patent/CN110971426A/en
Publication of CN110971426A publication Critical patent/CN110971426A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1822Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1818Conference organisation arrangements, e.g. handling schedules, setting up parameters needed by nodes to attend a conference, booking network resources, notifying involved parties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Abstract

The embodiment of the invention relates to the technical field of Internet application, and discloses a method for constructing a group session, a client and a storage medium. The method for establishing the group session is applied to the client side where the first account is located, the first account is the account corresponding to the group administrator in the instant messaging application, and the method comprises the following steps: detecting a group session creation request of a first account, and creating a new group account; respectively sending the group session construction information to a second account corresponding to each new group member, wherein the group session construction information comprises: and logging information of the new group account is provided for the client side of each second account to log in the new group account and perform group conversation, wherein the instant messaging application is based on end-to-end encrypted communication. According to the embodiment, the group account can be quickly constructed and the group session can be carried out based on the end-to-end instant messaging application, so that the security and the privacy of the group session are ensured.

Description

Method for constructing group session, client and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet application, in particular to a method for constructing a group session, a client and a storage medium.
Background
Most of the current instant communications adopt a Client/Server (Client/Server) structure, and a message broadcasting type is generally adopted as a communication method for group chat, and the directionality of the communication method is unclear, so that information transmission with the target directionality, such as QQ or WeChat, cannot be realized.
For secure communication, end-to-end encryption occurs, which encrypts and decrypts PDUs transmitted in the source node and the destination node, so that the security of the messages is not affected by the unreliability of the intermediate nodes.
The peer-to-peer network architecture is more secure and more specifically directed, e.g., peer-to-peer, than the traditional C/S architecture. Each node (Peer) of a Peer-to-Peer network (Peer-to-Peer is abbreviated as "p 2 p") mostly has the functions of three aspects of information consumers, information providers and information communication. From a computing perspective, P2P breaks the traditional Client/Server (C/S) model, and the status of each node in the network is peer-to-peer. Each node serves as a server and provides services for other nodes, and meanwhile, the nodes can enjoy the services provided by other nodes.
The inventors found that at least the following problems exist in the related art: at present, the security of group session construction is insufficient based on the instant messaging service of a P2P network, and the requirement of private group chat cannot be met; while the Telegram software of another end-to-end encrypted communication can provide private chat, but the software cannot implement group chat functionality.
Disclosure of Invention
The embodiment of the invention aims to provide a method for constructing a group session, a client and a storage medium, so that an end-to-end-based instant messaging application can quickly construct a group account number to perform the group session, the security of the group session is ensured, and the privacy of a user is protected.
In order to solve the above technical problem, an embodiment of the present invention provides a method for establishing a group session, which is applied to a client where a first account is located, where the first account is an account corresponding to a group administrator in an instant messaging application, and the method includes: detecting a group session creation request of a first account, and creating a new group account; respectively sending the group session construction information to a second account corresponding to each new group member, wherein the group session construction information comprises: and logging information of the new group account is provided for the client side of each second account to log in the new group account and perform group conversation, wherein the instant messaging application is based on end-to-end encrypted communication.
The embodiment of the invention provides a method for constructing a group session, which is applied to a client where a second account is located, wherein the second account is an account corresponding to a group member in instant messaging application, and the method comprises the following steps: receiving group session construction information sent by a client where a first account is located, wherein the first account is an account corresponding to a group administrator in instant messaging application, and the group session construction information comprises: login information of the new group account; logging in a new group account and conducting a group session, wherein the instant messaging application is based on end-to-end encrypted communication.
An embodiment of the present invention further provides a client, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executable by the at least one processor to enable the at least one processor to perform a method for constructing a group session for a client with a first account or to enable the at least one processor to perform a method for constructing a group session for a client with a second account.
The embodiment of the invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements a method for constructing a group session by applying to a client where a first account is located, or implements a method for constructing a group session by applying to a client where a second account is located.
Compared with the prior art, the instant messaging application is based on end-to-end encryption communication, so that the communication safety between each account in the instant messaging application is ensured; the method comprises the steps of detecting a group session establishment request of a first account, establishing a new group account, sending the new group account to each second account, allowing a client where each second account is located to log in the new group account to perform group session, allowing the client where each account is located to log in the same new group account, and receiving a message sent to the new group account, so that the group session function is realized.
In addition, the group session construction information further includes: and a contact list of the new group account is used for the client of each second account to add the contact list for the new group account again, and the contact list of the new group account comprises the information of the first account and the information of each second account. After the client in which the second account is located logs in the new group account, the contact list is not stored in the new group account, and by adding contacts again, the contact list in the new group account logged by each client is the same, so that a user can conveniently and quickly know a message sender in the new group account, and the method for establishing the group session can be also suitable for a P2P network, and the flexibility and the application range of the method for establishing the group session are improved.
In addition, before sending the group session construction information to the second account corresponding to each new group member, the method further includes: acquiring information of a first account; acquiring information of a second account corresponding to each new group member from a contact list of the first account, or acquiring information of a second account corresponding to each new group member from a contact list of an old group account created last time; and adding the acquired information of each second account and the acquired information of the first account to a contact list of the new group account. Two ways of obtaining the information of each second account are provided, so that the information of the second account can be flexibly obtained.
In addition, the sending of the group session construction information to the second account corresponding to each group member includes: and detecting a distribution request of the first account, and respectively sending group session construction information through a communication channel between the first account and each second account. Because the first account stores the information of each second account, the group session construction information can be respectively sent through a communication channel between the first account and each second account, so that the group session construction information can be quickly distributed to the new group account.
In addition, the group session construction information further includes: information of old group accounts; sending the group session construction information to the second account corresponding to each new group member respectively, specifically comprising: and detecting a distribution request of the old group account, and respectively sending group session construction information through a communication channel between the old group account and each second account. The information of the second account in the old group account is not necessarily in the contact list in the first account, so that when the old group account is in the presence, the group session construction information can be respectively sent through a communication channel between the old group account and each second account, the new group account can be ensured to be distributed to the second account corresponding to each new group member, and the condition of missed distribution is avoided.
In addition, after the group session construction information is respectively sent to the second account corresponding to each new group member, the method further includes: the old group account is deleted from the instant messaging application. And after the new group account is sent to the second account corresponding to each new group member, the old group account is deleted, so that the memory is saved, meanwhile, the old group account is deleted, the group accounts containing the same members are reduced, and the management of each new group account is facilitated.
In addition, after the group session construction information is respectively sent to the second account corresponding to each new group member, the method for constructing the group session further includes: detecting a group member change request of a new group account, and changing a contact list in the new group account; acquiring information of each second account in the changed contact list; sending the group member change information to each changed second account through the new group account so that the client of each second account updates the contact list in the new group account, wherein the group member change information comprises: a list of contacts in the changed new group account. After the contact list in the new group account is changed by the client of the first account, the changed contact list is sent to the client of each second account, the contact list of each new group account is updated by the client of each second account, and the contact list of the new group account in each client is ensured to be consistent.
In addition, detecting a group member change request of the group account specifically includes: determining to send login information of the new group account to accounts of invited members; or determining that invitation information sent by a client where any second account is located is successfully verified, wherein the invitation information comprises information of invited member accounts; or receiving exit information for exiting the new group account sent by the client where any second account is located. The method comprises the steps of determining to send login information of a new group account to an account of an invited member, or determining to successfully verify invitation information sent by a client where any second account is located, or receiving quit information sent by the client where any second account is located and quitting the new group account, wherein the detection mode is simple and flexible.
In addition, the group session construction information and the group member change information each further include: and the identity authentication information of the group administrator is used for the client of each second account to authenticate the group session construction information and the source of the group member change information. The accuracy and the safety of the constructed new group account or the change information of the group members can be ensured for the identity authentication information of the group administrator.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a detailed flowchart of a method for constructing a group session according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a specific implementation of setting a new group account according to a first embodiment of the present invention;
fig. 3 is a detailed flowchart of a method for constructing a group session according to a second embodiment of the present invention;
fig. 4 is a detailed flowchart of a method for constructing a group session according to a third embodiment of the present invention;
fig. 5 is a detailed flowchart of a method for constructing a group session according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a client according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
The inventor finds out related end-to-end encrypted instant messaging application, realizes encrypted communication among all accounts, and ensures the safety of messages. However, it is also because the instant messaging application is based on end-to-end encrypted communication, which makes it difficult to support the group chat function.
A first embodiment of the present invention relates to a method of constructing a group session. The application is applied to a client side where a first account is located, the first account is an account corresponding to a group administrator in instant messaging application, and the instant messaging application is based on end-to-end encrypted communication. The end-to-end encrypted communication can be realized based on a P2P network and also can be realized based on a C/S network. The client may be an electronic device such as a mobile phone and a computer, and a specific flow of the method for constructing the group session is shown in fig. 1.
Step 101: and detecting a group session creation request of the first account, and creating a new group account.
Specifically, the instant messaging application can realize stable communication between two accounts, and the first account is an account corresponding to a group administrator in the instant messaging application. The instant messaging application can support multiple devices to log in the same account at the same time. And detecting a group session creation request of the first account by the client of the first account, and creating a new group account, wherein the process of creating the new group account is not repeated.
After the new group account is created, the client where the first account is located can log in the new group account and set the new group account. For example, after step 101 is performed, the substeps shown in fig. 2 may be performed to set a new group account.
Substep S11: and acquiring the information of the first account.
Specifically, the client where the first account is located may obtain information of the first account, where the information of the first account includes: the identification information of the first account, for example, the identification information of the first account is "12345A", and then the 12345A is used as the information of the first account.
Substep S12: and acquiring the information of the second account corresponding to each new group member from the contact list of the first account, or acquiring the information of the second account corresponding to each new group member from the contact list of the old group account created last time.
Specifically, if the client where the first account is located creates a new group for the first time, and the information of the second account corresponding to the new group member is stored in the contact list of the first account, the information of the second account corresponding to each new group member may be obtained from the contact list of the first account.
If the client where the first account is located specifies the second account corresponding to each new group member in the new group account based on the contact list in the old group account created last time, the information of the second accounts corresponding to some old group members in the old group account is not necessarily in the contact list of the first account, and in order to ensure that the new group account is sent to the second account corresponding to each new group member, the information of the second account corresponding to each new group member is obtained from the contact list of the old group account created last time, and the information of the second accounts corresponding to the new group members is determined. For example, the contact list of the last created old group account includes account a, account B, account C, and account D; the group members of the new group account are designated to include account a and account B, and it can be seen that the contact list of the first account does not have the information of account a, so that the information of account a and the information of account B are obtained from the contact list of the old group account created last time.
Substep S13: and adding the acquired information of each second account and the acquired information of the first account to a contact list of the new group account.
Adding the information of each second account and the information of the first account into a contact list of a new group account so that the new group account can communicate with the first account and each second account; in addition, the new group account can determine the source of the received message according to the contact list, so that the user can conveniently acquire the identity of the message source.
Step 102: respectively sending the group session construction information to a second account corresponding to each new group member, wherein the group session construction information comprises: and logging information of the new group account is provided for the client side of each second account to log in the new group account and perform group conversation, wherein the instant messaging application is based on end-to-end encrypted communication.
Specifically, the group session information includes: and the login information of the new group of accounts is used for the client side of each second account to log in the new group of accounts and perform group conversation. In one example, a distribution request of a first account is detected, and group session construction information is sent through a communication channel between the first account and each second account. If the second account corresponding to each new group member exists in the contact list of the first account, a distribution request can be initiated by the first account; and detecting a distribution request of the first account, and respectively sending group session construction information through a communication channel between the first account and each second account.
In another example, the group session construction information further includes: information of old group accounts; the process of sending the group session construction information to the second account corresponding to each new group member may also be: and detecting a distribution request of the old group account, and respectively sending group session construction information through a communication channel between the old group account and each second account.
Specifically, the information of the second account corresponding to each old group member in the old group account is not necessarily stored in the contact list in the first account, so that when the old group account exists, the group session construction information is respectively sent through a communication channel between the old group account and each second account, and the new group account can be guaranteed to be distributed to the second account corresponding to each new group member.
It is worth mentioning that after step 102, the old group account may be deleted from the instant messaging application.
In one example, the group session construction information further includes: and a contact list of the new group account is used for the client of each second account to add the contact list for the new group account again, and the contact list of the new group account comprises the information of the first account and the information of each second account.
Specifically, the group session construction information further includes a contact list of the new group account, and since the instant messaging application may be based on P2P network communication, the P2P network communication does not pass through the server, and when the client of the second account logs in the new group account for the first time, the contact list in the new group account is empty. To ensure that the contact list of the new group account in each client is the same, the group session information also includes the contact list of the new group account. Each client side of the second account receives the group session construction information, analyzes the group session construction information to obtain the login information of the new group account and the contact list of the new group account, the client side where the second account is located logs in the new group account according to the login information of the new group account, and adds the information of the first account and the information of each second account in the contact list of the new group account again, the group session is completed and the second account may have a group session with other accounts, at which point the first account may send a message to the new group account, meanwhile, as the client of each second account logs in the new group account, the new group account of the client of each second account receives the message sent by the client of the first account, so that group conversation can be carried out. Similarly, the client of the first account may also receive the message sent by each second account to the new group of accounts.
Compared with the prior art, the instant messaging application is based on end-to-end encryption communication, so that the communication safety between each account in the instant messaging application is ensured; the method comprises the steps of detecting a group session establishment request of a first account, establishing a new group account, sending the new group account to each second account, allowing a client where each second account is located to log in the new group account to perform group session, allowing the client where each account is located to log in the same new group account, and receiving a message sent to the new group account, so that the group session function is realized.
A second embodiment of the present invention relates to a method of constructing a group session. The second embodiment is a further improvement of the first embodiment, and the main improvements are as follows: in a second embodiment of the present invention, a group member change request of a new group account is detected, and the method for constructing a group session further includes changing a contact list of the new group account. The specific flow of the method for constructing a group session is shown in fig. 3.
Step 201: and detecting a group session creation request of the first account, and creating a new group account.
This step is similar to step 101 in the first embodiment, and will not be described here.
Step 202: and respectively sending the group session construction information to the second account corresponding to each new group member.
This step is similar to step 102 in the first embodiment.
Step 203: and detecting a group member change request of the new group account, and changing a contact list in the new group account.
Specifically, after step 202, a group session may be performed using the new group account, in addition, the client where the first account is located may also invite a new group member to perform the group session, or any new group member may invite another invited member to perform the group session; any client where the second account is located can quit the new group of accounts. When a client where an invited member account is located logs in the new group account or a client where the second account is located exits the new group account, the contact list of the new group account is changed, and therefore, the method for detecting the group member change request of the new group account specifically includes the following steps: determining login information of a new group of accounts to be sent to accounts of invited members; or determining that invitation information sent by a client where any second account is located is successfully verified, wherein the invitation information comprises information of invited member accounts; or receiving exit information for exiting the new group account sent by the client where any second account is located.
The first condition is as follows: and if the client side of the first account number invites the invited member account numbers to enter the group chat.
Specifically, if it is determined that the login information of the new group account is sent to the account of the invited member, it may be determined that the information of the account of the invited member is added to the contact list of the new group account when a group member change request is detected.
Case two: and if the client side where any second account is located invites the invited member accounts to enter the group chat.
Specifically, a client of any second account sends information of a new group of accounts to invited member accounts, the client of the second account sends invitation information to the new group of accounts at the same time, and the invitation information comprises the information of the invited member accounts; the client side where the first account is located receives the invitation information, the user of the first account can verify the invitation information, the client side where the first account is located can also verify the invitation information, the user inputs successful verification information to the client side where the first account is located after verification is successful, the client side where the first account is located determines that the invitation information is successfully verified, then a group member change request can be determined to be detected, the account number of an invited member is added into a contact list of a new group account number, and meanwhile login information of the new group account number can be sent to the invited group account number through the new group account number. It can be understood that, if the user of the first account fails to verify the invitation information, the user inputs information that the verification fails to the client where the first account is located, and determines that a group member change request of a new group account is not detected, and ends the process without performing subsequent operations.
Case three: and if the client of any second account is to quit the new group of accounts.
Specifically, the logout information may be sent to the new group account, and then the client of the second account deletes the new group account. And if the client of the first account receives the exit information, the client can determine that the information of the second account is deleted from the contact list of the new group account when the group member change request is detected.
Step 204: and acquiring the information of each second account in the changed contact list.
Step 205: sending the group member change information to each changed second account through the new group account so that the client of each second account updates the contact list in the new group account, wherein the group member change information comprises: a list of contacts in the changed new group account.
Specifically, similar to the distribution of the group session construction information in the first embodiment, the group member change information is sent to each changed second account through a channel between the new group account and each changed second account. And each client of the second account receives the group member change information and respectively changes the contact list in the new group account.
In one example, the group session construction information and the group member change information each further include: and the identity authentication information of the group administrator is used for the client of each second account to authenticate the group session construction information and the source of the group member change information.
Specifically, the authentication information of the group administrator may be a private key of the first account, the client of each second account has a public key of the first account, if the private key and the public key are successfully paired, it is indicated that the group session construction information and the group member change information come from the client of the first account, the client of each second account may perform a group session according to the group session construction information, and change a contact list of each new group account according to the group member change information. If the private key and the public key are failed to be paired, the group session construction information is not from the client side where the first account number is located, and the client side where each second account number is located does not log in the new group account number; and if the private key and the public key in the group member change information are unsuccessfully matched, the client side where each second account is located does not update the contact list of the respective updated group account.
It is worth mentioning that the accuracy and the safety of the constructed new group account or the change information of the group members can be ensured for the authentication information of the group administrator.
In the method for establishing a group session provided by the embodiment, after the client of the first account changes the contact list in the new group account, the changed contact list is sent to the client of each second account, and the client of each second account updates the contact list of the new group account, so that the contact list of the new group account in each client is ensured to be consistent.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to a method for constructing a group session, which is applied to a client where a second account is located, where the second account is an account corresponding to a group member in an instant messaging application, and a specific flow of the method for constructing a group session is shown in fig. 4.
Step 301: receiving group session construction information sent by a client where a first account is located, wherein the first account is an account corresponding to a group administrator in instant messaging application, and the group session construction information comprises: login information of the new group account.
Specifically, the instant messaging application is based on end-to-end encrypted communication, the end-to-end encrypted communication can ensure the security of communication between two accounts, and the end-to-end encrypted communication can be realized based on a P2P network or a C/S network. The client side of the first account detects a group session construction request of the first account, creates new group accounts, and sends group session construction information to second accounts corresponding to each new group member respectively, wherein the group session construction information comprises login information of the new group accounts. And aiming at the client side where the second account corresponding to each new group member is located, the following operations are carried out: and receiving group session construction information sent by the client side where the first account is located.
Step 302: logging in a new group account and conducting a group session, wherein the instant messaging application is based on end-to-end encrypted communication.
The group session construction information further includes: and the contact list of the new group account comprises the information of the first account and the information of each second account. Before the client side where the first account number is located sends the group session construction information to the client side where the second account number is located, the information of the first account number and the information of each second account number are added to a contact list of the new group account number.
In one example, the specific process of logging in a new group account and performing a group session may be: acquiring login information of a new group of accounts, information of each second account and information of a first account in a contact list of the new group of accounts; logging in the new group account according to the login information of the new group account, wherein a contact list of the new group account which is logged in for the first time is empty; and adding the acquired information of the first account and the acquired information of each second account to a contact list of the new group account again.
Specifically, when the client of the second account logs in the new group account for the first time, the contact list of the new group account is empty, and the acquired information of each second account and the acquired information of the first account need to be added to the contact list of the new group account again. After the addition, the second account may send a message to the new group account for the group session.
In one example, after receiving group session construction information sent by a client where a first account is located, judging whether the group session construction information includes information of an old group account created last time, and if so, acquiring the information of the old group account; the old group account is deleted from the instant messaging application.
Specifically, the information of the old group account is deleted after the client in which the second account is located logs in the new group account, or before the client logs in the new group account. Further, before deleting the old group account from the instant messaging application, it may be further determined whether the sending end of the group session construction information is the client where the first account is located, if so, it is determined that the old group account is deleted from the instant messaging application, and if not, it is determined that the new group account is deleted from the instant messaging application.
Because the group session construction information is sent by the client side where the other second account number is located, in order to avoid that new group members enter wrong new groups, whether the source of the group session construction information is the client side where the first account number is located can be judged, and if yes, subsequent login and group session are carried out.
It is to be understood that this embodiment is an example of a client in which the second account is located, and the embodiment may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
A fourth embodiment of the present invention relates to a method of constructing a group session. The fourth embodiment is a further improvement of the third embodiment, and the main improvements are as follows: in the fourth embodiment of the present invention, the method further includes inviting the client where the invited member account is located to log in the new group account. The specific flow of the method for constructing a group session is shown in fig. 5.
Step 401: and receiving group session construction information sent by a client of the first account.
Substantially the same as step 301 in the third embodiment, and will not be described herein again.
Step 402: and logging in a new group account and carrying out a group session.
This step is substantially the same as step 302 in the third embodiment, and will not be described herein.
Step 403: and acquiring the information of the invited member account from the contact list of the second account.
The client of the second account may also invite other invited members, for example, information of the invited member account is selected from a contact list of the second account, and the information of the invited member account, for example, an ID of the invited member account, is read.
Step 404: and sending information of the new group account to the invited member account, so that the client of the invited member account adds the new group account to a contact list of the invited member account.
Specifically, mark information of a new group account is sent to an invited member account, a client where the invited member account is located receives the information of the new group account, and the information of the new group account is added to the invited member account to form a contact list.
Step 405: and sending invitation information to the new group account, wherein the invitation information comprises the information of the invited member account, and the invitation information is verified by the client where the first account is located.
Specifically, the second account sends invitation information to a new group of accounts, the client of the first account obtains the invitation information, the user can verify the invitation information, or the client of the first account verifies the invitation information, the verification can be to judge whether the invited member conforms to the group session condition, for example, if the account registration time of the invited member is within the preset time, the verification is passed. Of course, the determination may be made by other conditions, which are not listed here. After the client of the first account determines that the invitation information is successfully verified, the client of the first account changes a contact list in the new group of accounts and acquires information of each second account in the changed contact list; sending the group member change information to each changed second account through the new group account so that the client of each second account updates the contact list in the new group account, wherein the group member change information comprises: a list of contacts in the changed new group account.
Meanwhile, because the new group account is added as a contact to the invited member account, a contact list in the changed new group account can be obtained, the client where the first account is located can send login information of the new group account to the invited member account by using the new group account, the client where the second account is located can send the login information of the new group account to the invited member account, and the client where the invited member account is located logs in the new group account and newly adds the received contact list.
It is worth mentioning that after the step 402, the following steps can be further performed: sending quitting information for quitting the new group account to the new group account; the new group account is deleted from the instant messaging application. The client side of the first account receives the exit information, updates the contact list of the new group of accounts, and acquires the information of each second account in the changed contact list; sending the group member change information to each changed second account through the new group account so that the client of each second account updates the contact list in the new group account, wherein the group member change information comprises: a list of contacts in the changed new group account.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
A fifth embodiment of the present invention relates to a client, the specific structure of which is shown in fig. 6, and the client includes: at least one processor 601; and a memory 602 communicatively coupled to the at least one processor 601; the memory 602 stores instructions executable by the at least one processor 601, and the instructions are executed by the at least one processor 601 to enable the at least one processor 601 to execute the method of constructing a group session in the first embodiment or the second embodiment, or to enable the at least one processor to execute the method of constructing a group session in the third embodiment or the fourth embodiment.
Where the memory 602 and the processor 601 are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses linking one or more of the various circuits of the processor 601 and the memory 602 together. The bus may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor 601 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method of constructing a group session of the first or second embodiment or the method of constructing a group session of the third or fourth embodiment.
Those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (17)

1. A method for constructing a group session is applied to a client where a first account is located, wherein the first account is an account corresponding to a group administrator in instant messaging application, and the method comprises the following steps:
detecting a group session creation request of a first account, and creating a new group account;
respectively sending group session construction information to a second account corresponding to each new group member, wherein the group session construction information comprises: and the login information of the new group account is used for each client side where the second account is located to log in the new group account and carry out group conversation, wherein the instant messaging application is based on end-to-end encrypted communication.
2. The method of claim 1, wherein the group session construction information further comprises: and a contact list of the new group account, which is used for the client where each second account is located to add the contact list to the new group account again, wherein the contact list of the new group account comprises the information of the first account and the information of each second account.
3. The method according to claim 2, wherein before sending the group session construction information to the second account corresponding to each new group member, the method further comprises:
acquiring information of the first account;
acquiring information of a second account corresponding to each new group member from a contact list of the first account, or acquiring information of a second account corresponding to each new group member from a contact list of an old group account created last time;
and adding the acquired information of each second account and the acquired information of the first account to a contact list of the new group account.
4. The method for constructing a group session according to any one of claims 1 to 3, wherein the sending the group session construction information to the second account corresponding to each group member respectively specifically includes:
and detecting a distribution request of the first account, and respectively sending the group session construction information through a communication channel between the first account and each second account.
5. The method of claim 3, wherein the group session construction information further comprises: information of the old group account;
the sending the group session construction information to the second account corresponding to each new group member respectively specifically includes:
and detecting a distribution request of the old group account, and respectively sending the group session construction information through a communication channel between the old group account and each second account.
6. The method of claim 5, wherein after the sending the group session construction information to the second account corresponding to each new group member, the method further comprises:
deleting the old group account from the instant messaging application.
7. The method according to claim 4, wherein after sending the group session construction information to the second account corresponding to each new group member, the method further comprises:
detecting a group member change request of the new group account, and changing a contact list in the new group account;
acquiring the information of each second account in the changed contact list;
sending group member change information to each changed second account through the new group account so that a client where each second account is located updates the contact list in the new group account, wherein the group member change information comprises: and the changed contact list in the new group account.
8. The method for constructing a group session according to claim 7, wherein the detecting a group member change request of a group account specifically includes:
determining to send login information of the new group account to accounts of invited members;
alternatively, the first and second electrodes may be,
determining that invitation information sent by a client where any second account is located is successfully verified, wherein the invitation information comprises information of invited member accounts;
alternatively, the first and second electrodes may be,
and receiving exit information for exiting the new group account sent by the client side where any second account is located.
9. The method of claim 7, wherein the group session construction information and the group member change information each further comprise: and the identity authentication information of the group administrator is used for authenticating the source of the group session construction information and the group member change information by the client of each second account.
10. A method for constructing a group session is applied to a client where a second account is located, wherein the second account is an account corresponding to a group member in instant messaging application, and the method comprises the following steps:
receiving group session construction information sent by a client where a first account is located, wherein the first account is an account corresponding to a group administrator in the instant messaging application, and the group session construction information comprises: login information of the new group account;
logging in the new group account and carrying out a group session, wherein the instant messaging application is based on end-to-end encrypted communication.
11. The method of claim 10, wherein the group session construction information further comprises: a contact list of the new group account, wherein the contact list of the new group account includes information of the first account and information of each second account;
the logging in the new group account and performing a group session specifically includes:
acquiring login information of the new group account, information of each second account and information of a first account in a contact list of the new group account;
logging in the new group account according to the login information of the new group account, wherein a contact list of the new group account which is logged in for the first time is empty;
and adding the acquired information of the first account and the acquired information of each second account to a contact list of the new group account again.
12. The method according to claim 10, wherein after receiving the group session construction information sent by the client of the first account, the method further comprises:
judging whether the group session construction information comprises information of an old group account established last time, and if so, acquiring the information of the old group account; deleting the old group account from the instant messaging application.
13. The method of constructing a group session according to claim 12, further comprising, prior to deleting the old group account number from the instant messaging application:
and judging whether a sending end of the group session construction information is a client side where the first account is located, if so, determining to delete the old group account from the instant messaging application, and if not, determining to delete the new group account from the instant messaging application.
14. The method of constructing a group session according to claim 10, wherein after logging into the new group account, the method of constructing a group session further comprises:
acquiring information of invited member accounts from the contact list of the second account;
sending the information of the new group account to the invited member account, so that the client where the invited member account is located can add the information of the new group account to a contact list of the invited member account;
and sending invitation information to the new group account, wherein the invitation information comprises the information of the invited member account, and the invitation information is verified by the client where the first account is located.
15. The method of constructing a group session according to claim 10, wherein, after logging in the new group account,
the method for establishing the group session further comprises the following steps:
sending quitting information for quitting the new group account to the new group account;
deleting the new group account from the instant messaging application.
16. A client, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of constructing a group session according to any one of claims 1 to 9 or to enable the at least one processor to perform a method of constructing a group session according to any one of claims 10 to 15.
17. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of constructing a group session according to any one of claims 1 to 9, or carries out the method of constructing a group session according to any one of claims 10 to 15.
CN201911235689.5A 2019-12-05 2019-12-05 Method for constructing group session, client and storage medium Pending CN110971426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911235689.5A CN110971426A (en) 2019-12-05 2019-12-05 Method for constructing group session, client and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911235689.5A CN110971426A (en) 2019-12-05 2019-12-05 Method for constructing group session, client and storage medium

Publications (1)

Publication Number Publication Date
CN110971426A true CN110971426A (en) 2020-04-07

Family

ID=70033068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911235689.5A Pending CN110971426A (en) 2019-12-05 2019-12-05 Method for constructing group session, client and storage medium

Country Status (1)

Country Link
CN (1) CN110971426A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113746783A (en) * 2020-05-28 2021-12-03 腾讯科技(深圳)有限公司 Group chat permission control method, team instant messaging application and background server
CN114979049A (en) * 2021-02-19 2022-08-30 腾讯科技(深圳)有限公司 Instant communication message display method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120054282A1 (en) * 2010-08-27 2012-03-01 Industrial Technology Research Institute Architecture and method for hybrid peer to peer/client-server data transmission
CN104219051A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 In-group message communication method and system
CN109314638A (en) * 2016-07-01 2019-02-05 华为技术有限公司 Cipher key configuration and security strategy determine method, apparatus
CN110460453A (en) * 2019-08-20 2019-11-15 深圳市中仁信息科技有限公司 A kind of group chat implementation method based on P2P instant messaging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120054282A1 (en) * 2010-08-27 2012-03-01 Industrial Technology Research Institute Architecture and method for hybrid peer to peer/client-server data transmission
CN104219051A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 In-group message communication method and system
CN109314638A (en) * 2016-07-01 2019-02-05 华为技术有限公司 Cipher key configuration and security strategy determine method, apparatus
CN110460453A (en) * 2019-08-20 2019-11-15 深圳市中仁信息科技有限公司 A kind of group chat implementation method based on P2P instant messaging

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113746783A (en) * 2020-05-28 2021-12-03 腾讯科技(深圳)有限公司 Group chat permission control method, team instant messaging application and background server
CN113746783B (en) * 2020-05-28 2023-06-20 腾讯科技(深圳)有限公司 Group chat authority control method, team instant messaging application and background server
CN114979049A (en) * 2021-02-19 2022-08-30 腾讯科技(深圳)有限公司 Instant communication message display method, device, equipment and storage medium
CN114979049B (en) * 2021-02-19 2023-09-22 腾讯科技(深圳)有限公司 Instant messaging message display method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106233637B (en) System and method for short-range wireless data transmission
EP2209253B1 (en) A method, system, server and terminal for processing an authentication
EP2326047B1 (en) Method and system for terminal configuration and management
CN108632056B (en) Intelligent equipment network configuration method and system
US7734737B2 (en) Device management with configuration information
CN103503408A (en) System and method for providing access credentials
US9813250B2 (en) Combined authentication and encryption
CN105429979A (en) Cross-platform user certificating method and intelligent router, Internet surfing system
US20130282838A1 (en) Group sms messaging
EP2640045A1 (en) Method and System for Transferring Mobile Device Contact Information
CN108429682A (en) A kind of optimization method and system of network transmission link
CN110971426A (en) Method for constructing group session, client and storage medium
CN105722072A (en) Business authorization method, device, system and router
CN112040484A (en) Password updating method and device, storage medium and electronic device
US10959094B2 (en) Method of replacing at least one authentication parameter for authenticating a security element and corresponding security element
KR20090100009A (en) System for registering profile information of terminal
CN114222290B (en) Communication method, device, equipment and storage medium
CN110120907B (en) Proposed group-based IPSec VPN tunnel communication method and device
CN113573384A (en) Terminal, terminal network distribution method and device, and storage medium
CN106162645A (en) A kind of Mobile solution quickly reconnect method for authenticating and system
KR101730404B1 (en) Method of managing network route and network entity enabling the method
WO2022041923A1 (en) Network slice connection method, terminal, and computer-readable storage medium
CN114501473B (en) Mesh network distribution method, electronic equipment and computer readable storage medium
CN111367477B (en) 3D printing device, connection method, data processing device, control method and medium
CN115580444A (en) Control operation execution method and device, storage medium and electronic 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
TA01 Transfer of patent application right

Effective date of registration: 20210207

Address after: 200245 2nd floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Applicant after: Dalu Robot Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: CLOUDMINDS (SHENZHEN) ROBOTICS SYSTEMS Co.,Ltd.

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 200245 Building 8, No. 207, Zhongqing Road, Minhang District, Shanghai

Applicant after: Dayu robot Co.,Ltd.

Address before: 200245 2nd floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Applicant before: Dalu Robot Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200407

RJ01 Rejection of invention patent application after publication