Message sending method, device, electronic device and readable storage medium
By displaying alternative session identifiers on the same screen on the target session interface, message forwarding without jumps is achieved, the problems of cumbersome operations and missed and missed sending are solved, and the message forwarding efficiency is improved.
Patent Information
- Application Number
- CN202210371988.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-04-11
AI Technical Summary
In the prior art, the message sending method requires the user to jump between at least two sessions, resulting in cumbersome operations and the risk of missed or missed messages, reducing the efficiency of message forwarding.
By displaying the alternate session identifier of the alternative session on the same screen on the session message interface of the target session, the user can forward the message to the target alternative by entering the target session message and the alternative session identifier without breaking out of the session message interface. Session.
Simplify message forwarding operations, reduce the risk of missed or missed messages, and improve message forwarding efficiency.
Smart Images

Figure CN114827068B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a message sending method, device, electronic device and readable storage medium. Background Art
[0002] With the continuous development of Internet technology, more and more users are beginning to use instant messaging applications to communicate with others in daily life and work.
[0003] In the related art, a user usually needs to send a conversation message in one conversation to another conversation. In this case, the user can enter the conversation message interface of one conversation, copy the conversation message to be sent from the conversation message interface, and then manually jump to the conversation message interface of another conversation, paste the copied conversation message into the message input box and send it.
[0004] The message sending method in the above-mentioned related art requires the user to jump between at least two sessions, which makes the operation cumbersome, and there is also the risk of missing or wrongly sending messages, resulting in low message forwarding efficiency. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a message sending method, device, electronic device and readable storage medium, which can solve the problem of low message forwarding efficiency.
[0006] In a first aspect, an embodiment of the present application provides a message sending method, the method comprising:
[0007] Displaying a conversation message interface of a target conversation in which a target user participates; the conversation message interface includes conversation messages of the target conversation;
[0008] Displaying the conversation message and the alternative conversation identifier of the alternative conversation in which the target user participates on the same screen;
[0009] In response to input of a target session message in the session message and a target alternative session identifier in the alternative session identifier, the target session message is forwarded to the alternative session corresponding to the target alternative session identifier, with the target user identifier corresponding to the target user as the message sender.
[0010] In a second aspect, an embodiment of the present application provides a message sending device, the device comprising:
[0011] A first display module, configured to display a session message interface of a target session in which a target user participates; the session message interface includes session messages of the target session;
[0012] A second display module, used for displaying the conversation message and the alternative conversation identifier of the alternative conversation in which the target user participates on the same screen;
[0013] The first sending module is used to respond to the input of the target session message in the session message and the target alternative session identifier in the alternative session identifier, take the target user identifier corresponding to the target user as the message sender, and forward the target session message to the alternative session corresponding to the target alternative session identifier.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0018] In an embodiment of the present application, a session message interface of a target session in which a target user participates is displayed, the session message interface including a session message of the target session, the session message and an alternative session identifier of an alternative session in which the target user participates are displayed on the same screen, and in response to input of a target session message in the session message and a target alternative session identifier in the alternative session identifier, the target session message is forwarded to the alternative session corresponding to the target alternative session identifier with the target user identifier corresponding to the target alternative session identifier as the message sender. In this way, since the session message of the target session and the alternative session identifier of the alternative session in which the target user participates are displayed on the same screen, the user inputs the target session message in the session message and the target alternative session identifier in the alternative session identifier, and the target session message can be forwarded to the alternative session corresponding to the target alternative session identifier, without jumping out of the session message interface of the target session, thereby avoiding cumbersome operations, and reducing the risk of missing or wrongly sending messages, thereby improving the efficiency of message forwarding. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1A is a schematic diagram of an application environment of a message sending method in an embodiment;
[0020] Figure 1Bis a flowchart of a message sending method in an embodiment;
[0021] Figure 2A is a schematic diagram of an interface of a target session in an embodiment;
[0022] Figure 2B is a schematic diagram of an interface for selecting a session identifier in an embodiment;
[0023] Figure 3A is a flowchart of a message sending method in another embodiment;
[0024] Figure 3B is a flowchart of a message sending method in another embodiment;
[0025] Figure 4 is a schematic diagram of an interface of a session association control in an embodiment;
[0026] Figure 5 is a schematic diagram of an interface of a target session message and a target candidate session identifier in an embodiment;
[0027] Figure 6 is a schematic diagram of an interface between a target session message and a target candidate session identifier in another embodiment;
[0028] Figure 7 is a flowchart of a message sending method in yet another embodiment;
[0029] Figure 8 is a schematic diagram of an interface for associating confirmation information in an embodiment;
[0030] Fig. 9 is a schematic diagram of an interface for adding prompt information of a tag in an embodiment;
[0031] Fig. 10A is a schematic diagram of an interface showing a result of adding a tag in an embodiment;
[0032] Fig. 10B is a schematic diagram of an interface for adding keyword tags in an embodiment;
[0033] Fig.11A is a schematic diagram of an interface of a message forwarding result in an embodiment;
[0034] Fig. 11B is a schematic diagram of an interface of a message forwarding result in an embodiment;
[0035] Fig.12 is a block diagram of a message sending device in one embodiment;
[0036] Fig.13 is an electronic device in one embodiment;
[0037] Fig.14 The figure is a schematic diagram of the hardware structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0039] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0040] The message sending method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the electronic device 10 communicates with the server 20 through the network. The electronic device 10 can be, but is not limited to, various smart phones, personal computers, laptops, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 20 can be implemented as an independent server or a server cluster consisting of multiple servers.
[0041] In one embodiment, the electronic device 10 displays a session message interface of a target session in which a target user participates; the session message interface includes a session message of the target session; the session message and an alternative session identifier of an alternative session in which the target user participates are displayed on the same screen; the electronic device 10 responds to input of a target session message in the session message and a target alternative session identifier in the alternative session identifier, sends the message content of the target session message, the target alternative session identifier, and the target user identifier corresponding to the target user to a server 20 of an instant messaging application, and the server 20 uses the target user identifier as the message sender and forwards the target session message to the alternative session corresponding to the target alternative session identifier.
[0042] Reference Figure 1B , Figure 1Bis a flow chart of a message sending method in an embodiment. This embodiment is illustrated by applying the method to an electronic device. It can be understood that the method can also be applied to a server, and can also be applied to a system including an electronic device and a server, and is implemented through the interaction between the electronic device and the server. Figure 1B As shown, the specific steps include:
[0043] Step 101: Display a session message interface of a target session in which a target user participates; the session message interface includes session messages of the target session.
[0044] Among them, users can participate in the conversation through the instant messaging application and communicate with each member in the conversation. The instant messaging application can be an independent application, such as a chat application, a text messaging application, etc., or an application with an instant messaging function, such as a shopping application, a music application, a video application, etc., with an instant messaging module built in. Through the instant messaging module, users can communicate with other users in the shopping application, the music application, the video application, etc. In the embodiment of the present application, the instant messaging application is not limited to an application dedicated to instant messaging, but can also be an application that includes an instant messaging function.
[0045] In the embodiment of the present application, the target user can participate in a session established with a session object. For example, the target user can select a contact to establish a session and communicate with the contact in the session.
[0046] The target user can also participate in a session established with multiple session objects. For example, a user can join a group and communicate with all members of the group in the session. In the embodiment of the present application, the target session can be any session in which the target user participates.
[0047] The target session corresponds to a session message interface. After the target user participates in the target session, the session message interface corresponding to the target session can be displayed to the target user, so that the target user can view the session messages sent by each member in the target session in the session message interface, or send messages to other members in the target session in the session message interface.
[0048] A session message is a message sent by each member of the target session in the target session. For example, if the target session is a group, a member of the group posts a message "Hello" in the group, then "Hello" is a session message in the session interface of the target session. Session messages include but are not limited to text messages, file messages, video messages, picture messages, etc.
[0049] In one embodiment, the electronic device displays a session message interface of a target session in which the target user participates; the session message interface includes the session message of the target session. Instant messaging software is running on the electronic device, and the target user logs into the instant messaging software with a target user ID.
[0050] Step 102: Display the conversation message and the alternative conversation identifier of the alternative conversation in which the target user participates on the same screen.
[0051] In one embodiment, the electronic device displays the conversation message and the alternative conversation identifier of the alternative conversation in which the target user participates on the same screen.
[0052] After the target user opens the session message interface of the target session, the session message of the target session in the session message interface can be forwarded, and the session message of the target session can be sent to other sessions. In an embodiment of the present application, in order to facilitate the target user to forward the session message in the session message interface to other sessions, the alternative session identifier of the alternative session in which the target user participates can be displayed while displaying the session message interface of the target session in which the target user participates, for example, the alternative session identifier is displayed in the session message interface of the target session. Among them, the alternative session can include one or more of all the sessions in which the target user participates. The alternative session can also be selected by the user in advance from all the sessions in which the target user participates. The embodiment of the present application does not specifically limit the method for determining the alternative session.
[0053] Optionally, while displaying the session message interface of the target session in which the target user participates, the alternative session identifier corresponding to the alternative session can be displayed synchronously with the above-mentioned session message interface, so that the session message of the above-mentioned target session and the alternative session identifier corresponding to the alternative session are displayed on the same screen. It is also possible to trigger the same-screen display of the alternative session identifier according to the input operation of the target user after displaying the session message interface of the target session in which the target user participates. For example, when displaying the target session message interface in which the target user participates, the user can trigger the display of the alternative session identifier by swiping up at the bottom of the screen. In addition, the display of the alternative session identifier can also be triggered by other means, which are not specifically limited in the embodiments of the present application.
[0054] Reference Figure 2A and Figure 2B , Figure 2A is a schematic diagram of an interface of a target session in an embodiment, Figure 2B FIG. 1 is a schematic diagram of an interface for selecting a session identifier in an embodiment. Figure 2A As shown, Figure 2AThe target user participates in the conversation message interface of the target conversation. The conversation message of the target conversation is displayed in the conversation message interface. At this time, the display of the alternative conversation identifier of the alternative conversation can be triggered in response to the upward sliding operation at the bottom of the screen. Figure 2B The interface shown in Figure 2B In the interface shown, the session message of the target session and the candidate session identifiers of the candidate sessions in which the target user participates are displayed on the same screen.
[0055] It should be noted that displaying the session message and the alternative session identifier of the alternative session in which the target user participates on the same screen can also be: displaying the session message of the target session and the alternative session identifier in split-screen mode in two areas of the same screen at the same time, or displaying the session message of the target session and the alternative session identifier in split-screen mode on two different screens of the same terminal device at the same time.
[0056] Step 103: In response to input of the target session message in the session message and the target alternative session identifier in the alternative session identifier, the target user identifier corresponding to the target user is used as the message sender, and the target session message is forwarded to the alternative session corresponding to the target alternative session identifier.
[0057] In one embodiment, the electronic device responds to input of a target session message in a session message and a target alternative session identifier in an alternative session identifier by sending the message content of the target session message, the target alternative session identifier, and a target user identifier corresponding to the target user to a server of an instant messaging software. The server uses the target user identifier as the message sender and forwards the target session message to the alternative session corresponding to the target alternative session identifier.
[0058] In an embodiment of the present application, in response to the user's input of the target session message in the session message and the target alternative session identifier in the alternative session identifier, the target session message to be sent by the user can be determined from the session message of the target session, and the target alternative session identifier corresponding to the alternative session to which the user wants to send the message can be determined from the alternative session identifier.
[0059] It should be noted that the above-mentioned input of the target session message in the session message and the target alternative session identifier in the alternative session identifier may refer to a continuous input from the session message to the alternative session identifier, or from the alternative session identifier to the session message, or may refer to two independent inputs corresponding to the session message and the alternative session identifier, respectively. The above-mentioned input may include single-click, double-click, long-press, slide and other operations, which are not specifically limited in the embodiments of the present application.
[0060] For example, the user may first select a target conversation message from the displayed conversation messages through a tap operation, and then select a target candidate conversation identifier from the candidate conversation identifiers through another tap operation.
[0061] After determining the target session message and the target candidate session identifier, the target user identifier can be used as the message sender to send the target session message to the candidate session corresponding to the target candidate session identifier, so as to realize fast forwarding of the session message.
[0062] In order to reduce the interference of displayed alternative sessions to users, after determining the target alternative session identifier or sending the target session message to the alternative session corresponding to the target alternative session identifier, the display interface of the alternative session identifier can be automatically closed to reduce the interference of the alternative session identifier to the normal use of users. Alternatively, after determining the target alternative session identifier or sending the target session message to the alternative session corresponding to the target alternative session identifier, the alternative session identifier can be continuously displayed to respond to the user's input of the target session message in the session message and the target alternative session identifier in the alternative session identifier again, so as to facilitate the user to forward the session message to the alternative sessions corresponding to multiple alternative session identifiers.
[0063] In summary, the message sending method provided by the embodiment of the present application includes: displaying a session message interface of a target session in which a target user participates, the session message interface including a session message of the target session, displaying the session message and an alternative session identifier of an alternative session in which the target user participates on the same screen, and in response to inputting a target session message in the session message and a target alternative session identifier in the alternative session identifier, forwarding the target session message to the alternative session corresponding to the target alternative session identifier with the target user identifier corresponding to the target user as the message sender. In this way, since the session message of the target session and the alternative session identifier of the alternative session in which the target user participates are displayed on the same screen, the user inputs the target session message in the session message and the target alternative session identifier in the alternative session identifier, and the target session message can be forwarded to the alternative session corresponding to the target alternative session identifier, without jumping out of the session message interface of the target session, thereby avoiding cumbersome operations, and reducing the risk of missing or wrongly sending messages, thereby improving the message forwarding efficiency.
[0064] Reference Figure 3A , Figure 3A is a flowchart of a message sending method in another embodiment. Figure 3A As shown, the specific steps include:
[0065] Step 201: In response to a user input to a session association control displayed in the session message interface, display a candidate session identifier of a candidate session in which the target user participates.
[0066] In one embodiment, the electronic device displays the candidate session identifiers of the candidate sessions in which the target user participates in response to the user input to the session association control displayed in the session message interface.
[0067] In an embodiment of the present application, a user can establish an association relationship between a target session and an alternative session through a session association control displayed in a session message interface. The session association control can be displayed in a session message interface of the target session, and the user can operate the session association control displayed in the session message interface of the target session to display the alternative session identifiers of the alternative sessions in which the target user participates. The alternative session identifiers can be all sessions in which the target user participates, except the target session.
[0068] Specifically, the session identifier to be selected may be displayed in a pop-up window on the current interface, or may be displayed by jumping to a page, which is not specifically limited in the embodiment of the present application.
[0069] Reference Figure 4 , Figure 4 is a schematic diagram of an interface of a session association control in an embodiment, such as Figure 4 As shown, when the session message interface of the target session is displayed, the user can trigger the display of the control list 41 through the session list display button, or gesture operations such as swiping up, and the control list can include a session association control 42. After the user triggers the session association control 42, the selected session identifier 43 can be displayed in the current interface in a pop-up window.
[0070] Step 202: In response to a user inputting a target candidate session identifier in the candidate session identifiers, determining a target candidate session corresponding to the target candidate session identifier as a candidate session associated with the target session.
[0071] In one embodiment, in response to a user input of a target candidate session identifier among the candidate session identifiers, the electronic device determines a target candidate session corresponding to the target candidate session identifier as a candidate session associated with the target session.
[0072] In response to the user inputting at least one target to-be-selected session identifier among the to-be-selected session identifiers, the session corresponding to the target to-be-selected session identifier selected by the user may be used as a candidate session associated with the target session.
[0073] In an embodiment of the present application, a user can actively determine an alternative session associated with a target session based on sessions that frequently need to be forwarded. When subsequently forwarding a session message of the target session, there is no need to search among a large number of sessions, and the session to be forwarded can be quickly found in the corresponding alternative session, thereby improving the efficiency of the user forwarding messages.
[0074] Step 203: Display a session message interface of a target session in which a target user participates; the session message interface includes session messages of the target session.
[0075] In one embodiment, the electronic device displays a conversation message interface of a target conversation in which a target user participates; the conversation message interface includes conversation messages of the target conversation.
[0076] This step can refer to step 101 and will not be described in detail in this embodiment of the present application.
[0077] Step 204: Display the conversation message and the alternative conversation identifier of the alternative conversation in which the target user participates on the same screen.
[0078] In one embodiment, the electronic device displays the conversation message and the alternative conversation identifier of the alternative conversation in which the target user participates on the same screen.
[0079] In an embodiment of the present application, any session in which the target user participates may have a corresponding alternative session. Therefore, when displaying a session message interface of a target session in which the target user participates, the alternative session identifier of the alternative session displayed on the same screen as the session message in the above session message interface may be an alternative session identifier corresponding to the alternative session associated with the target session.
[0080] Furthermore, in an embodiment of the present application, in order to further simplify the step of the user forwarding the session message, after the user determines the target session message from the session message of the target session, the alternative session identifier of the alternative session corresponding to the target session can be directly displayed in the current interface.
[0081] Step 205: In response to the user's dragging input on the target conversation message in the conversation message, determine a release position of the dragging input.
[0082] In one embodiment, the electronic device determines a release position of the drag input in response to a user's drag input on a target conversation message in the conversation messages.
[0083] In an embodiment of the present application, the input of the target session message in the session message and the target alternative session identifier in the alternative session identifier may be a drag input, and correspondingly, the drag input may include a release operation. In response to the user's drag input of the session message of the target session, the session message dragged by the user may be determined as the target session message.
[0084] After detecting the start of the drag input, the drag input is continuously monitored, and the release position of the drag input can be obtained when the drag input is released. It should be noted that in the embodiment of the present application, the drag input can be a user directly dragging the target conversation message on the screen using a finger, a stylus, etc., or a user dragging the target conversation message by moving a cursor using a mouse, a touchpad, etc. Therefore, the release position can specifically be the position where the user leaves the screen when the drag input ends, or the position where the cursor is released.
[0085] Considering the user's need to forward multiple conversation messages at one time, in the embodiment of the present application, the target conversation message may also include multiple conversation messages in the conversation message interface of the target conversation. Specifically, before responding to the user's drag input, the user's selection operation on the multiple conversation messages in the conversation message interface may be first responded to, and then the user's drag input on any conversation message among the multiple conversation messages may be responded to, and all the conversation messages in the multiple conversation messages may be used as the target conversation messages for subsequent operations, so that the user can forward multiple conversation messages at one time.
[0086] Step 206: Determine the candidate session identifier that overlaps with the release position as the target candidate session identifier.
[0087] In one embodiment, the electronic device determines the alternative session identifier overlapping with the release position as the target alternative session identifier.
[0088] After the release position of the drag input is determined, the release position may be compared with the display position of the candidate session identifier, and the candidate session identifier overlapping with the release position may be determined as the target candidate session identifier.
[0089] Specifically, the screen coordinates corresponding to the release position and the screen areas corresponding to each alternative session identifier being displayed can be determined, and the screen coordinates corresponding to the release position are compared with the screen areas corresponding to each alternative session identifier. If the screen area corresponding to an alternative session identifier contains the screen coordinates corresponding to the release position, it can be determined that the alternative session identifier coincides with the release position, and the alternative session identifier is determined as the target alternative session identifier.
[0090] Reference Figure 5 , Figure 5 is a schematic diagram of an interface of a target session message and a target candidate session identifier in an embodiment, such as Figure 5 As shown in the left interface, the user can drag the conversation message 51 to the display position of the alternative conversation identifier 52 and release it to determine the conversation message 51 as the target conversation message and the alternative conversation identifier 52 as the target alternative conversation identifier. Figure 5As shown in the right interface, after determining the target session message and the target alternative session, the target session message is sent to the alternative session corresponding to the target alternative session identifier, and the session interface of the target alternative session is jumped to. It should be noted that in the embodiment of the present application, after sending the target session message to the alternative session corresponding to the target alternative session identifier, the session interface of the target alternative session can be directly jumped to, or the target session message can be sent to the alternative session corresponding to the target alternative session identifier in the background without jumping to the current interface.
[0091] Step 207: In response to the user's dragging input on the target conversation message in the conversation message, determine a dragging path of the dragging input.
[0092] In one embodiment, the electronic device determines a dragging path of the dragging input in response to a user's dragging input on a target conversation message in the conversation messages.
[0093] In an embodiment of the present application, since the alternative session may include multiple sessions, in order to facilitate the user to simultaneously send the target session message of the target session to multiple sessions in the alternative session through one operation, after detecting the user's drag input on the target session message in the session message, the user's dragging path for the target session message can be obtained, and the target alternative session identifier can be determined according to the dragging path.
[0094] Step 208: Determine at least one candidate session identifier on the dragging path as the target candidate session identifier.
[0095] In one embodiment, the electronic device determines at least one candidate session identifier on the dragging path as the target candidate session identifier.
[0096] In the embodiment of the present application, the candidate session identifier on the dragging path may be a candidate session identifier that the dragging path passes through, or may be a candidate session identifier that the dragging path surrounds.
[0097] Specifically, after obtaining the dragging path, a closed graph formed by the dragging path can be determined, and the closed graph can be matched with the display area of each candidate session identifier. If there is an overlapping relationship between the display area of the candidate session identifier and the closed graph, it can be determined that the candidate session identifier is passed through by the dragging path. In an embodiment of the present application, multiple target candidate session identifiers can be determined from the candidate session identifiers according to the path of the target session message dragged by the user, further improving the message forwarding efficiency.
[0098] Reference Figure 6 , Figure 6 FIG. 1 is a schematic diagram of an interface between a target session message and a target candidate session identifier in another embodiment. Figure 6As shown in the left interface, in response to the user's target session dragging input to the session message 61 in the session interface, the dragging path 62 of the dragging input can be obtained. Since the alternative session identifier 63 and the alternative session identifier 64 are on the dragging path 62, the alternative session identifier 63 and the alternative session identifier 64 can be determined as the target alternative session identifiers, and the session message 61 can be determined as the target session message. After determining the target session message and the target alternative session, the target session message is sent to the alternative session corresponding to the target alternative session identifier. After the user enters the session interface of the alternative session corresponding to the alternative session identifier 63, it can be seen that Figure 6 The interface shown in the middle; after the user enters the session interface of the alternative session corresponding to the alternative session identifier 64, you can see Figure 6 The interface shown on the right.
[0099] Step 209: Using the target user identifier corresponding to the target user as the message sender, the target session message is forwarded to the candidate session corresponding to the target candidate session identifier.
[0100] In one embodiment, the electronic device uses the target user identifier corresponding to the target user as the message sender, and forwards the target session message to the alternative session corresponding to the target alternative session identifier.
[0101] This step can refer to step 103, and will not be described in detail in this embodiment of the present application.
[0102] In summary, another message sending method provided by an embodiment of the present application includes: displaying a session message interface of a target session in which a target user participates; the session message interface includes a session message of the target session; displaying the session message and the alternative session identifier of the alternative session in which the target user participates on the same screen; in response to input of the target session message in the session message and the target alternative session identifier in the alternative session identifier, forwarding the target session message to the alternative session corresponding to the target alternative session identifier with the target user identifier corresponding to the target user as the message sender. The present application can display the session message and the alternative session identifier on the same screen, and determine the session message and the alternative session to be sent according to the user's input, so that the user can send the session message in one session to another session without jumping to the page, which not only improves the efficiency of the user in sending the session message, but also avoids the problem of low accuracy of message sending caused by the user copying and pasting the session message.
[0103] Reference Figure 3B , Figure 3B is a flowchart of a message sending method in another embodiment, such as Figure 3B As shown, the specific steps include:
[0104] Step 201: In response to a user input to a session association control displayed in the session message interface, display a candidate session identifier of a candidate session in which the target user participates.
[0105] Step 202: In response to a user inputting a target candidate session identifier in the candidate session identifiers, determining a target candidate session corresponding to the target candidate session identifier as a candidate session associated with the target session.
[0106] Step 203: Display a session message interface of a target session in which a target user participates; the session message interface includes session messages of the target session.
[0107] Step 204: Display the conversation message and the alternative conversation identifier of the alternative conversation in which the target user participates on the same screen.
[0108] Step 207: In response to the user's dragging input on the target conversation message in the conversation message, determine a dragging path of the dragging input.
[0109] In one embodiment, the electronic device determines a dragging path of the dragging input in response to a user's dragging input on a target conversation message in the conversation messages.
[0110] In an embodiment of the present application, since the alternative session may include multiple sessions, in order to facilitate the user to simultaneously send the target session message of the target session to multiple sessions in the alternative session through one operation, after detecting the user's drag input on the target session message in the session message, the user's dragging path for the target session message can be obtained, and the target alternative session identifier can be determined according to the dragging path.
[0111] Step 208: Determine at least one candidate session identifier on the dragging path as the target candidate session identifier.
[0112] In one embodiment, the electronic device determines at least one candidate session identifier on the dragging path as the target candidate session identifier.
[0113] In the embodiment of the present application, the candidate session identifier on the dragging path may be a candidate session identifier that the dragging path passes through, or may be a candidate session identifier that the dragging path surrounds.
[0114] Specifically, after obtaining the dragging path, a closed graph formed by the dragging path can be determined, and the closed graph can be matched with the display area of each candidate session identifier. If there is an overlapping relationship between the display area of the candidate session identifier and the closed graph, it can be determined that the candidate session identifier is passed through by the dragging path. In an embodiment of the present application, multiple target candidate session identifiers can be determined from the candidate session identifiers according to the path of the target session message dragged by the user, further improving the message forwarding efficiency.
[0115] Reference Figure 6 , Figure 6 FIG. 4 shows another schematic diagram of determining a target session message and a target candidate session identifier provided by an embodiment of the present application. Figure 6 As shown in the left interface, in response to the user's target session dragging input to the session message 61 in the session interface, the dragging path 62 of the dragging input can be obtained. Since the alternative session identifier 63 and the alternative session identifier 64 are on the dragging path 62, the alternative session identifier 63 and the alternative session identifier 64 can be determined as the target alternative session identifiers, and the session message 61 can be determined as the target session message. After determining the target session message and the target alternative session, the target session message is sent to the alternative session corresponding to the target alternative session identifier. After the user enters the session interface of the alternative session corresponding to the alternative session identifier 63, it can be seen that Figure 6 The interface shown in the middle; after the user enters the session interface of the alternative session corresponding to the alternative session identifier 64, you can see Figure 6 The interface shown on the right.
[0116] Step 209: Using the target user identifier corresponding to the target user as the message sender, the target session message is forwarded to the candidate session corresponding to the target candidate session identifier.
[0117] This step can refer to step 103, and will not be described in detail in this embodiment of the present application.
[0118] In summary, another message sending method provided by an embodiment of the present application includes: displaying a session message interface of a target session in which a target user participates; the session message interface includes a session message of the target session; displaying the session message and the alternative session identifier of the alternative session in which the target user participates on the same screen; in response to the user's drag input of the target session message in the session message, determining the drag path of the drag input, determining at least one alternative session identifier on the drag path as the target alternative session identifier, and using the target user identifier corresponding to the target user as the message sender, forwarding the target session message to the alternative session corresponding to the target alternative session identifier. The present application can display the session message and the alternative session identifier on the same screen, and determine the session message and the alternative session to be sent according to the user's input, so that the user can send the session message in one session to another session without jumping to the page, which not only improves the efficiency of the user sending the session message, but also avoids the problem of low message sending accuracy caused by the user copying and pasting the session message. At the same time, in response to the user's drag operation on the session message, the session message can be sent to multiple alternative sessions at one time, further improving the efficiency of sending messages.
[0119] Reference Figure 7 , Figure 7 is a flowchart of a message sending method in another embodiment, such as Figure 7 As shown, the specific steps include:
[0120] Step 301: Determine the number of times a session message in a target session is forwarded to other sessions within a preset time period.
[0121] In one embodiment, the electronic device determines the number of times a session message in a target session is forwarded to other sessions within a preset time period.
[0122] In the embodiment of the present application, the candidate session corresponding to the target session may also be automatically determined according to the number of message forwarding times that the session message in the target session is forwarded to other sessions.
[0123] Specifically, the number of times a session message in a target session is forwarded by a user to each other session within a preset time period can be determined, and the number of message forwardings corresponding to each other session can be updated according to a subsequent forwarding operation of the user. The forwarding can include a message forwarding operation performed by a user in a traditional message forwarding manner, or a forwarding operation in which a user sends a session message of the target session to other sessions in a copy-paste manner.
[0124] For example, a user participates in a conversation that includes Group A, Group B, and Group C. The user has forwarded 3 messages from Group A to Group B and 5 messages from Group A to Group C. If Group A is the target conversation, the number of message forwardings corresponding to Group B is 3, and the number of message forwardings corresponding to Group C is 5. If, in subsequent use, the user forwards another message from Group A to Group B, the number of message forwardings corresponding to Group B is updated to 4.
[0125] Since the preset time period refers to a historical period up to the current moment, the number of message forwardings corresponding to each other session may increase or decrease as time goes by, and the number of message forwardings may change dynamically.
[0126] Step 302: Determine other sessions whose message forwarding times are greater than or equal to a preset forwarding times as candidate sessions associated with the target session.
[0127] In one embodiment, the electronic device determines other sessions whose message forwarding times are greater than or equal to a preset forwarding times as candidate sessions associated with the target session.
[0128] For each target session, if it is detected that the number of message forwardings corresponding to a certain other session is greater than or equal to the preset number of forwardings, it means that the user has a high frequency of forwarding session messages from the target session to the other session. Then the other session can be determined as an alternative session corresponding to the target session, so that the user can use the message fast forwarding function for the alternative session.
[0129] After determining the candidate session corresponding to the target session according to the forwarding times, in order to improve the accuracy of the determined candidate session, association confirmation information may be sent to the user to prompt the user whether to associate the other session as the candidate session with the target session.
[0130] Reference Figure 8 , Figure 8 FIG. 1 is a schematic diagram of an interface for associating confirmation information in an embodiment. Figure 8 As shown, after determining that group A is a candidate session, association confirmation information 71, a confirmation button 72 and a cancel button 73 can be displayed to the user in a pop-up window. The user can add group A as a candidate session corresponding to the session of the group management department by clicking the confirmation button, and the user will not add group A as a candidate session corresponding to the group management department by clicking the cancel button. In addition, the association confirmation information can also be broadcasted by voice, and the user can turn on or off the voice broadcast function by setting a speaker button 74 in the display box of the association confirmation information.
[0131] In the embodiment of the present application, an alternative session corresponding to the target session can be automatically determined according to the number of message forwardings between the target session and other sessions, thereby improving the convenience for the user to set the alternative session corresponding to the target session.
[0132] Step 303: Obtain historical forwarding messages forwarded from the target session to each candidate session.
[0133] In one embodiment, the electronic device obtains historical forwarding messages forwarded from the target session to each candidate session.
[0134] A historical forwarded message refers to a conversation message that the user has forwarded from the target conversation to the alternative conversation. For example, the target conversation is a conversation of group A, and there are two chat records a and b in the conversation of group A. The user has forwarded chat record a to an alternative conversation B, and forwarded chat record b to another alternative conversation C. Then the historical forwarded message corresponding to alternative conversation B is chat record a, and the historical forwarded message corresponding to alternative conversation C is chat record b.
[0135] It should be noted that the extraction time range of historical forwarded messages may be a preset time before the current time, such as within 5 days or within 1 month, etc. The extraction time range of historical forwarded messages may also be the entire time since the user participated in the candidate session.
[0136] Step 304: extract keywords from the historical forwarded messages.
[0137] In one embodiment, the electronic device extracts keywords from the historical forwarding messages.
[0138] After the historical forwarding messages corresponding to the candidate sessions are determined, keywords may be extracted from the historical forwarding messages.
[0139] Specifically, the method for extracting keywords from historical forwarded messages can adopt a semantic analysis method to obtain semantically independent words from historical forwarded messages as keywords, or it can adopt a vocabulary matching method to match the character strings in the historical forwarded messages with the words in a preset vocabulary, and use the words in the preset vocabulary contained in the historical forwarded messages as keywords. Of course, other methods can also be used to extract keywords from historical forwarded messages. The embodiment of the present application does not specifically limit the method for obtaining keywords.
[0140] Step 305: Generate a keyword tag corresponding to the candidate conversation according to the historical forwarding times of each keyword.
[0141] In one embodiment, the electronic device generates a keyword tag corresponding to the candidate conversation according to the historical forwarding times of each keyword.
[0142] After determining the historical forwarding messages corresponding to each candidate session, keyword extraction can be performed on each historical forwarding message to obtain the keywords corresponding to each candidate session and the historical forwarding times corresponding to the keywords. For example, for an candidate session, the keyword "conference" is extracted from the three historical forwarding messages corresponding to the candidate session, and the historical forwarding times corresponding to the keyword "conference" for the candidate session is 3.
[0143] After determining the keywords corresponding to each candidate conversation and the number of forwarded messages corresponding to each keyword, the number of forwarded messages corresponding to each keyword can be compared with the preset number. If the historical forwarding number of a keyword corresponding to a candidate conversation is greater than or equal to the preset number, it means that the user has forwarded conversation messages containing the keyword from the target conversation to the candidate conversation many times in history. Therefore, the keyword can be determined as the keyword tag of the candidate conversation. The preset number can be manually adjusted by the user.
[0144] Furthermore, in the embodiment of the present application, the keywords with a history of forwarding times greater than or equal to a preset number of times can be directly used as the keyword tags of the candidate session. The keywords with a history of forwarding times greater than or equal to a preset number of times can also be expanded according to semantics, synonymous relationships, etc. to obtain related keywords with a high degree of similarity to the keywords with a history of forwarding times greater than or equal to a preset number of times, and then the keywords with a history of forwarding times greater than or equal to a preset number of times and the related keywords are used as the keyword tags of the candidate session.
[0145] In the embodiment of the present application, before adding the keyword tag to the candidate session, a tag adding prompt message may be displayed to the user, where the tag adding prompt message is used to ask the user whether to add the automatically determined keyword tag to the candidate session.
[0146] Reference Fig. 9 and Fig. 10A , Fig. 9 is a schematic diagram of an interface for adding a prompt message to a tag in an embodiment. Fig. 10A is a schematic diagram of an interface showing a result of adding a tag in an embodiment, such as Fig. 9 As shown, the user forwards a conversation message containing the keyword "security" to the security management group. At this time, the number of historical forwardings corresponding to the keyword reaches the preset number, and a pop-up window can be used to prompt the user: It is recognized that you often forward security-related messages to the security management group. Do you want to add "security" as a keyword tag for the security management group to facilitate quick forwarding of messages. It should be noted that the above prompt content can be flexibly adjusted according to actual needs, and the embodiments of the present application are not specifically limited here. Fig. 10AAs shown, after "security" is added as a keyword tag of the security management group, an alternative conversation list containing the keyword tag may be displayed.
[0147] While displaying the tag adding prompt information, you can also display OK and Cancel buttons for the user to confirm or cancel the tag adding operation.
[0148] In an embodiment of the present application, corresponding keyword tags can be automatically added to alternative sessions through historical forwarding messages, and the keyword tag adding action can be executed through user confirmation operations, which not only improves the convenience of adding keyword tags to alternative sessions, but also improves the accuracy of adding keyword tags.
[0149] In the embodiment of the present application, the user can also manually add keyword tags to each candidate conversation. Fig. 10B , Fig. 10B is a schematic diagram of an interface for adding keyword tags in an embodiment, such as Fig. 10B As shown, the user can call out the alternative session identifier corresponding to the target session in the session message interface 91 of the target session by swiping up or other gesture operations. The keyword tags 92 corresponding to each alternative session can be displayed near the alternative session identifier, and a tag adding control is also displayed for each alternative session. The user can add a keyword tag to the session corresponding to the safety promotion group by triggering the tag adding control 93 of the safety promotion group. After the user triggers the tag adding control 93, the tag entry interface 94 can be displayed to the user in the form of a pop-up window. The user can enter "fire prevention" in the tag input field of the tag entry interface, and add "fire prevention" as a tag of the safety promotion group through the Send Now button in the tag entry interface, or exit the tag adding process through the Return button in the tag entry interface.
[0150] Step 306: Match the keywords included in the conversation message with the keyword tags corresponding to the candidate conversations.
[0151] In one embodiment, the electronic device matches the keywords included in the conversation message with the keyword tags corresponding to the candidate conversation.
[0152] During actual use by the user, session messages sent by other members of the target session will often be received. Since in the embodiment of the present application, the target session corresponds to the alternative session and the alternative session has a keyword tag, the session message content of the target session can be matched with the keyword tag corresponding to the alternative session. If the match is successful, it means that the user is likely to forward the session message to the alternative session that matches it. At this time, the session message can be automatically forwarded to the alternative session, thereby improving the message forwarding efficiency.
[0153] In an embodiment of the present application, for a conversation message in a target conversation, the keyword tag corresponding to each alternative conversation may be matched with the content of the conversation message. If any keyword tag of an alternative conversation hits the content of the conversation message, it is determined that the alternative conversation matches the keyword tag.
[0154] For example, a conversation message "Please strengthen security patrols" is received from a target conversation, and a keyword tag of an alternative conversation security management group corresponding to the target conversation is "security". Then the keyword tag "security" of the alternative conversation can hit the conversation message "Please strengthen security patrols". At this time, it can be determined that the alternative conversation security management group matches the conversation message "Please strengthen security patrols".
[0155] Furthermore, in order to improve the matching accuracy, the keywords contained in the conversation message can also be matched with the keyword tags corresponding to the alternative conversations to determine the matching degree between the conversation message and the alternative conversations, and the conversation message and the alternative conversation whose matching degree exceeds the preset matching degree can be determined as the target conversation message and the target alternative conversation.
[0156] The matching degree can characterize the degree of matching between the semantic features of the second keyword and the semantic features of the labels of the alternative conversations. Specifically, after determining the second keyword of the conversation message, the second keyword can be input into the semantic feature model to determine the semantic features of the second keyword, and the semantic features of the second keyword can be compared with the semantic features of the labels corresponding to each alternative conversation. It should be noted that the semantic features of each second keyword of the conversation message can be compared with the semantic features of each label of each alternative conversation to determine the semantic matching degree of each second keyword with the label of each alternative conversation.
[0157] Specifically, for a conversation message and an alternative conversation, keywords can be first extracted from the conversation message. Then, the semantic matching degree between each keyword of the conversation message and each keyword tag of the alternative conversation is calculated. Finally, all semantic matching degrees between the conversation message and the alternative conversation are added together to obtain the matching degree of the conversation message corresponding to the alternative conversation. It should be noted that the number of keywords extracted from a conversation message can be multiple.
[0158] For example, the keywords "safety" and "production" are extracted from a conversation message received from the target conversation, and the keyword tags of an alternative conversation security management group corresponding to the target conversation include "safety" and "manufacturing". Then, through semantic matching, it is determined that the semantic matching degrees of the keyword "safety" and the keyword tags "safety" and "manufacturing" are 100% and 0% respectively, and the semantic matching degrees of the keyword "production" and the keyword tags "safety" and "manufacturing" are 0% and 70% respectively. Then, by summing up the semantic matching degrees, it can be obtained that the matching degree of the conversation message and the alternative conversation is 170%.
[0159] In addition, other methods may be used to determine the matching degree between the conversation message and the candidate conversation. For example, the maximum semantic matching degree among the semantic matching degrees between each keyword in the conversation message and the keyword tag of the candidate conversation may be used as the matching degree between the conversation message and the candidate conversation. The calculation method of the matching degree may be flexibly adjusted according to actual conditions, and the embodiments of the present application do not specifically limit it.
[0160] Furthermore, since not all session messages in the target session need to be forwarded, for example, if a session message in the target session is sent to members other than the target user, the session message is irrelevant to the target user, and it can be determined that the target user does not need to forward it, and thus it is not matched with the alternative session.
[0161] Specifically, a preset keyword may be set, and the preset keyword may indicate that the message needs to be processed by the target user, for example, the preset keyword may be @ALL, @everyone, @target user identifier, etc. If the conversation message of the target conversation contains the preset keyword, it may be determined that the conversation message needs to be processed and paid attention to by the target user, and then the keyword of the conversation message containing the preset keyword is matched with the keyword tag of the conversation message.
[0162] In addition, the preset keyword may also be a preset keyword indicating that the message needs to be forwarded, such as "forward", "issue", "publicize", etc. When the session message of the target session contains such preset keywords, it can be confirmed that the session message needs to be forwarded by the target user, and then the keywords of the session message containing such preset keywords are matched with the keyword tags of the session message.
[0163] In an embodiment of the present application, by setting preset keywords, conversation messages related to the target user and conversation messages that need to be forwarded can be identified, avoiding matching and calculating all conversation messages of the target conversation with the keyword tags of the alternative conversation, which not only reduces the resource consumption of the system, but also improves the accuracy of automatic message forwarding.
[0164] Step 307: Determine a target session message from the session messages according to the matching result, and determine a target candidate session identifier from the candidate session identifiers of the candidate sessions.
[0165] In one embodiment, the electronic device determines the target session message from the session message according to the matching result, and determines the target alternative session identifier from the alternative session identifiers of the alternative session.
[0166] After determining the matching degrees corresponding to the candidate sessions for the session messages of the target session, the matching degrees can be compared with the matching degree threshold. If the matching degree between a session message and a candidate session is greater than or equal to the matching degree threshold, it means that the user is likely to forward the session message to the candidate session. Therefore, the session message corresponding to the matching degree greater than or equal to the matching degree threshold can be determined as the target session message, and the candidate session corresponding to the matching degree can be determined as the target candidate session.
[0167] Step 308: Using the target user identifier corresponding to the target user as the message sender, forward the target session message to the candidate session corresponding to the target candidate session identifier.
[0168] In one embodiment, the electronic device uses the target user identifier corresponding to the target user as the message sender, and forwards the target session message to the alternative session corresponding to the target alternative session identifier.
[0169] After determining the target session message and the target candidate session, the target session message can be directly sent to the target candidate session in the background. In addition, before sending the message, confirmation forwarding information can be displayed to the user to ask the user whether to forward the target session message to the target candidate session, and after the corresponding confirmation operation with the user, the target session message is sent to the target candidate session.
[0170] In an embodiment of the present application, the conversation message of the target conversation can be matched with the keyword tags of each alternative conversation, and the target conversation message and the target alternative conversation can be determined according to the matching result, and the target conversation message can be automatically sent to the target alternative conversation, thereby improving the efficiency of message forwarding.
[0171] Furthermore, in some cases, the target session message may contain indication information indicating that the message needs to be forwarded, such as words such as "forward", "issue", "publicize", etc. When the user forwards such a target session message, it is not necessary to forward the indication information indicating that the message needs to be forwarded. For example, for a target session message "@all please publicize in the group, pay attention to the safety of water heater use", "please publicize in the group" is indication information and does not need to be included in the forwarded content. Therefore, when it is identified that the target session message contains indication information that needs to be forwarded, it is possible to further determine the specific content to be forwarded to the target alternative session, and forward the content to be forwarded to the target alternative session.
[0172] Reference Fig.11A and Fig. 11B , Fig.11A is a schematic diagram of an interface showing a message forwarding result in an embodiment. Fig. 11B is a schematic diagram of an interface of a message forwarding result in an embodiment, such as Fig.11A As shown in the interface, the user has a target session message "@all please publicize in the group, pay attention to the safety of water heater use" in the session of the management department. The target candidate session corresponding to the target session message is the safety production group. Since the target session message contains the instruction information "publicize" that needs to be forwarded, the content after the instruction information "publicize" is extracted to obtain the content to be forwarded. In the actual forwarding process, "@all pay attention to the safety of water heater use" is forwarded to the target candidate session safety production group, and the following is obtained. Fig. 11B The target alternative session shown in the interface is the session interface of the safety production team.
[0173] In summary, a message sending method provided by an embodiment of the present application can automatically determine the candidate session corresponding to the target session according to the number of message forwardings between the target session and other sessions in the embodiment of the present application, thereby improving the convenience for the user to set the candidate session corresponding to the target session. After receiving the session message, the keyword tag corresponding to each candidate session can also be matched with the content of the session message to determine the corresponding relationship between the session message and the keyword tag, thereby determining the candidate session corresponding to the session message, and automatically sending the target session message to the target candidate session, further improving the efficiency of message forwarding.
[0174] The message sending method provided in the embodiment of the present application can be executed by a message sending device. In the embodiment of the present application, a method for a message sending device to execute message forwarding is taken as an example to illustrate the message sending device provided in the embodiment of the present application.
[0175] Reference Fig.12 , Fig.12 is a block diagram of a message sending device in an embodiment, such as Fig.12As shown, the message sending device includes:
[0176] The first display module 401 is used to display a session message interface of a target session in which a target user participates; the session message interface includes session messages of the target session;
[0177] A second display module 402, configured to display the conversation message and the alternative conversation identifier of the alternative conversation in which the target user participates on the same screen;
[0178] The first sending module 403 is used to respond to the input of the target session message in the session message and the target alternative session identifier in the alternative session identifier, take the target user identifier corresponding to the target user as the message sender, and forward the target session message to the alternative session corresponding to the target alternative session identifier.
[0179] Optionally, the candidate session identifier of the candidate session is a session identifier associated with the target session.
[0180] Optionally, the device further comprises:
[0181] A candidate session identifier module, configured to display a candidate session identifier of a candidate session in which the target user participates, in response to a user input to a session association control displayed in the session message interface;
[0182] The candidate session module is used to determine the target candidate session corresponding to the target candidate session identifier as the candidate session associated with the target session in response to the user input of the target candidate session identifier.
[0183] Optionally, the device further comprises:
[0184] A first dragging module, configured to determine a release position of a dragging input in response to a user's dragging input of a target conversation message in the conversation message;
[0185] The first target candidate session module is configured to determine the candidate session identifier overlapping with the release position as the target candidate session identifier.
[0186] Optionally, the device further comprises:
[0187] A second dragging module, configured to determine a dragging path of the dragging input in response to a user's dragging input of a target conversation message in the conversation message;
[0188] The second target candidate session module is configured to determine at least one candidate session identifier on the dragging path as the target candidate session identifier.
[0189] Optionally, the device further comprises:
[0190] A matching module, used to match the keywords included in the conversation message with the keyword tags corresponding to the candidate conversation;
[0191] A target candidate session identifier module, configured to determine a target session message from the session message according to a matching result, and determine a target candidate session identifier from the candidate session identifiers of the candidate session;
[0192] The second sending module is configured to use a target user identifier corresponding to the target user as a message sender to forward the target session message to an alternative session corresponding to the target alternative session identifier.
[0193] Optionally, the device further comprises:
[0194] A history forwarding module, used to obtain a history forwarding message forwarded from the target session to each candidate session;
[0195] A keyword module, used to extract keywords from the historical forwarded messages;
[0196] The keyword tag module is used to generate a keyword tag corresponding to the candidate session according to the historical forwarding times of each keyword.
[0197] In summary, a message sending device provided by an embodiment of the present application includes a first display module, which is used to display a session message interface of a target session in which a target user participates; the session message interface includes a session message of the target session; a second display module, which is used to display the session message and an alternative session identifier of an alternative session in which the target user participates on the same screen; and a first sending module, which is used to respond to the input of a target session message in the session message and a target alternative session identifier in the alternative session identifier, and forward the target session message to the alternative session corresponding to the target alternative session identifier with the target user identifier corresponding to the target user as the message sender. In this way, since the session message of the target session and the alternative session identifier of the alternative session in which the target user participates are displayed on the same screen, the user inputs the target session message in the session message and the target alternative session identifier in the alternative session identifier, and the target session message can be forwarded to the alternative session corresponding to the target alternative session identifier, without jumping out of the session message interface of the target session, thereby avoiding cumbersome operations, and reducing the risk of missing or wrongly sending messages, thereby improving the message forwarding efficiency.
[0198] The message sending device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0199] The message sending device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0200] The message sending device provided in the embodiment of the present application can implement each process implemented by the method embodiments of Figures 1 to 11. To avoid repetition, they will not be described here.
[0201] Optionally, Fig.13 is an electronic device in an embodiment, such as Fig.13 As shown, an embodiment of the present application also provides an electronic device 1300, including a processor 1301 and a memory 1302, wherein the memory 1302 stores a program or instruction that can be executed on the processor 1301, and when the program or instruction is executed by the processor 1301, the various steps of the embodiment of the above-mentioned message sending method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0202] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0203] Fig.14 The figure is a schematic diagram of the hardware structure of an electronic device in an embodiment.
[0204] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0205] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0206] The display unit 106 is used to display a session message interface of a target session in which a target user participates; the session message interface includes session messages of the target session; and the session messages and alternative session identifiers of the alternative sessions in which the target user participates are displayed on the same screen;
[0207] The user input unit 107 is used to receive input of a target session message in a session message and a target alternative session identifier in the alternative session identifier, and the processor 110 is used to respond to the input of the target session message and the target alternative session identifier, use the target user identifier corresponding to the target user as the message sender, and forward the target session message to the alternative session corresponding to the target alternative session identifier.
[0208] The user input unit 107 is used to receive a user input to a session association control displayed in the session message interface, and the display unit 106 is used to display a candidate session identifier of a candidate session in which the target user participates in response to the user input to the session association control displayed in the session message interface;
[0209] The user input unit 107 is used to receive a user input of a target candidate session identifier among the candidate session identifiers, and the processor 110 is used to determine, in response to the user input of the target candidate session identifier among the candidate session identifiers, a target candidate session corresponding to the target candidate session identifier as an alternative session associated with the target session.
[0210] The user input unit 107 is used to receive a user's drag input on a target conversation message in the conversation message, and the processor 110 is used to determine a release position of the drag input in response to the user's drag input on the target conversation message in the conversation message.
[0211] The processor 110 is configured to determine the candidate session identifier overlapping with the release position as the target candidate session identifier.
[0212] The user input unit 107 is used to receive a user's drag input on a target conversation message in the conversation message, and the processor 110 is used to determine a drag path of the drag input in response to the user's drag input on the target conversation message in the conversation message.
[0213] The processor 110 is configured to determine at least one candidate session identifier on the dragging path as the target candidate session identifier.
[0214] The processor 110 is configured to match the keyword included in the conversation message with the keyword tag corresponding to the candidate conversation.
[0215] The processor 110 is configured to determine a target session message from the session messages according to the matching result, and determine a target candidate session identifier from the candidate session identifiers of the candidate sessions.
[0216] The processor 110 is configured to use the target user identifier corresponding to the target user as a message sender, and forward the target session message to the candidate session corresponding to the target candidate session identifier.
[0217] The processor 110 is configured to obtain a historical forwarding message forwarded from the target session to each candidate session.
[0218] The processor 110 is configured to extract keywords from the historical forwarding messages.
[0219] The processor 110 is configured to generate a keyword tag corresponding to the candidate session according to the historical forwarding times of each keyword.
[0220] In summary, a message sending method provided by an embodiment of the present application, since the session message of the target session and the alternative session identifier of the alternative session in which the target user participates are displayed on the same screen, the user inputs the target session message in the session message and the target alternative session identifier in the alternative session identifier, and the target session message can be forwarded to the alternative session corresponding to the target alternative session identifier, without jumping out of the session message interface of the target session, thereby avoiding cumbersome operations and reducing the risk of missing or wrong sending of messages, thereby improving the efficiency of message forwarding.
[0221] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0222] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0223] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
[0224] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the embodiment of the above-mentioned message sending method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0225] 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 computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0226] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the embodiment of the above-mentioned message sending method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0227] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0228] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned message sending method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0229] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0230] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0231] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A message sending method, It is characterized in that The method comprises: Displaying a session message interface of a target session in which a target user participates; the session message interface includes a session message of the target session and an alternative session identifier of an alternative session in which the target user participates; the alternative session has an association relationship with the target session, and the association relationship between the alternative session and the target session is established through a session association control in the session message interface of the target session; In response to input of a target session message in the session message and a target alternative session identifier in the alternative session identifier, the target session message is forwarded to the alternative session corresponding to the target alternative session identifier, with the target user identifier corresponding to the target user as the message sender.
2. The method according to claim 1, It is characterized in that The method further comprises: In response to a user input to a session association control displayed in the session message interface, displaying a candidate session identifier of a candidate session in which the target user participates; In response to a user input of a target candidate session identifier in the candidate session identifiers, a target candidate session corresponding to the target candidate session identifier is determined as a candidate session associated with the target session.
3. The method according to claim 1, It is characterized in that The method further comprises: In response to a user's dragging input on a target conversation message in the conversation messages, determining a release position of the dragging input; The candidate session identifier overlapping with the release position is determined as the target candidate session identifier.
4. The method according to claim 1, It is characterized in that The method further comprises: In response to a user's dragging input of a target conversation message in the conversation messages, determining a dragging path of the dragging input; At least one candidate session identifier on the dragging path is determined as the target candidate session identifier.
5. The method according to claim 1, It is characterized in that The method further comprises: Matching the keywords included in the conversation message with the keyword tags corresponding to the candidate conversations; Determine the target session message from the session message according to the matching result, and determine the target candidate session identifier from the candidate session identifiers of the candidate session; The target user identifier corresponding to the target user is used as the message sender, and the target session message is forwarded to the candidate session corresponding to the target candidate session identifier.
6. The method according to claim 5, It is characterized in that The method further comprises: Acquire a historical forwarding message forwarded from the target session to each candidate session; Extracting keywords from the historical forwarded messages; A keyword tag corresponding to the candidate session is generated according to the historical forwarding times of each keyword.
7. A message sending device, It is characterized in that The device comprises: A first display module is used to display a session message interface of a target session in which a target user participates; the session message interface includes a session message of the target session and an alternative session identifier of an alternative session in which the target user participates; the alternative session has an association relationship with the target session, and the association relationship between the alternative session and the target session is established through a session association control in the session message interface of the target session; The first sending module is used to respond to the input of the target session message in the session message and the target alternative session identifier in the alternative session identifier, take the target user identifier corresponding to the target user as the message sender, and forward the target session message to the alternative session corresponding to the target alternative session identifier.
8. An electronic device, It is characterized in that It comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the message sending method according to any one of claims 1 to 6 are implemented.
9. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the message sending method according to any one of claims 1 to 6 are implemented.
