CN116032870A - Message processing method, device, electronic equipment and medium - Google Patents

Message processing method, device, electronic equipment and medium Download PDF

Info

Publication number
CN116032870A
CN116032870A CN202310054542.6A CN202310054542A CN116032870A CN 116032870 A CN116032870 A CN 116032870A CN 202310054542 A CN202310054542 A CN 202310054542A CN 116032870 A CN116032870 A CN 116032870A
Authority
CN
China
Prior art keywords
message
target
session window
electronic device
target session
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310054542.6A
Other languages
Chinese (zh)
Inventor
梁长辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310054542.6A priority Critical patent/CN116032870A/en
Publication of CN116032870A publication Critical patent/CN116032870A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a message processing method, a message processing device, electronic equipment and a medium, and belongs to the technical field of electronics. The message processing method provided by the embodiment of the application comprises the following steps: in the event that the target session window is not displayed and the message in the target session window is not updated, performing a first operation comprising at least one of: sending a message through a target port, and displaying a target session window, wherein the target port is used for transmitting the message in the target session window; receiving a first message through a destination port; updating a second message in the target session window into a third message according to the first message, wherein the second message is a message transmitted by the target port; and sending a third message to the second electronic device.

Description

Message processing method, device, electronic equipment and medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a message processing method, a message processing device, electronic equipment and a medium.
Background
At present, if a user wants to reply to a message in a certain session window of a certain application, the user can trigger the electronic device to display the application interface of the certain application first, and then trigger the electronic device to display a certain session window in the application interface, so that the electronic device can receive the message through a transmission port corresponding to the certain session window and display the message in the certain session window, and the user can reply according to the message in the certain session window.
However, since the user needs to perform multiple operations to trigger the electronic device to display the message in a certain session window of a certain application, the operation of the user in the process of replying to the message in the certain session window is cumbersome and time-consuming. As such, the efficiency of the electronic device to reply to the message is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide a message processing method, apparatus, electronic device, and medium, which can solve a problem that the efficiency of replying a message by an electronic device is low.
In a first aspect, an embodiment of the present application provides a message processing method, performed by a first electronic device, including: in the event that the target session window is not displayed and the message in the target session window is not updated, performing a first operation comprising at least one of: sending a message through a target port, and displaying a target session window, wherein the target port is used for transmitting the message in the target session window; receiving a first message through a destination port; updating a second message in the target session window into a third message according to the first message, wherein the second message is a message transmitted by the target port; and sending a third message to the second electronic device.
In a second aspect, an embodiment of the present application provides a message processing apparatus, which is a first message processing apparatus, including: the device comprises an execution module, a receiving module, an updating module and a sending module. The execution module is used for executing a first operation under the condition that the target session window is not displayed and the message in the target session window is not updated, wherein the first operation comprises at least one of the following steps: and sending the message through the target port, and displaying the target session window, wherein the target port is used for transmitting the message in the target session window. And the receiving module is used for receiving the first message through the target port. And the updating module is used for updating the second message in the target session window into a third message according to the first message received by the receiving module, wherein the second message is the message transmitted by the target port. And the sending module is used for sending the third message updated by the updating module to the second message processing device.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In this embodiment of the present application, the first electronic device may perform a first operation when the target session window is not displayed and the message in the target session window is not updated, where the first operation includes at least one of sending the message through the target port (for transmitting the message in the target session window) and displaying the target session window, so that the first electronic device may receive the first message through the target port, update the second message in the target session window (i.e. the message transmitted by the target port) to a third message according to the first message, and send the third message to the second electronic device. Under the condition that the target session window is not displayed and the message in the target session window is not updated, the first electronic device can send the message through the target port and/or display the target session window, so that the first electronic device can update and obtain the third message in the target session window according to the first message received through the target port and according to the first message and the second message, the first electronic device can send the third message to the second electronic device to display the third message through the second electronic device, multiple operations are not needed by a user to trigger the first electronic device to display the third message, the operation of the user in the process of replying the third message can be simplified, time consumption is reduced, and the message replying efficiency of the first electronic device is improved.
Drawings
Fig. 1 is a schematic flow chart of a message processing method according to an embodiment of the present application;
FIG. 2 is a second flow chart of a message processing method according to the embodiment of the present application;
FIG. 3 is a third flow chart of a message processing method according to the embodiment of the present application;
FIG. 4 is a flowchart of a message processing method according to an embodiment of the present disclosure;
FIG. 5 is a fifth flow chart of a message processing method according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The message processing method, device, electronic equipment and medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings by means of specific embodiments and application scenarios thereof.
In the message processing method, the device, the electronic equipment and the medium provided in the embodiments of the present application, the first electronic equipment may perform a first operation under the condition that the target session window is not displayed and the message in the target session window is not updated, where the first operation includes at least one of sending the message through the target port (for transmitting the message in the target session window) and displaying the target session window, so that the first electronic equipment may receive the first message through the target port, update the second message in the target session window (that is, the message transmitted by the target port) to be the third message according to the first message, and send the third message to the second electronic equipment. Under the condition that the target session window is not displayed and the message in the target session window is not updated, the first electronic device can send the message through the target port and/or display the target session window, so that the first electronic device can update and obtain the third message in the target session window according to the first message received through the target port and according to the first message and the second message, the first electronic device can send the third message to the second electronic device to display the third message through the second electronic device, multiple operations are not needed by a user to trigger the first electronic device to display the third message, the operation of the user in the process of replying the third message can be simplified, time consumption is reduced, and therefore the efficiency of replying the message by the first electronic device can be improved.
The execution body of the message processing method provided in this embodiment may be a message processing apparatus, and the message processing apparatus may be an electronic device, or may be a control module or a processing module in the electronic device. The technical solutions provided in the embodiments of the present application are described below by taking an electronic device as an example.
An embodiment of the present application provides a message processing method, which is executed by a first electronic device, as shown in a flow chart of the message processing method shown in fig. 1, and includes the following steps:
step 101, in a case that the target session window is not displayed and the message in the target session window is not updated, the first electronic device performs a first operation.
In an embodiment of the present application, the first operation includes at least one of: and sending the message through the target port, and displaying the target session window, wherein the target port is used for transmitting the message in the target session window.
Optionally, in the embodiment of the present application, in a case where a first application interface of the first application is displayed (where the first application interface includes a target session window), the first electronic device may display the target interface according to an input by a user to the first electronic device, so that the first electronic device may determine whether the target session window is displayed and whether a message in the target session window is updated, and further, in a case where the first electronic device determines that the target session window is not displayed and that the message in the target session window is not updated, the first electronic device may execute the first operation.
Wherein, the application type of the first application may be any one of the following: game-like applications, short video interactive-like applications, live-broadcast-like applications, movie-viewing-like applications, etc. The first application interface may be: any one of the application interfaces of the first application.
Wherein the target interface may be any of the following: the desktop interface, a second application interface of the first application and an application interface of the second application; the second application interface is as follows: any application interface except the first application interface in the application interfaces of the first application; the second application is: any application other than the first application among the applications of the first electronic device. The target session window may specifically be: any session window in the first application.
The first electronic device may detect an operation state of the target session window to determine whether to display the target session window, and may detect a receiving time of the seventh message in the target session window to determine whether to update the message in the target session window.
The above-described operation state may be any one of the following: foreground running state and background running state. It may be appreciated that in a case where the running state of the target session window is the foreground running state, the first electronic device may determine to display the target session window.
The seventh message may be: the last message in the target session window. It may be appreciated that in a case where a time interval between the time of receipt of the seventh message and the current system time of the first electronic device is greater than or equal to a preset time interval, the first electronic device may determine that the message in the target session window is not updated.
In this embodiment of the present application, if the first electronic device does not display the target session window, the first electronic device may deactivate the target port in order to save port resources, that is, the first electronic device may not be able to transmit the message in the target session window through the target port, so the first electronic device may perform the first operation (that is, at least one of sending the message through the target port and displaying the target session window) to activate the target port.
It will be appreciated that the destination port is used to transmit messages in the messaging queue of the destination session window.
Optionally, in an embodiment of the present application, in a case where the first operation includes sending a message through the destination port, the message content of the message may include at least one of: presetting characters and blank message contents. The preset characters may include at least one of: preset numbers, preset letters, preset words, preset symbols, etc.
It should be noted that, the "blank message content" may be understood as: the message content of the message is empty.
Optionally, in a possible implementation manner of an embodiment of the present application, the first operation includes sending a message through the destination port. Specifically, as shown in fig. 2 in conjunction with fig. 1, the above step 101 may be specifically implemented by the following step 101 a.
In step 101a, in the case that the target session window is not displayed and the message in the target session window is not updated, the first electronic device sends a fourth message to the server through the target port.
In this embodiment of the present application, the message content in the fourth message is null, or the message content in the fourth message includes the target character. The first message is a message fed back by the server in response to the fourth message.
Alternatively, in the embodiment of the present application, the server may be a server corresponding to the first application.
That is, the first electronic device may activate the destination port by sending a null packet or a data packet containing a specific character to simulate the user's action of triggering the first electronic device to send a message in the destination session window, so that the first electronic device may sniff from the server whether a new message (i.e., the first message) exists in the destination session window.
Optionally, in the embodiment of the present application, the first electronic device may send, to the server, N times of fourth messages through the target port within a first predetermined duration, where N is a positive integer.
In this way, the first electronic device can actively sniff the target session window by sending the fourth message, so that a new message (i.e., the first message) in the target session window can be actively acquired, timely sending of various messages in the target session window is ensured, and further timely sending of the new message in the target session window to the second electronic device is ensured.
Alternatively, in the embodiment of the present application, in a case where the first operation includes displaying the target session window, the first electronic device may hover display the target session window on the target interface, or may switch the target interface to the first application interface.
Optionally, in another possible implementation manner of the embodiment of the present application, the first operation includes displaying a target session window. Specifically, as shown in fig. 3 in conjunction with fig. 1, the above step 101 may be specifically implemented by the following step 101 b.
Step 101b, in the case that the target session window is not displayed and the message in the target session window is not updated, in the case that the message is not received through the target port within the first predetermined time period, displaying the target session window within the first time period.
In this embodiment of the present application, the first electronic device does not receive the operation of the user on the first electronic device in the first period.
It is understood that the first electronic device may continue to display the target session window until the first electronic device does not receive the user's operation on the first electronic device.
Optionally, in the embodiment of the present application, the first electronic device may simulate an operation event of a user, so that the first electronic device may switch the target interface to the first application interface to display the target session window.
Optionally, in the embodiment of the present application, after displaying the target session window, in a case that the first electronic device receives the operation of the user on the first electronic device, the first electronic device may switch the first application interface to the target interface.
In this embodiment of the present application, if the message is not received through the target port within the first predetermined time period, it may be considered that the first electronic device does not sniff from the server whether a new message (i.e., the first message) exists in the target session window. Therefore, the first electronic device can simulate the operation of opening the target session window by a user, and the target session window is displayed on the first application interface, so that the first electronic device can activate the target port.
In this way, the first electronic device can display the target session window in the first time period under the condition that the first electronic device does not receive the message through the target port in the first preset time period, so that the first electronic device can actively acquire the new message in the target session window from the server, timely sending of various messages in the target session window is ensured, and further the first electronic device can timely send the new message in the target session window to the second electronic device.
Step 102, the first electronic device receives a first message through a destination port.
Optionally, in an embodiment of the present application, the first electronic device may receive the first message from the server through the destination port.
Step 103, the first electronic device updates the second message in the target session window to the third message according to the first message.
In this embodiment of the present application, the second message is a message transmitted by the destination port.
Optionally, in the embodiment of the present application, the first electronic device may add the first message to the second message, so as to update the second message to the third message.
Optionally, in the embodiment of the present application, after the first electronic device updates the second message to the third message, the first electronic device may store the third message in a storage area corresponding to the target port.
Further, the electronic device may delete the second message in the storage area corresponding to the destination port, and then store the third message in the storage area corresponding to the destination port.
Step 104, the first electronic device sends a third message to the second electronic device.
Optionally, in the embodiment of the present application, the first electronic device may first establish a wireless connection with the second electronic device, and then send the third message to the second electronic device. Wherein the wireless connection may be any of the following: bluetooth connection, wireless fidelity (Wi-Fi) connection, 2.4G wireless connection, etc.
It should be noted that, for the description of establishing the wireless connection between the first electronic device and the second electronic device, reference may be made to specific descriptions in the related art, and the embodiments of the present application are not repeated herein.
Optionally, in the embodiment of the present application, after the first electronic device sends the third message to the second electronic device, the second electronic device may display the third message, so that the user may reply according to the third message.
Further, the user may reply on the first electronic device according to the third message, or may reply on the second electronic device according to the third message.
In this embodiment of the present application, after the first electronic device sends the second electronic device of the third message, the first electronic device may repeatedly execute steps 101 to 104 to send the message in the target session window to the second electronic device in real time, so that the user may view the message in the target session window on the second electronic device.
According to the message processing method provided by the embodiment of the application, the first electronic device can execute the first operation under the condition that the target session window is not displayed and the message in the target session window is not updated, the first operation comprises at least one of sending the message through the target port (used for transmitting the message in the target session window) and displaying the target session window, so that the first electronic device can receive the first message through the target port, update the second message in the target session window (namely, the message transmitted by the target port) into the third message according to the first message, and send the third message to the second electronic device. Under the condition that the target session window is not displayed and the message in the target session window is not updated, the first electronic device can send the message through the target port and/or display the target session window, so that the first electronic device can update and obtain the third message in the target session window according to the first message received through the target port and according to the first message and the second message, the first electronic device can send the third message to the second electronic device to display the third message through the second electronic device, multiple operations are not needed by a user to trigger the first electronic device to display the third message, the operation of the user in the process of replying the third message can be simplified, time consumption is reduced, and therefore the efficiency of replying the message by the first electronic device can be improved.
Optionally, in the embodiment of the present application, before step 101, the method for processing a message provided in the embodiment of the present application may further include step 201 described below.
Step 201, the first electronic device obtains the second message in the case that the target session window is displayed and the first condition is satisfied.
In an embodiment of the present application, the first condition includes any one of the following: an input is received to the target session window, determining that a message in the target session window is receivable through the target port.
Optionally, in the embodiment of the present application, in a case where the first electronic device displays the target session window, the first electronic device may analyze the system transceiving data packet to determine the target port, so that the first electronic device may determine whether the first condition is met.
Optionally, in the embodiment of the present application, in a case where the first condition includes receiving an input to the target session window, the input may specifically be any one of the following: long press input, preset times click input. At this point, the first electronic device may detect the display screen to determine whether an input to the target session window is received to determine whether the first condition is satisfied.
It is to be appreciated that the target session window can be a user-selected session window.
Optionally, in an embodiment of the present application, where the first condition includes determining that the message in the target session window is receivable through the target port, the first electronic device may interact with the server through the target port to determine whether the message in the target session window is receivable through the target port.
It will be appreciated that the target session window may also be a selected session window for the first electronic device.
In the embodiment of the present application, if the target session window is displayed and the first condition is met, it may be considered that the user may need to view the message (for example, the third message) in the target session window, and thus, the first electronic device may acquire the second message.
Optionally, in the embodiment of the present application, in a case where the target session window is displayed and the first condition is satisfied, the first electronic device may determine a message storage area corresponding to the target port, and acquire the second message from the message storage area. The message storage area is used for storing the messages transmitted by the target port.
Therefore, under the condition that the user needs to view the messages in the target session window, the first electronic device can directly acquire the second message and directly update the second message according to the first message and the second message to obtain the third message, and therefore the first electronic device can timely send the third message to the second electronic device.
The following will take the example of a user replying to a message on a second electronic device, for example, how the user replies to the message.
Optionally, in the embodiment of the present application, as shown in fig. 4 in conjunction with fig. 1, after step 104 described above, the message processing method provided in the embodiment of the present application may further include steps 301 and 302 described below.
Step 301, the first electronic device receives a fifth message sent by the second electronic device.
Optionally, in the embodiment of the present application, after the first electronic device sends the third message to the second electronic device, the second electronic device may display the third message and an input box, so that the user may input, according to the third message, the first message content in the input box, so that the second electronic device may generate a fifth message according to the first message content, and send the fifth message to the second electronic device.
Step 302, the first electronic device sends a fifth message to the server through the destination port.
Alternatively, in the embodiment of the present application, in a case where the first electronic device has activated the target port, the first electronic device may send the fifth message to the server directly through the target port.
Therefore, the first electronic device can send the fifth message to the server through the target port without triggering the first electronic device to display the target session window by the user, so that the utilization rate of the display space of the first electronic device can be improved.
Optionally, in the embodiment of the present application, as shown in fig. 5 in conjunction with fig. 1, after step 104, the message processing method provided in the embodiment of the present application may further include steps 401 to 403 described below.
Step 401, the first electronic device receives a sixth message sent by the second electronic device.
Optionally, in the embodiment of the present application, after the first electronic device sends the third message to the second electronic device, the second electronic device may display the third message and an input box, so that the user may input, according to the third message, the second message content in the input box, so that the second electronic device may generate a sixth message according to the second message content, and send the sixth message to the second electronic device.
Step 402, the first electronic device displays a target message session window during a second period of time.
In this embodiment of the present application, the first electronic device does not receive the operation of the user on the first electronic device in the second period.
Optionally, in the embodiment of the present application, in a case where the first electronic device does not activate the target port, the first electronic device may display the target message session window in the second period.
Optionally, in the embodiment of the present application, the first electronic device may simulate an operation event of a user, so that the first electronic device may switch the target interface to the first application interface to display the target session window.
Step 403, the first electronic device sends a sixth message to the server through the destination port.
Therefore, the first electronic device can directly display the target message session window in the second period, so that the situation that the first electronic device cannot send the sixth message due to the fact that the target port is not activated can be avoided, and the first electronic device can timely send the sixth message to the server.
According to the message processing method provided by the embodiment of the application, the execution body can be a message processing device. In the embodiment of the present application, a message processing device executes a message processing method by using a message processing device as an example, and the message processing device provided in the embodiment of the present application is described.
An embodiment of the present application provides a message processing apparatus, which is a first message processing apparatus, as shown in fig. 6, where the first message processing apparatus 500 includes: an execution module 501, a receiving module 502, an updating module 503, and a sending module 504. Wherein, the execution module 501 is configured to execute, in a case where the target session window is not displayed and the message in the target session window is not updated, a first operation, where the first operation includes at least one of: and sending the message through the target port, and displaying the target session window, wherein the target port is used for transmitting the message in the target session window. A receiving module 502, configured to receive a first message through a destination port. An updating module 503, configured to update, according to the first message received by the receiving module 502, a second message in the target session window to a third message, where the second message is a message transmitted by the target port. A sending module 504, configured to send the third message updated by the updating module 503 to the second message processing apparatus.
In one possible implementation manner, the first operation includes sending a message through the destination port, and the executing module 501 includes: and a first transmitting sub-module. The first sending submodule is used for sending a fourth message to the server through the target port, wherein the message content in the fourth message is empty, or the message content in the fourth message comprises target characters. Wherein, the first message is a message fed back by the server in response to the fourth message.
Thus, the first message processing device can actively sniff the target session window by sending the fourth message, so that new messages (namely the first message) in the target session window can be actively acquired, timely sending of various messages in the target session window is ensured, and further timely sending of the new messages in the target session window to the second message processing device is ensured.
In one possible implementation, the first operation includes displaying a target session window, and the executing module 501 includes: and a first display sub-module. The first display sub-module is configured to display, in a first period of time, a target message session window when a message is not received through the target port for a first predetermined period of time, where the first message processing apparatus 500 does not receive an operation of the first message processing apparatus 500 by a user.
In this way, the first message processing device can display the target session window in the first time period under the condition that the first message processing device does not receive the message through the target port in the first preset time period, so that the first message processing device can actively acquire the new message in the target session window from the server, timely sending of various messages in the target session window is ensured, and further the first message processing device can timely send the new message in the target session window to the second message processing device.
In one possible implementation manner, the first message processing apparatus 500 provided in the embodiment of the present application may further include: and an acquisition module. The acquiring module is used for acquiring the second message under the condition that the target message session window is displayed and the first condition is met. Wherein the first condition includes any one of: receiving input into the target message session window, determining that a message in the target message session window is receivable through the target port.
In this way, the first message processing device can directly acquire the second message and directly update the second message to obtain the third message according to the first message and the second message under the condition that the user needs to view the message in the target session window, so that the first message processing device can timely send the third message to the second message processing device.
In a possible implementation manner, the receiving module 502 is further configured to receive a fifth message sent by the second message processing apparatus. The sending module 504 is further configured to send the fifth message received by the receiving module 502 to the server through the destination port.
In this way, since the first message processing apparatus can send the fifth message to the server through the destination port without the user triggering the first message processing apparatus to display the destination session window, the utilization rate of the display space of the first message processing apparatus can be improved.
In a possible implementation manner, the receiving module 502 is further configured to receive a sixth message sent by the second message processing apparatus. The sending module 504 is further configured to send the sixth message received by the receiving module 502 to the server through the destination port.
In this way, since the first message processing apparatus can directly display the target message session window in the second period, a situation that the first message processing apparatus cannot send the sixth message due to the inactivity of the target port can be avoided, and thus the first message processing apparatus can send the sixth message to the server in time.
According to the message processing device provided by the embodiment of the invention, under the condition that the target session window is not displayed and the message in the target session window is not updated, the first message processing device can send the message through the target port and/or display the target session window, so that the first message processing device can update and obtain the third message in the target session window according to the first message received through the target port and according to the first message and the second message, the first message processing device can send the third message to the second message processing device so as to display the third message through the second message processing device, and the user does not need to perform multiple operations to trigger the first message processing device to display the third message, therefore, the operation of the user in the process of replying the third message can be simplified, the time consumption is reduced, and the message replying efficiency of the first message processing device can be improved.
The message processing apparatus in the embodiments of the present application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile internet appliance (MobileInternetDevice, MID), an Augmented Reality (AR)/Virtual Reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and may also be a server, a network attached storage (NetworkAttachedStorage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine or a self-service machine, etc., and the embodiments of the present application are not particularly limited.
The message processing apparatus in the embodiment of the present application may be an apparatus 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 embodiments of the present application.
The message processing device provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and in order to avoid repetition, details are not repeated here.
Optionally, as shown in fig. 7, the embodiment of the present application further provides an electronic device 600, including a processor 601 and a memory 602, where the memory 602 stores a program or an instruction that can be executed on the processor 601, and the program or the instruction implement each step of the method embodiment of the message processing method described above when executed by the processor 601, and achieve the same technical effect, so that repetition is avoided and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic hardware structure of an electronic device, which is a first electronic device, for implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 710 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 710 is configured to perform a first operation in a case where the target session window is not displayed and the message in the target session window is not updated, the first operation including at least one of: and sending the message through the target port, and displaying the target session window, wherein the target port is used for transmitting the message in the target session window.
A radio unit 701, configured to receive a first message through a destination port.
The processor 710 updates a second message in the target session window to a third message based on the first message, the second message being a message that has been transmitted by the target port.
The radio frequency unit 701 is further configured to send a third message to the second electronic device.
According to the electronic device provided by the embodiment of the invention, the electronic device is the first electronic device, and under the condition that the target session window is not displayed and the message in the target session window is not updated, the first electronic device can send the message through the target port and/or display the target session window, so that the first electronic device can update and obtain the third message in the target session window according to the first message received through the target port and according to the first message and the second message, the first electronic device can send the third message to the second electronic device, so that the third message can be displayed through the second electronic device, multiple operations are not required by a user, the first electronic device is triggered to display the third message, and therefore, the operation of the user in the process of replying the third message can be simplified, the time consumption is reduced, and the efficiency of replying the message by the first electronic device can be improved.
Optionally, in an embodiment of the present application, the first operation includes sending a message through the destination port.
The processor 710 is specifically configured to send a fourth message to the server through the destination port, where the message content in the fourth message is null, or where the message content in the fourth message includes the destination character.
Wherein, the first message is a message fed back by the server in response to the fourth message.
In this way, the first electronic device can actively sniff the target session window by sending the fourth message, so that a new message (i.e., the first message) in the target session window can be actively acquired, timely sending of various messages in the target session window is ensured, and further timely sending of the new message in the target session window to the second electronic device is ensured.
Optionally, in an embodiment of the present application, the first operation includes displaying a target session window.
The display unit 706 is specifically configured to display, in a first period of time, a target session window when the message is not received through the target port for a first predetermined period of time, where the first electronic device does not receive the operation of the first electronic device by the user.
In this way, the first electronic device can display the target session window in the first time period under the condition that the first electronic device does not receive the message through the target port in the first preset time period, so that the first electronic device can actively acquire the new message in the target session window from the server, timely sending of various messages in the target session window is ensured, and further the first electronic device can timely send the new message in the target session window to the second electronic device.
Optionally, in an embodiment of the present application, the processor 710 is further configured to obtain the second message if the target session window is displayed and the first condition is met.
Wherein the first condition includes any one of: an input is received to the target session window, determining that a message in the target session window is receivable through the target port.
Therefore, under the condition that the user needs to view the messages in the target session window, the first electronic device can directly acquire the second message and directly update the second message according to the first message and the second message to obtain the third message, and therefore the first electronic device can timely send the third message to the second electronic device.
Optionally, in the embodiment of the present application, the radio frequency unit 701 is further configured to receive a fifth message sent by the second electronic device; and sending a fifth message to the server through the destination port.
Therefore, the first electronic device can send the fifth message to the server through the target port without triggering the first electronic device to display the target session window by the user, so that the utilization rate of the display space of the first electronic device can be improved.
Optionally, in the embodiment of the present application, the radio frequency unit 701 is further configured to receive a sixth message sent by the second electronic device.
And the display unit 706 is configured to display the target session window in a second period, where the first electronic device does not receive the operation of the user on the first electronic device.
The radio frequency unit 701 is further configured to send a sixth message to the server through the destination port.
Therefore, the first electronic device can directly display the target message session window in the second period, so that the situation that the first electronic device cannot send the sixth message due to the fact that the target port is not activated can be avoided, and the first electronic device can timely send the sixth message to the server.
It should be appreciated that in embodiments of the present application, the input unit 704 may include a graphics processor (GraphicsProcessingUnit, GPU) 7041 and a microphone 7042, with the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 709 may include volatile memory or nonvolatile memory, or the memory 709 may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (ProgrammableROM, PROM), an erasable programmable Read-only memory (ErasablePROM, EPROM), an electrically erasable programmable Read-only memory (ElectricallyEPROM, EEPROM), or a flash memory, among others. The volatile memory may be random access memory (RandomAccessMemory, RAM), static random access memory (static ram, SRAM), dynamic random access memory (DynamicRAM, DRAM), synchronous dynamic random access memory (SynchronousDRAM, SDRAM), double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (EnhancedSDRAM, ESDRAM), synchronous link dynamic random access memory (SynchlinkDRAM, SLDRAM), and direct memory bus random access memory (DirectRambusRAM, DRRAM). Memory 709 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 710 may include one or more processing units; optionally, in an embodiment of the present application, the processor 710 integrates an application processor and a modem processor, wherein the application processor primarily processes operations involving an operating system, a user interface, and application programs, and the modem processor primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the processes of the embodiment of the message processing method are implemented, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction, so as to implement each process of the embodiment of the message processing method, and achieve the same technical effect, so that repetition is avoided, and no redundant description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the message processing method described above, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A method of message processing performed by a first electronic device, the method comprising:
in the event that a target session window is not displayed and a message in the target session window is not updated, performing a first operation comprising at least one of: sending a message through a target port, and displaying the target session window, wherein the target port is used for transmitting the message in the target session window;
receiving a first message through the destination port;
updating a second message in the target session window into a third message according to the first message, wherein the second message is a message transmitted by the target port;
and sending the third message to the second electronic equipment.
2. The method of claim 1, wherein the first operation comprises sending a message through the destination port, the performing the first operation comprising:
sending a fourth message to the server through the target port, wherein the message content in the fourth message is empty, or the message content in the fourth message comprises a target character;
wherein the first message is a message fed back by the server in response to the fourth message.
3. The method of claim 1, wherein the first operation comprises displaying the target session window, the performing the first operation comprising:
and under the condition that the message is not received through the target port within a first preset time, displaying the target session window within a first period, wherein the first electronic equipment does not receive the operation of the user on the first electronic equipment within the first period.
4. The method of claim 1, wherein prior to the performing the first operation, the method further comprises:
acquiring the second message under the condition that the target session window is displayed and the first condition is met;
wherein the first condition includes any one of: receiving input to the target session window, determining that a message in the target session window is receivable through the target port.
5. The method of claim 1, wherein after the sending the third message to the second electronic device, the method further comprises:
receiving a fifth message sent by the second electronic equipment;
and sending the fifth message to a server through the target port.
6. The method of claim 1, wherein after the sending the third message to the second electronic device, the method further comprises:
receiving a sixth message sent by the second electronic equipment;
displaying the target session window in a second period, wherein the first electronic device does not receive the operation of the user on the first electronic device in the second period;
and sending the sixth message to a server through the target port.
7. A message processing apparatus, the message processing apparatus being a first message processing apparatus, characterized in that the first message processing apparatus comprises: the device comprises an execution module, a receiving module, an updating module and a sending module;
the execution module is configured to execute a first operation in a case where a target session window is not displayed and a message in the target session window is not updated, where the first operation includes at least one of: sending a message through a target port, and displaying the target session window, wherein the target port is used for transmitting the message in the target session window;
the receiving module is used for receiving a first message through the target port;
the updating module is configured to update a second message in the target session window to a third message according to the first message received by the receiving module, where the second message is a message transmitted by the target port;
The sending module is configured to send the third message updated by the updating module to the second message processing device.
8. The message processing apparatus of claim 7, wherein the first operation comprises sending a message through the destination port, the execution module comprising: a first transmitting sub-module;
the first sending submodule is used for sending a fourth message to the server through the target port, wherein the message content in the fourth message is empty, or the message content in the fourth message comprises target characters;
wherein the first message is a message fed back by the server in response to the fourth message.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the message processing method of any of claims 1 to 6.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the message processing method according to any of claims 1 to 6.
CN202310054542.6A 2023-02-03 2023-02-03 Message processing method, device, electronic equipment and medium Pending CN116032870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310054542.6A CN116032870A (en) 2023-02-03 2023-02-03 Message processing method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310054542.6A CN116032870A (en) 2023-02-03 2023-02-03 Message processing method, device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN116032870A true CN116032870A (en) 2023-04-28

Family

ID=86080929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310054542.6A Pending CN116032870A (en) 2023-02-03 2023-02-03 Message processing method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116032870A (en)

Similar Documents

Publication Publication Date Title
CN112671635B (en) Sending method, device and electronic equipment
CN112764624B (en) Information screen display method and device
CN114500432A (en) Session message transceiving method and device, electronic equipment and readable storage medium
CN109032732B (en) Notification display method and device, storage medium and electronic equipment
CN114748873B (en) Interface rendering method, device, equipment and storage medium
CN112162802A (en) Message reply method and device and electronic equipment
CN112511412A (en) Information sending method and device, electronic equipment and readable storage medium
CN113285866B (en) Information sending method and device and electronic equipment
CN114327088A (en) Message sending method, device, electronic equipment and medium
US20240089223A1 (en) Information display method and apparatus, and electronic device
CN113885750A (en) Message processing method and device and electronic equipment
CN113965640B (en) Message processing method and device
US9690748B1 (en) Delivering notifications to background applications
CN113891441A (en) Network connection method and device and electronic equipment
CN116032870A (en) Message processing method, device, electronic equipment and medium
CN113141296B (en) Message display method and device and electronic equipment
CN113726584A (en) Message sending method and device and electronic equipment
CN113824627A (en) Group chat message display method and device, electronic equipment and storage medium
CN112866475A (en) Image sending method and device and electronic equipment
CN108536540B (en) Method and device for acquiring mouse message of desktop icon
CN110990092A (en) Application processing method and electronic equipment
CN113347456B (en) Live broadcast information updating method and device and electronic equipment
CN114285814B (en) Chat parameter setting method and device, electronic equipment and storage medium
CN117424870A (en) Identification display method, identification display device, electronic equipment and readable storage medium
CN117193901A (en) Information processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination