CN113965614A - Session creation method and device and electronic equipment - Google Patents
Session creation method and device and electronic equipment Download PDFInfo
- Publication number
- CN113965614A CN113965614A CN202111189788.1A CN202111189788A CN113965614A CN 113965614 A CN113965614 A CN 113965614A CN 202111189788 A CN202111189788 A CN 202111189788A CN 113965614 A CN113965614 A CN 113965614A
- Authority
- CN
- China
- Prior art keywords
- session
- user
- creating
- user name
- name
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000001514 detection method Methods 0.000 claims abstract description 46
- 230000004044 response Effects 0.000 claims description 7
- 238000012217 deletion Methods 0.000 claims description 2
- 230000037430 deletion Effects 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a session creating method and device and electronic equipment, and belongs to the technical field of information. The method comprises the following steps: detecting a session message in a session frame of a first session, wherein the detection comprises identification detection and content detection; in case the session message contains an identification and a user name, a second session is created based on the user name and the user contained in the first session. The session can be quickly and conveniently established.
Description
Technical Field
The application belongs to the technical field of information, and particularly relates to a session creation method, a session creation device and electronic equipment.
Background
With the increasing development of information technology, people can communicate at any time and any place through an application program installed in electronic equipment, and multiple people can communicate in the same session in a group chat mode.
When a user establishes a session with a new user in a current session, the prior art generally invites the new user to join through a group chat creating function of an application program, and creates a group chat interface different from a chat interface of the current session to create a group chat. Or exiting the current session and then selecting to create a chat session with the new user. Although the above method can create the session, the steps are cumbersome, and the efficiency of creating the session by the user is reduced.
Disclosure of Invention
The embodiment of the application aims to provide a session creating method, a session creating device and electronic equipment, and the problem that existing session creating steps are complicated can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a session creation method, where the method includes:
detecting a session message in a session frame of a first session, wherein the detection comprises identification detection and content detection; in case the session message contains an identification and a user name, a second session is created based on the user name and the user contained in the first session.
In a second aspect, an embodiment of the present application provides a session creating apparatus, including:
the detection module is used for detecting the session message in the session frame of the first session, wherein the detection comprises identification detection and content detection;
and the creating module creates a second session based on the user name and the user contained in the first session under the condition that the session message contains the identification and the user name.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, by detecting the session message in the session frame of the first session, wherein the detection comprises identification detection and content detection, whether the session message contains an identification and a user name is determined; and under the condition that the session message contains the identifier and the user name, creating a second session based on the user name and the user contained in the first session, thereby quickly and conveniently creating the session of the user corresponding to the user name based on the identifier and the user name in the session message, simplifying the complicated steps of creating the user session chat, and greatly improving the efficiency of the user session and the communication efficiency of the user.
In addition, after the second session is created, by copying the preset chat information in the first session to the second session, the problems or knowledge points involved in the first session can be quickly transmitted to the user in the second session, the user can conveniently check the chat information of the previous session, the tedious steps of copying, selecting and forwarding the session information in the first session to the corresponding user can be reduced, and the communication efficiency of the user is improved.
Drawings
Fig. 1 is a flowchart illustrating a chat session creating method according to an embodiment of the present application.
Fig. 2 to 4 are schematic user interface diagrams of a session creation method according to a first embodiment of the present application.
Fig. 5 to 6 are schematic user interface diagrams of a session creation method according to a second embodiment of the present application.
Fig. 7 is an exemplary flowchart of a session creation method according to the first embodiment of the present application.
Fig. 8 is an exemplary flowchart of a session creation method according to a second embodiment of the present application.
Fig. 9 is a block diagram showing the structure of a session creation apparatus according to an embodiment of the present application.
Fig. 10 is a block diagram showing a configuration of an electronic device according to an embodiment of the present application.
Fig. 11 is a hardware structure diagram of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The method, the apparatus, and the electronic device for creating a chat session provided in the embodiments of the present application are described in detail with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In order to solve the problems in the prior art, an embodiment of the present application provides a session creation method, which may be applied to terminal devices including mobile electronic devices and non-mobile electronic devices.
Please refer to fig. 1, which is a flowchart illustrating a session creation method according to an embodiment of the present application. As shown in fig. 1, the chat session creation method of the embodiment of the present application includes the following steps 12 to 14.
And step 12, detecting the session message in the session frame of the first session, wherein the detection comprises identification detection and content detection.
The first session may be a session involving at least two users including the current user, assuming that the current user is a user of the local end terminal device.
The current user can create a conversation message by entering text in a conversation box under a first conversation chat interface corresponding to the chat conversation APP on the local terminal device.
In one embodiment, a currently entered conversation message in a conversation box of a first conversation may be detected in response to an input operation of a current user entering a text of the conversation message in the conversation box of the first conversation. That is, as long as the user makes an input in the conversation box, the conversation message detection is performed.
In one embodiment, the detection of the session message in the session box of the first session may be performed in response to a sending operation of the current user on the session message in the session box of the first session.
And when the current user inputs a session message in the session box, completes and clicks a sending button of the chat interface, receiving the sending operation of the current user. Thus, in step 12, the dialog message entered in the current dialog box may be automatically detected in response to the sending operation.
In the embodiment of the present application, the detecting includes two kinds of detection, that is, detecting whether a session message in a session frame of a first session includes an identifier, for example, an identifier for creating a session; and secondly, detecting whether the session message in the session frame of the first session contains the user name.
The identification may be represented using an alphabetic or symbolic identification, such as + @, & @ or C @ and the like, for indicating that a new session needs to be created again under the first session. The user name may be a registered name, a nickname, a cell phone number, a user ID, etc. of the user in the chat session APP.
Optionally, creating a second session based on the user name and the user included in the first session includes: and creating a second session comprising the first user corresponding to the user name and a second user corresponding to the first session.
In a first embodiment of the present application, the second user may be all users involved in the first session. And creating a second session based on the user name and the user contained in the first session, namely creating a group chat session of the user corresponding to the user name detected in the newly-added session message in the first session.
In this embodiment, a new session is created that contains the first user corresponding to the user name and all the second users involved in the first session.
For example, if the current user a and an opposite user B who input the session message in the session box are included in the first session, the created new session, that is, the second session, includes the user a, the user B and the first user C corresponding to the user name, that is, the group chat session. If the first session includes user a with multiple peer users B and D, the new session created contains a group chat session of users A, B, C and D.
Of course, the number of the user names in the session message may be multiple, and the corresponding users may be multiple users, so that the users corresponding to multiple user names may be added to the newly created second session.
If only the session message in the session box of the first session is detected to contain the user name, or only the session message is detected to contain the identifier, no new session is created.
If the set identifier for creating the session is "+ @", after the user inputs + @ and the keyword "party" of the user name in the session box of the first session, as shown in fig. 2, the current chat interface of the first session may pop up a user list corresponding to the user name for the current user to select. And records the selection status of the current user, after which the illustrated user name "party" @ "may be appended to the session creation identification" + @ ", for example.
According to the user name selected by the current user, a reference user list corresponding to the user name can be created at the same time, and the user name selected at present is added into the reference user list. Then, the variable corresponding to the session creation identifier is created and saved as True.
If the current user deletes one or more user names referenced by the session creation identification in the session message from the session box, the user name is correspondingly deleted from the list of referenced users. If all the user names in the reference user list are deleted, namely the reference user list is empty, the variable of the session creation identifier is changed to False. If the current user deletes the session creation identification in the session message from the session frame, the variable of the session creation identification is changed to False correspondingly.
When receiving a sending operation of a user so as to trigger a session message sending instruction, reading a variable value of a stored session creation identifier, judging whether the variable value is True, and if the variable value is True, executing second session creation of a target; if the variable is False, detecting that the sent conversation message does not meet the requirement of creating a new chat conversation, and continuously maintaining the chat interface of the current first conversation.
Optionally, before creating the second session, displaying an interface for selecting whether to create the second session; and under the condition that the input for selecting to create the second session is received, creating the second session which comprises the second user corresponding to the user name and all the users in the first session.
In this embodiment, in a case that it is detected that a session message input by a current user in the session box includes a user name and a session creation identifier, a selection prompt box pops up to the current user, and prompt information includes, for example, whether to join a user corresponding to the user name based on the current session, so as to create a new chat session.
Optionally, creating a second session including a first user corresponding to the user name and a second user corresponding to the first session includes: determining the history session as the second session if the first user and the second user have the history session; or creating a second session comprising the second user and the first user if there is no historical session between the second user and the first user.
If the first user and the second user have a history session, the first user and the second user can directly switch to the history session and open the history session. And if the first user and the second user do not have historical conversation, the corresponding second conversation needs to be created again.
Referring to fig. 2 to 4, schematic user interface diagrams of a session creation method according to a first embodiment of the present application are given.
As shown in fig. 2, the session message in the session box 24 corresponding to the sending operation of the current user includes a session creation identifier "+ @" and a user name "party", and after the current user clicks the "send" button, a selection prompt box 22 may pop up for the current user to select.
If the user selects 'yes', based on the operation of the user, the creation of a second session containing a second user involved in the current first session and the first user corresponding to the user name is triggered.
As shown in fig. 4, the chat interface of the newly created session is changed from the two-user chat session of fig. 3 to the three-user group chat session. In a second embodiment of the present application, the second user may be a user in the first conversation, for example, the current user who enters the above-mentioned conversation message in the conversation box. And creating a second session based on the user name and the user contained in the first session, namely creating the session between the first user corresponding to the user name detected in the session message and the current user.
In this embodiment, a new session between the first user corresponding to the user name and the current user in the first session is created, and the new session does not include other second users except the current user in the first session.
For example, if a current user a and an opposite user B who input a session message in a session box are included in a first session, a new session, i.e., a second session, is created that contains only the first user C to which the user a and the user name correspond. If the first session includes a current user a and a plurality of peer users B and D, the new session created also contains only user a and user C.
The first user to which the user name corresponds may be one or more users.
Also, optionally, creating a second session including a first user corresponding to the user name and a second user corresponding to the first session includes: determining the history session as the second session if the first user has a history session with the second user.
In this embodiment, if the user names detected in the session messages are referred to as one, that is, the corresponding first users are one, and the current user and the first user have a chat session record before storing in the corresponding chat session APP, the history session corresponding to the current user and the first user is directly opened based on the detection result.
Optionally, creating a second session including a first user corresponding to the user name and a second user corresponding to the first session includes: creating a second session that includes the second user and the first user if there is no historical session for the second user with the first user.
And under the condition that the user name detected in the session message is called one and the current user and the first user corresponding to the user name do not have historical sessions, creating a second session containing the first user and the current user.
In this embodiment, if there is one first user and there is no previous chat session record saved in the corresponding chat session APP between the current user and the first user, a new two-user chat session between the current user and the first user is created based on the detection result.
And if the number of the first users is multiple, creating a group chat session between the current user and the multiple first users based on the detection result.
If only the session message in the session frame of the first session is detected to contain the user name, or only the session message is detected to contain the session creation identifier, no new session is created.
If the set session creation identifier is "+ @", after the user inputs + @ and the keyword "party" of the user name in the session box of the first session, as shown in fig. 2, the current chat interface of the first session may pop up a user list corresponding to the user name for the current user to select. And records the selection status of the current user, after which the illustrated user name "party" @ "may be appended to the session creation identification" + @ ", for example.
And simultaneously creating a reference user list corresponding to the user name according to the user name selected by the current user, and adding the currently selected user name into the reference user list. Then, the variable corresponding to the session creation identifier is created and saved as True.
If the current user deletes one or more user names referenced by the session creation identification in the session message from the session box, the user name is correspondingly deleted from the list of referenced users. If all the user names in the reference user list are deleted, namely the reference user list is empty, the variable of the session creation identifier is changed to False. If the current user deletes the session creation identification in the session message from the session frame, the variable of the session creation identification is changed to False correspondingly.
When receiving a sending operation of a user so as to trigger a session message sending instruction, reading a variable value of a stored session creation identifier, judging whether the variable value is True, and if the variable value is True, executing second session creation of a target; if the variable is False, detecting that the sent conversation message does not meet the requirement of creating a new chat conversation, and continuously maintaining the chat interface of the current first conversation.
Optionally, before creating the second session, displaying an interface for selecting whether to create the second session; and under the condition that the input for selecting to create the second session is received, creating the second session which comprises the first user corresponding to the user name and the current user in the first session.
In this embodiment, in a case that it is detected that a session message input by a current user in a session box includes a user name and a session creation identifier, a selection prompt box pops up to the current user, and prompt information includes, for example, whether to switch to a chat session of the user corresponding to the user name, so as to create a new session or open a chat interface of a historical session.
Referring to fig. 5 and 6, schematic user interface diagrams of a session creation method according to a second embodiment of the present application are given.
As shown in fig. 5, the session message in the session box 34 corresponding to the sending operation of the current user includes a session creation identifier "+ @" and a user name "party", and after the current user clicks the "send" button, a selection prompt box 32 may pop up for the current user to select.
If the user selects 'yes', based on the operation of the user, a second session containing the current user of the current first session and the first user corresponding to the user name is triggered to be created or opened.
As shown in fig. 6, the chat interface of the newly created session is changed from the chat session of the current user and the opposite user 'white' in fig. 5 to the chat session of the current user and the first user 'party'.
Optionally, in the first implementation and/or the second implementation of the present application, after creating the second session, the method further includes: and sending a session message with the identification and the user name removed to the second session.
Of course, the present application is not limited to this specific embodiment, and the session creation identifier and the user name may not be removed from the session message sent in the actual application; alternatively, only part of the identification is removed.
As shown in fig. 4, for example, for the group chat session in the first embodiment of the present application, the identifier "@" and the user name "party" in the session creation identifier "+ @" and other text content finally input by the session box may be retained, and the session message of the current user may be sent to the newly created group chat interface and displayed.
As shown in fig. 6, for example, for a private chat session, the session creation identifier and the user name may be removed at the same time, and other text content finally input in the session box is retained, and a session message of the current user is sent to a newly created or opened chat interface and displayed.
Optionally, after creating the second session based on the user name and the user included in the first session, the method further includes: and sending the chat records in the second session within the preset time range in the first session.
The chat records are the chat records in the first session, and may be all the chat records by default or the chat records in a preset time range. Thereby, the predetermined chat information in the first session can be copied to the second session.
As shown in fig. 6, a session message 38 corresponding to the sending operation of the current user is sent to the second session created by the first user corresponding to the user name of the current user, and the chat record 36 of the current user in the first session shown in fig. 5 is copied to the second session.
Optionally, before creating the second session based on the user name and the user included in the first session, the method further includes: receiving a first input, wherein the first input is an input for canceling the creation of the second session; deleting the identification and user name in response to the first input; and in the first session, sending a session message after the identifier and the user name are deleted.
If the user clicks "no" as in the selection prompt box popped up in fig. 3 and 5, it indicates that the current user cancels the operation of creating a new session, and at this time, the session creation identifier and the user name in the session message input into the session box by the user may be deleted before the selection prompt box is popped up, and other text content may be sent to the current first session. Of course, if the user clicks "no," the session message may also be directly masked from being sent.
Next, a general description will be made of a session creation method of the embodiment of the present application, with reference to examples of fig. 7 to 8.
Fig. 7 is an exemplary flowchart of a session creating method corresponding to the first embodiment of the present application, and as shown in fig. 7, the method includes the following steps:
102, detecting whether the input text matched with the current user contains a session creation identifier '+ @', if so, entering a step 103, otherwise, entering a step 104;
103, recording the operation of adding or deleting the user name of the reference user by the current user;
104, receiving a sending instruction triggered by the message sending operation of the current user;
106, enabling a pop-up selection prompt box to be used for a user to select whether to create a new session, if so, entering a step 108, otherwise, entering a step 107;
and step 108, creating a new session, copying the original session record, storing and displaying the original session record in the new session, and sending a session message corresponding to a key clicked and sent by a user.
In the first embodiment of the present application, a user only needs to input a session creation identifier and a user name in a session box of a current first session, that is, a new third-party user can be added to create a new second session based on the current first session of two or more users, and the new second session can keep a chat record of the current first session. Therefore, the method and the device can rapidly and conveniently invite the third-party user to join in creating a new chat session, reduce the tedious steps of manually creating the session, improve the efficiency of creating the chat session by the user, facilitate the current session user to look up historical session information from a new session interface, avoid the step of switching to the original session window, and improve the use experience of the user.
In addition, after the second session is created, by copying the predetermined chat information in the first session into the second session, the problems or knowledge points involved in the first session can be quickly transferred to the newly-added third party user, so that the problems that in the prior art, the chat information in the previous session cannot be seen in the newly-created group chat, and if the newly-added third party user wants to watch the chat information in the previous session, the newly-added third party user can only rely on other previous users to forward the chat information from the previous session to the newly-created group chat are avoided. The session creation method of the embodiment of the application can reduce the complicated steps of copying, selecting and forwarding the session message, and improve the communication efficiency of the user.
Fig. 8 is an exemplary flowchart of a session creating method corresponding to the second embodiment of the present application, and as shown in fig. 8, the method includes the following steps:
In the second embodiment of the present application, a user only needs to input a session creation identifier and a user name in a text input box of a current first session, that is, a session of a first user corresponding to the user name can be created or opened on the basis of the current session, and a second session interface with the first user is switched from a current session interface. Therefore, the tedious steps of manually creating or opening the session can be reduced, and the efficiency of the user chat session is improved.
In addition, by copying the preset chat information in the current first session to the second session, the problems or knowledge points involved in the current first session can be quickly transmitted to the third-party user, so that the complicated steps of copying, selecting and forwarding the session information are reduced, and the communication efficiency of the user is improved.
In the embodiment of the application, by detecting the session message in the session frame of the first session, wherein the detection comprises identification detection and content detection, whether the session message contains an identification and a user name is determined; and under the condition that the session message contains the identifier and the user name, creating a second session based on the user name and the user contained in the first session, thereby quickly and conveniently creating the session of the user corresponding to the user name based on the identifier and the user name in the session message, simplifying the complicated steps of creating the user session chat, and greatly improving the efficiency of the user session and the communication efficiency of the user.
After the second session of the user corresponding to the user name is created, the predetermined chat information in the first session is copied to the second session, so that the problems or knowledge points involved in the first session can be quickly transmitted to the user in the second session, the user can conveniently check the chat information of the previous session, the complicated steps of copying, selecting and forwarding the session information in the first session to the user in the second session can be reduced, and the communication efficiency of the user is improved.
It should be noted that, in the session creating method provided in the embodiment of the present application, the execution subject may be a session creating apparatus, or a control module in the session creating apparatus for executing the session creating method. In the embodiment of the present application, a session creating apparatus executes a session creating method as an example, and the session creating apparatus provided in the embodiment of the present application is described.
Optionally, as shown in fig. 9, an embodiment of the present application further provides a session creating apparatus 800, including:
a detection module 820, configured to detect a session message in a session frame of a first session, where the detection includes an identifier detection and a content detection;
a creating module 840, in case the session message contains an identification and a user name, creating a second session based on the user name and the user contained in the first session.
Optionally, the creating module 840 creates a second session based on the user name and the user included in the first session, which specifically includes:
and creating a second session comprising the first user corresponding to the user name and a second user corresponding to the first session.
Optionally, the creating module 840 creates a second session including the first user corresponding to the user name and the second user corresponding to the first session, which specifically includes:
determining the history session as the second session if the first user and the second user have the history session; or
Creating a second session that includes the second user and the first user if there is no historical session for the second user with the first user.
Optionally, the session creating apparatus 800 further includes a first sending module 860, after the creating module 840 creates a second session based on the user name and the user included in the first session, sending the chat records in the first session within the preset time range in the second session.
Optionally, the session creating apparatus 800 further includes:
the receiving module is used for receiving a first input before the creating module creates a second session based on the user name and a user contained in the first session, wherein the first input is an input for canceling the creation of the second session;
a deletion module to delete the identification and the user name in response to the first input;
and the second sending module is used for sending the session message after the identifier and the user name are deleted in the first session.
In the embodiment of the application, by detecting the session message in the session frame of the first session, wherein the detection comprises identification detection and content detection, whether the session message contains an identification and a user name is determined; and under the condition that the session message contains the identifier and the user name, creating a second session based on the user name and the user contained in the first session, thereby quickly and conveniently creating the session of the user corresponding to the user name based on the identifier and the user name in the session message, simplifying the complicated steps of creating the user session chat, and greatly improving the efficiency of the user session and the communication efficiency of the user.
In addition, after the second session of the user corresponding to the user name is created, by copying the preset chat information in the first session to the second session, the problems or knowledge points involved in the first session can be quickly transmitted to the user in the second session, the user can conveniently check the chat information of the previous session, the tedious steps of copying, selecting and forwarding the session information in the first session to the user in the second session can be reduced, and the communication efficiency of the user is improved.
The session creation device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), and the like, and the embodiment of the present application is not particularly limited.
The session creation apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The session creation apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments in fig. 1 to fig. 8, and is not described here again to avoid repetition.
Optionally, as shown in fig. 10, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 940, a memory 920, and a program or an instruction stored in the memory 920 and executable on the processor 940, where the program or the instruction is executed by the processor 940 to implement each process of the above-mentioned session creation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 1010 is configured to detect a session message in a session box of a first session, where the detection includes identification detection and content detection; in case the session message contains an identification and a user name, a second session is created based on the user name and the user contained in the first session.
In the embodiment of the application, by detecting the session message in the session frame of the first session, wherein the detection comprises identification detection and content detection, whether the session message contains an identification and a user name is determined; and under the condition that the session message contains the identifier and the user name, creating a second session based on the user name and the user contained in the first session, thereby quickly and conveniently creating the session of the user corresponding to the user name based on the identifier and the user name in the session message, simplifying the complicated steps of creating the user session chat, and greatly improving the efficiency of the user session and the communication efficiency of the user.
Optionally, the processor 1010 is further configured to, after creating a second session based on the user name and a user included in the first session, send a chat record in the second session within a preset time range in the first session.
After the second session is created, by copying the preset chat information in the first session to the second session, the problems or knowledge points involved in the first session can be quickly transmitted to the user in the second session, the user can conveniently check the chat information of the previous session, the tedious steps of copying, selecting and forwarding the session information in the first session to the corresponding user can be reduced, and the communication efficiency of the user is improved.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned session creation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned session creation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (12)
1. A session creation method, comprising:
detecting a session message in a session frame of a first session, wherein the detection comprises identification detection and content detection;
in case the session message contains an identification and a user name, a second session is created based on the user name and the user contained in the first session.
2. The method of claim 1, wherein creating a second session based on the user name and a user involved in the first session comprises:
and creating a second session comprising the first user corresponding to the user name and a second user corresponding to the first session.
3. The method of claim 2, wherein creating a second session containing a first user corresponding to the user name and a second user corresponding to the first session comprises:
determining the history session as the second session if the first user and the second user have the history session; or
Creating a second session that includes the second user and the first user if there is no historical session for the second user with the first user.
4. The method of claim 1, further comprising, after creating a second session based on the user name and a user involved in the first session:
and sending the chat records in the first session within a preset time range in the second session.
5. The method of claim 2 or 3, further comprising, prior to creating a second session based on the user name and a user involved in the first session:
receiving a first input, wherein the first input is an input for canceling the creation of the second session;
deleting the identification and user name in response to the first input;
and in the first session, sending a session message after the identifier and the user name are deleted.
6. A session creation apparatus, comprising:
the detection module is used for detecting the session message in the session frame of the first session, wherein the detection comprises identification detection and content detection;
and the creating module creates a second session based on the user name and the user contained in the first session under the condition that the session message contains the identification and the user name.
7. The apparatus of claim 6, wherein the creating module creates the second session based on the user name and the user included in the first session, and specifically comprises:
and creating a second session comprising the first user corresponding to the user name and a second user corresponding to the first session.
8. The apparatus according to claim 7, wherein the creating module creates a second session including a first user corresponding to the user name and a second user corresponding to the first session, and specifically includes:
determining the history session as the second session if the first user and the second user have the history session; or
Creating a second session that includes the second user and the first user if there is no historical session for the second user with the first user.
9. The apparatus of claim 6, further comprising:
and the first sending module is used for sending the chat records in the first session within the preset time range in the second session after the creating module creates the second session based on the user name and the user contained in the first session.
10. The apparatus of claim 6 or 7, further comprising:
the receiving module is used for receiving a first input before the creating module creates a second session based on the user name and a user contained in the first session, wherein the first input is an input for canceling the creation of the second session;
a deletion module to delete the identification and the user name in response to the first input;
and the second sending module is used for sending the session message after the identifier and the user name are deleted in the first session.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps of the session creation method according to any one of claims 1 to 5.
12. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the session creation method according to any one of claims 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111189788.1A CN113965614A (en) | 2021-10-11 | 2021-10-11 | Session creation method and device and electronic equipment |
PCT/CN2022/124470 WO2023061343A1 (en) | 2021-10-11 | 2022-10-10 | Session creation method and apparatus, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111189788.1A CN113965614A (en) | 2021-10-11 | 2021-10-11 | Session creation method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113965614A true CN113965614A (en) | 2022-01-21 |
Family
ID=79463612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111189788.1A Pending CN113965614A (en) | 2021-10-11 | 2021-10-11 | Session creation method and device and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113965614A (en) |
WO (1) | WO2023061343A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115333878A (en) * | 2022-06-24 | 2022-11-11 | 网易(杭州)网络有限公司 | User group generation method and device and electronic equipment |
WO2023061343A1 (en) * | 2021-10-11 | 2023-04-20 | 维沃移动通信有限公司 | Session creation method and apparatus, and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110460510A (en) * | 2019-07-31 | 2019-11-15 | 北京字节跳动网络技术有限公司 | A kind of method, apparatus that establishing multi-conference, electronic equipment and medium |
CN111641602A (en) * | 2020-05-13 | 2020-09-08 | 维沃移动通信有限公司 | Session creation method and device and electronic equipment |
CN112540712A (en) * | 2020-12-07 | 2021-03-23 | 维沃移动通信有限公司 | Message processing method and device, electronic equipment and storage medium |
WO2021082741A1 (en) * | 2019-10-31 | 2021-05-06 | 维沃移动通信有限公司 | Display method and electronic device |
CN112866092A (en) * | 2021-01-22 | 2021-05-28 | 维沃移动通信有限公司 | Group chat creating method and group chat creating device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103634197B (en) * | 2012-08-27 | 2017-06-20 | 百度在线网络技术(北京)有限公司 | The method and device of multi-conference is set up in immediate communication tool |
CN105915447A (en) * | 2016-06-30 | 2016-08-31 | 珠海市魅族科技有限公司 | Multi-party session establishing method and device |
WO2018112896A1 (en) * | 2016-12-23 | 2018-06-28 | 深圳前海达闼云端智能科技有限公司 | Chat interaction method and apparatus, and electronic device thereof |
CN110708358B (en) * | 2019-09-16 | 2021-08-31 | 腾讯科技(深圳)有限公司 | Session message processing method, electronic device and computer-readable storage medium |
CN113965614A (en) * | 2021-10-11 | 2022-01-21 | 维沃移动通信有限公司 | Session creation method and device and electronic equipment |
-
2021
- 2021-10-11 CN CN202111189788.1A patent/CN113965614A/en active Pending
-
2022
- 2022-10-10 WO PCT/CN2022/124470 patent/WO2023061343A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110460510A (en) * | 2019-07-31 | 2019-11-15 | 北京字节跳动网络技术有限公司 | A kind of method, apparatus that establishing multi-conference, electronic equipment and medium |
WO2021082741A1 (en) * | 2019-10-31 | 2021-05-06 | 维沃移动通信有限公司 | Display method and electronic device |
CN111641602A (en) * | 2020-05-13 | 2020-09-08 | 维沃移动通信有限公司 | Session creation method and device and electronic equipment |
CN112540712A (en) * | 2020-12-07 | 2021-03-23 | 维沃移动通信有限公司 | Message processing method and device, electronic equipment and storage medium |
CN112866092A (en) * | 2021-01-22 | 2021-05-28 | 维沃移动通信有限公司 | Group chat creating method and group chat creating device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023061343A1 (en) * | 2021-10-11 | 2023-04-20 | 维沃移动通信有限公司 | Session creation method and apparatus, and electronic device |
CN115333878A (en) * | 2022-06-24 | 2022-11-11 | 网易(杭州)网络有限公司 | User group generation method and device and electronic equipment |
CN115333878B (en) * | 2022-06-24 | 2023-11-17 | 网易(杭州)网络有限公司 | User group generation method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2023061343A1 (en) | 2023-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112540821B (en) | Information sending method and electronic equipment | |
CN113300938B (en) | Message sending method and device and electronic equipment | |
WO2023061343A1 (en) | Session creation method and apparatus, and electronic device | |
CN111884908B (en) | Contact person identification display method and device and electronic equipment | |
CN113094143B (en) | Cross-application message sending method and device, electronic equipment and readable storage medium | |
CN111866270A (en) | Application program control method and device and electronic equipment | |
CN112947807A (en) | Display method and device and electronic equipment | |
CN112416200A (en) | Display method, display device, electronic equipment and readable storage medium | |
WO2022143524A1 (en) | Information display method and apparatus, and electronic device | |
CN113114845A (en) | Notification message display method and device | |
CN112711366A (en) | Image generation method and device and electronic equipment | |
CN114374663B (en) | Message processing method and message processing device | |
CN113138702B (en) | Information processing method, device, electronic equipment and storage medium | |
US20240089223A1 (en) | Information display method and apparatus, and electronic device | |
CN112235412B (en) | Message processing method and device | |
WO2024041510A1 (en) | Contact determination method and apparatus, and electronic device and medium | |
CN112181351A (en) | Voice input method and device and electronic equipment | |
CN112422735A (en) | Information prompting method and device and electronic equipment | |
CN116016756A (en) | Information processing method, apparatus, electronic device, and readable storage medium | |
CN113672152B (en) | Display method and device | |
CN115412634A (en) | Message display method and device | |
CN115361354A (en) | Message processing method and device, electronic equipment and readable storage medium | |
CN113869011A (en) | Information auditing method and device and electronic equipment | |
CN113839789A (en) | Information sending method and device | |
CN112486650A (en) | Operation path switching method and device and electronic equipment |
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 |