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

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

Info

Publication number
CN112965647B
CN112965647B CN202110374137.3A CN202110374137A CN112965647B CN 112965647 B CN112965647 B CN 112965647B CN 202110374137 A CN202110374137 A CN 202110374137A CN 112965647 B CN112965647 B CN 112965647B
Authority
CN
China
Prior art keywords
message
unread
type
unread message
read
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.)
Active
Application number
CN202110374137.3A
Other languages
Chinese (zh)
Other versions
CN112965647A (en
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.)
Lianren Healthcare Big Data Technology Co Ltd
Original Assignee
Lianren Healthcare Big Data Technology 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 Lianren Healthcare Big Data Technology Co Ltd filed Critical Lianren Healthcare Big Data Technology Co Ltd
Priority to CN202110374137.3A priority Critical patent/CN112965647B/en
Publication of CN112965647A publication Critical patent/CN112965647A/en
Application granted granted Critical
Publication of CN112965647B publication Critical patent/CN112965647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a message processing method, a message processing device, electronic equipment and a storage medium. The method comprises the following steps: receiving a message sent by a sending end, updating an unread message list based on the message, and setting a message state identifier as an unread identifier; monitoring the reading operation of each unread message, and determining whether the reading operation meets the operation condition corresponding to the message type of the unread message, wherein the operation condition comprises at least one of interface display, content display and content display duration; if yes, the message state of the unread message is updated to be the read state, and the unread message list is updated. Therefore, the invention avoids the situation that the message state of all the unread message targets is updated to the read state only by opening the interface display, can ensure that the condition that the unread message is omitted does not occur, and improves the user experience.

Description

Message processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a message processing method, a message processing device, electronic equipment and a storage medium.
Background
With the rapid development of internet technology, chat-like social software is widely applied to people in daily life. The continuous transmission of messages between terminal devices for information communication has become an important form of communication between people today.
Currently, when a user does not read a received message during a chat process, the message status of the unread message is set as unread, and the number of unread messages is displayed in a notification bar to be marked. And setting the message states of all the messages in the session interface to be read until the user views the session interface corresponding to the unread messages, and eliminating the unread marks, so that some messages which cannot be directly viewed are marked as being read to generate omission.
Disclosure of Invention
The embodiment of the invention provides a message processing method, a device, electronic equipment and a storage medium, solves the problem that the message state of all unread messages is updated to the read state only by opening interface display, ensures that the condition of missing the unread messages does not occur, and improves user experience.
In a first aspect, an embodiment of the present invention provides a message processing method, which may include:
receiving a message sent by a sending end, updating an unread message list based on the message, and setting the extinguishing state identifier as an unread identifier;
Monitoring a reading operation of each unread message, and determining whether the reading operation meets an operation condition corresponding to the message type of the unread message, wherein the operation condition comprises at least one of interface display, content display and content display duration;
if yes, the message state of the unread message is updated to be the read state, and the unread message list is updated.
In a second aspect, an embodiment of the present invention provides a message processing apparatus, which may include:
the receiving module is used for receiving the message sent by the sending end, updating an unread message list based on the message, and setting the message state identifier as an unread identifier;
the monitoring module is used for monitoring the reading operation of each unread message and determining whether the reading operation meets the operation condition corresponding to the message type of the unread message, wherein the operation condition comprises at least one of interface display, content display and content display duration; if yes, entering an updating module;
and the updating module is used for updating the message state of the unread message into a read state and updating the unread message list.
In a third aspect, an embodiment of the present invention provides an electronic device, which may include:
One or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the message processing method as described in any of the preceding.
In a fourth aspect, the embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for processing information provided by any embodiment of the present invention.
According to the message processing method provided by the embodiment of the invention, when a new message is received, the new message is set to be in an unread state, an unread message list is generated and used for storing the unread message and prompting a user that the message is unread, when the reading operation is monitored, the reading operation is matched according to the operation condition corresponding to the message type of each unread message, the unread message corresponding to the reading operation meeting the operation condition is updated to be in the read state, different operation conditions are set for different message types, the message of different message types can be conveniently and fully read, and the condition that the message is not displayed is set to be in the read state is avoided. Therefore, the embodiment of the invention has different operation conditions corresponding to different message types, and when the reading operation meets the operation conditions, the message state of the unread message can be updated to the read state, so that the condition that the message state of all the unread messages is updated to the read state only by opening the interface display is avoided, the condition that the unread messages are omitted is ensured not to occur, and the user experience is improved.
In addition, the message processing device, the electronic equipment and the storage medium provided by the invention correspond to the method and have the same beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, and it will be apparent that the drawings in the following description are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort to those skilled in the art.
FIG. 1 is a flow chart of a message processing method provided by an embodiment of the present invention;
FIG. 2 is a flow chart of a method for processing a file type message according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for processing a picture type message according to an embodiment of the present invention;
fig. 4 is a block diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a message processing method according to an embodiment of the present invention. The method may be performed by a message processing apparatus provided by an embodiment of the present invention, which may be implemented in software and/or hardware, and which may be integrated on various user terminals or servers.
As shown in fig. 1, an embodiment of the present invention provides a message processing method, which may include S101 to S103:
s101, receiving a message sent by a sending end, updating an unread message list based on the message, and setting a message state identifier as an unread identifier.
In specific implementation, the receiver and the sender perform information transmission, when the receiver receives a message sent by the sender, the information is an unread message, and a message state corresponding to the message is set to be an unread state. Thus, a received message may be added to the unread message pool and the unread message list updated based on the message, with the message status identity correspondence of the received message set to the unread identity. Optionally, the unread message list is used for storing the message state identifier corresponding to each message in the unread message pool, and when the message is in the unread state, the message state identifier of the message in the unread message list is the unread identifier; when the message has been read, the message status identity of the message in the list of unread messages may be changed to a read identity. It should be noted that, the message sent by the receiving and sending end may include receiving the message one by one in real time and receiving the message in batch at fixed time, which is not limited by the embodiment of the present invention.
For example, when messages are received in a timed batch, the received messages may be added to the unread message pool at the same time, and the message status identifiers corresponding to the messages may be added to the unread message list. Optionally, after updating the unread message list, a prompt may be given to the state that the unread message currently exists in the user interface; the prompting mode comprises the steps of adopting an icon identification prompt and a text identification prompt, directly displaying the total number of the unread messages contained currently, classifying according to the message types of the unread messages, and prompting the number of the unread messages of different message types respectively.
Optionally, a fixed area can be preset on the interface of the terminal device to display the prompt information corresponding to the unread message; when a plurality of unread messages are received, each unread message corresponds to one prompt message, and at the moment, the prompt messages can be sequentially displayed in a preset fixed area, so that a user can clearly know the current conditions of the number of the unread messages, a sender, receiving time and the like according to the displayed prompt messages.
S102, monitoring the reading operation of each unread message, and determining whether the reading operation meets the operation condition corresponding to the message type of the unread message, wherein the operation condition comprises at least one of interface display, content display and content display duration; if so, the process proceeds to S103, and if not, the unread state of the message is continued to be maintained.
S103, updating the message state of the unread message to a read state, and updating an unread message list.
In a specific implementation, a user can read the unread message by operating the terminal device; the terminal device may be a computer, a mobile phone, a tablet computer or other types of electronic devices, which is not limited in the embodiments of the present invention. Monitoring the operation of each unread message, determining whether the operation is a read operation, and determining whether the read operation meets the operation condition corresponding to the message type of the unread message. The message types of the unread message include, but are not limited to, text type, file type, picture type, etc., wherein the file types may also include word file type, excel file type, video file type, audio file type, etc.
Optionally, the message type of the unread message is determined by acquiring format information of the unread message. For example, when the format information of the unread message is doc, docx, htm, html, pdf, xls, pptx, mpeg, mov or the like, it may be determined that the message type of the unread message is a file type; when the format information of the unread message is bmp, jpg, png, tif, gif and other formats, the message type of the unread message can be determined to be a picture type; when the format of the unread message is txt, it may be determined that the message type of the unread message is a text type.
For unread messages of different message types, the display modes of the message content are different, for example, the message of the text type can be intuitively displayed, the message of the file type cannot be intuitively displayed, and the message of the file type needs to be opened further to display the specific message content. In this embodiment, different operation conditions of the read operation are set according to the message type of the unread message, and by matching the operation conditions of the read operation, it is determined whether the unread message is sufficiently read, and accordingly, if yes, the status of the unread message is updated, and if not, the unread status is continuously maintained, so that the problem that the content of the message set to the read status is not sufficiently read is avoided.
In some alternative embodiments, the operational content of the read operation includes at least one of an interface presentation operation and a content presentation operation.
Specifically, when the reading operation is to open the session interface to perform interface display operation on the unread message, determining whether the interface display operation meets the operation condition corresponding to the message type of the read unread message, if so, determining that the unread message is successfully read, updating the message state of the unread message to be a read state, updating the unread message list, and updating the message state identifier of the unread message in the unread message list to be a read identifier. When the reading operation is a content display operation for displaying the unread message by opening the dialogue interface, judging whether the content display operation meets the operation condition corresponding to the message type of the read unread message, if so, updating the message state of the unread message into a read state, and updating an unread message list; if not, the current message state of the unread message is maintained, and the corresponding current identification in the unread message list is maintained.
Optionally, the operating condition includes at least one of an interface display, a content presentation, and a content presentation duration. It should be noted that, when the operation condition is interface display, the unread message indicating the message type needs to be directly displayed on the dialogue interface, so that the unread message can be successfully read by the user; when the operation condition is content display, the unread message representing the message type can be successfully read by a user through opening operation; when the operation condition is the content display duration, the unread message indicating the message type needs to be opened for a preset duration before the unread message can be successfully read by the user.
Optionally, the operation condition may be updated according to a user operation, and the message processing method provided by the embodiment of the present invention may further include:
receiving an update operation condition corresponding to each message type, wherein the update operation condition comprises an update of the operation type and/or an update of the operation attribute; the operating conditions corresponding to the message types are updated based on the updated operating conditions.
Optionally, the updating includes at least one of adding, modifying, and deleting the operating condition. The operation type may include at least one of an open operation, a delete operation, and a store operation, and the operation type of the operation condition may be updated according to the received updated operation condition. For example, when an unread message is a confidential message, it is generally required that the user delete after reading, and when the unread message is deleted after reading, the message status of the unread message can be updated to a read status and removed from the unread message pool. The user may send an update operation condition for adding the deletion operation type to the terminal device through the input device, and set an operation condition corresponding to the unread message of the confidential type as the deletion operation.
Further, the operation attribute may be updated according to the update operation condition. The operation attribute includes, for example, a display duration when the message content is displayed, a location of an unread message when the message is operated, etc., and those skilled in the art may set the specific content of the operation attribute according to the actual situation, which is not limited in the embodiment of the present invention.
According to the message processing method provided by the embodiment of the invention, when a new message is received, the new message is set to be in an unread state, an unread message list is generated and used for storing the unread message and prompting a user that the message is unread, when the reading operation is monitored, the reading operation is matched according to the operation condition corresponding to the message type of each unread message, the unread message corresponding to the reading operation meeting the operation condition is updated to be in the read state, different operation conditions are set for different message types, the message of different message types can be conveniently and fully read, and the condition that the message is not displayed is set to be in the read state is avoided. Therefore, the embodiment of the invention has different operation conditions corresponding to different message types, and when the reading operation meets the operation conditions, the message state of the unread message can be updated to the read state, so that the condition that the message state of all the unread message targets is updated to the read state only by opening the interface display is avoided, the condition that the unread message is missed is avoided, and the user experience is improved.
Example two
FIG. 2 is a flow chart of a method for processing a file type message according to an embodiment of the present invention; on the basis of the above embodiment, optionally, the message type of the unread message includes a file type; the determination of whether the read operation satisfies the operation condition may be made by determining whether the read operation is a content presentation operation and a content presentation duration.
Fig. 3 is a flowchart of a method for processing a picture type message according to an embodiment of the present invention. On the basis of the above embodiment, optionally, the message type of the unread message includes a picture type; whether the read operation satisfies the operation condition may be determined by determining whether the read operation is a content presentation operation. Optionally, the message type of the unread message includes a text type; it is determined whether the read operation satisfies the operation condition by determining whether the read operation is an interface display operation for an unread message. Technical terms identical to or corresponding to the above embodiments are not repeated herein.
Alternatively, the message types may include text types, picture types, and file types. An integrated type mixed with at least two types of text type, picture type, and document type may also be included. For example, the picture contains a comprehensive type message of text content. It should be noted that the message type may also include other customized types, which are not limited in this embodiment of the present invention.
As shown in fig. 2, a method for processing a file type message according to an embodiment of the present invention may include S201 to S205:
s201, receiving the message sent by the sending end, updating an unread message list based on the message, and setting the message state identifier as an unread identifier.
S202, monitoring read operation of unread messages of all file types, and determining whether the read operation is content display operation or not and content display duration.
Optionally, when the message type of the received message is a file type, the operation condition corresponding to the unread message is content display and content display duration. Optionally, the file type includes at least one of a document file type, a form file type, a presentation file type, a web page file type, an audio type, and a video type.
Exemplary audio type formats include MP3 (Moving Picture Experts Group Audio Layer 3, mpeg 3) format, WAVE audio format, MP4 MP3 (Moving Picture Experts Group, mpeg 4) format, and the like. Video type formats include MPEG (Moving Picture Experts Group ) format, AVI (Audio Video Interleaved, audio video interleave) format, MOV (QuickTime encapsulation format), and the like.
In a specific implementation, when the read operation of the unread message is monitored, determining whether the read operation is a content display operation corresponding to the file type, and if so, determining the content display duration of the unread message actually generated by the read operation. If not, it may be determined directly that the read operation does not satisfy the operation condition.
S203, if the reading operation is a content display operation on the unread message and the content display time is greater than or equal to a preset threshold, determining that the reading operation meets the operation condition corresponding to the file type; then S205 is entered.
S204, if the reading operation is not the content display operation of the unread message or the content display duration of the content display operation is smaller than a preset threshold value, determining that the reading operation does not meet the operation condition corresponding to the file type.
S205, updating the message state of the unread message of the file type to a read state, and updating the unread message list.
Illustratively, the content presentation operation includes an open operation on an unread message. The user can open the unread message corresponding to the open instruction by inputting the open instruction of the unread message which is input to the terminal equipment by the input equipment. Further, the terminal device may open the unread message using a read plug-in embedded in the software that receives the unread message; the third party software may also be invoked to read the unread message according to the file type of the unread message, which is not limited in the embodiment of the present invention.
Specifically, when the reading operation is a content display operation on the unread message, it is further determined whether the content display duration is greater than or equal to a preset threshold. Further, different preset thresholds may be set according to different file types. For example, for unread messages of document type, form type, presentation type, web page type, a preset threshold may be set for 5 seconds; for unread messages of audio type and video type, the preset threshold may be set to 3 seconds.
When it is required to be described, the preset threshold may include a fixed time length value, and may be preset according to the actual use when viewing the message content. The preset threshold may also include a fixed proportional duration that is preset. For example, when the file type of the unread message is an audio type and a video type, the preset threshold may be 30% of the total duration required for the unread message to be displayed, and when the content display duration is equal to or more than 30% of the total duration, it is determined that the unread message has been successfully read.
Further, if the content display time is greater than or equal to the preset threshold, it is determined that the read operation meets the operation condition corresponding to the file type, and it is determined that the message is read, and the unread message list can be updated accordingly. If the read operation is not the content display operation of the unread message or the content display time length is smaller than the preset threshold value, determining that the unread message is not successfully read.
As shown in fig. 3, a method for processing a picture type message according to an embodiment of the present invention may include S301 to S305:
s301, receiving a message sent by a sending end, updating an unread message list based on the message, and setting a message state identifier as an unread identifier.
S302, monitoring read operation of unread messages of each picture type, and determining whether the read operation is a content display operation; if yes, go to S303; if not, the process proceeds to S304.
S303, determining that the reading operation meets the operation condition corresponding to the picture type; the process advances to S305.
S304, determining that the reading operation does not meet the operation condition corresponding to the picture type.
S305, updating the message state of the unread message of the picture type to a read state, and updating the unread message list.
In a specific implementation, when the message type of the unread message is a picture type, the operation condition for determining the picture type is content presentation. When the read operation is monitored to be carried out on the unread message of the picture type, determining whether the read operation is the content display operation corresponding to the read operation, and if so, determining that the read operation meets the operation condition of the picture type; indicating that the unread message has been successfully read. The message state of the unread message can be updated to be the read state, and the message state identifier of the unread message in the unread message list is correspondingly updated to be the read identifier, if not, the read operation can be directly determined not to meet the operation condition, and the message state of the unread message still keeps the unread state.
Optionally, the message type of the unread message includes a text type; when it is determined whether the text type unread message satisfies the operation condition, an interface may be displayed as the operation condition. When the reading operation of the unread message of the text type is the interface display operation, that is, the unread message is displayed in the interface of the session, it is determined that the user has directly read the content of the unread message, and the unread message has been successfully read. If the read operation on the unread message of the text type is not the interface display operation, determining that the read operation does not meet the operation condition of the text type, and the message state of the unread message is still the unread state.
Further, after determining that the read operation is an interface display operation for an unread message, the method further includes:
and determining whether the unread message is in the display interface, if so, determining that the read operation meets the text type operation condition.
Specifically, when a plurality of text-type unread messages are received at the same time, a situation may occur that the terminal device cannot display the plurality of unread messages in the display interface at the same time, and a user is required to make the terminal device display different unread messages in the display interface through operations such as sliding a screen or clicking the screen. Therefore, after determining that the reading operation is the interface display operation on the unread message, determining whether the unread message is a displayed message in the display interface, if so, indicating that the unread message of the text type is successfully read by a user, wherein the reading operation meets the operation condition of the text type; if not, the unread message is still displayed on the display interface, and the user does not successfully read the unread message. Therefore, the condition that the unread messages of a plurality of text types are omitted when the unread messages need to be displayed is avoided.
Optionally, the message status identifier of the unread message in the unread message list is updated synchronously according to the update requirement of the message status. In the embodiment S301 of the present invention, updating the unread message list based on the message includes:
adding the message to an unread message pool, adding a message state identifier of the message to an unread message list, and adjusting a prompt value in the unread identifier according to the number of the unread messages in the updated unread message list;
in implementations, when a new message is received, the message may be added to the unread message pool and the message status identification of the message may be added to the list of all unread messages. For example, the message state of the message with the number 1 is identified as unread 1, and the message state identification of unread 1 is added to the unread message list to indicate that the message state of the message with the number 1 is the unread state. And obtaining the message state identification of each message in the current unread message list by updating the unread message list, determining the current unread message number according to the message state identification, and adjusting the prompting numerical value for prompting the user of the current unread message number to be the numerical value same as the unread message number. Thereby ensuring that the prompt value can reflect the current unread message quantity and ensuring the real-time performance and accuracy of the prompt value.
Accordingly, after updating the unread message list, the method further comprises:
and removing the message set as read from the unread message pool, removing the identification of the removed message from the unread message list, and adjusting the prompt value in the unread identification according to the number of the unread messages in the updated unread message list. Therefore, the storage space is saved, the unread message list is updated to be in the latest state, and the number of the current unread messages is more accurately prompted.
According to the embodiment of the invention, the corresponding operation conditions are respectively set for the unread messages of the file type, the picture type and the text type, so that the accuracy in determining the reading state of the unread messages of different types can be effectively improved, the omission of the unread messages is avoided, and the user experience is improved.
Example III
Fig. 4 is a block diagram of a message processing apparatus according to an embodiment of the present invention, where the apparatus is configured to execute the message processing method provided in any of the foregoing embodiments. The device and the message processing method of each embodiment belong to the same invention conception, and the details of the embodiment of the message processing device, which are not described in detail, can be referred to the embodiment of the message processing method. Referring to fig. 4, the apparatus may specifically include:
The receiving module 10 is configured to receive a message sent by the sending end, update an unread message list based on the message, and set a message status identifier as an unread identifier;
the monitoring module 11 is configured to monitor a read operation for each unread message, and determine whether the read operation meets an operation condition corresponding to a message type of the unread message, where the operation condition includes at least one of interface display, content display, and content display duration; if yes, entering an updating module;
an updating module 12, configured to update a message status of the unread message to a read status, and update the unread message list.
Optionally, the message type of the unread message includes a file type; the monitoring module 11 includes:
a first determining unit configured to determine whether the reading operation is a content display operation, and whether the content display time is long; if the reading operation is the content display operation of the unread message and the content display time is greater than or equal to a preset threshold value, determining that the reading operation meets the operation condition corresponding to the file type; if the reading operation is not the content display operation for the unread message or the content display duration of the content display operation is smaller than the preset threshold value, determining that the reading operation does not meet the operation condition.
Optionally, the message type of the unread message includes a picture type; the monitoring module 11 includes:
a second determining unit configured to determine whether the read operation is a content presentation operation; if yes, determining that the reading operation meets the operation condition of the picture type; if not, determining that the reading operation does not meet the operation condition of the picture type.
Optionally, the message type of the unread message includes a text type; the monitoring module 11 includes:
a third determining unit configured to determine whether the read operation is an interface display operation for an unread message; if yes, determining that the reading operation meets the operation condition of the text type; if not, determining that the reading operation does not meet the text type operation condition.
Optionally, after determining that the read operation is an interface display operation for an unread message, the third determining unit is further configured to:
and determining whether the unread message is in the display interface, if so, determining that the read operation meets the text type operation condition.
Optionally, the device specifically further includes:
an update operation condition module, configured to receive an update operation condition corresponding to each message type, where the update operation condition includes an update to an operation type and/or an update to an operation attribute; the operating conditions corresponding to the message types are updated based on the updated operating conditions.
Optionally, the receiving module 10 includes:
the adjusting unit is used for adding the message into the unread message pool, adding the identification of the message into the unread message list, and adjusting the prompt value in the unread identification according to the number of the unread messages in the updated unread message list;
accordingly, after updating the unread message list, the adjusting unit is further configured to:
and removing the message set as read from the unread message pool, removing the identification of the removed message from the unread message list, and adjusting the prompt value in the unread identification according to the number of the unread messages in the updated unread message list.
According to the message processing device provided by the embodiment of the invention, when a new message is received, the new message is set to be in an unread state, an unread message list is generated and used for storing the unread message and prompting a user that the message is unread, when the reading operation is monitored, the reading operation is matched according to the operation condition corresponding to the message type of each unread message, the unread message corresponding to the reading operation meeting the operation condition is updated to be in the read state, different operation conditions are set for different message types, the message of different message types can be conveniently and fully read, and the condition that the message is not displayed is set to be in the read state is avoided. Therefore, the embodiment of the invention has different operation conditions corresponding to different message types, and when the reading operation meets the operation conditions, the message state of the unread message can be updated to the read state, so that the condition that the message state of all the unread message targets is updated to the read state only by opening the interface display is avoided, the condition that the unread message is missed is avoided, and the user experience is improved.
It should be noted that, in the embodiment of the message processing apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example IV
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Fig. 5 shows a block diagram of an exemplary electronic device 20 suitable for use in implementing the embodiments of the present invention. The electronic device 20 shown in fig. 5 is only an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 5, the electronic device 20 is in the form of a general purpose computing device. The components of the electronic device 20 may include, but are not limited to: one or more processors or processing units 201, a system memory 202, and a bus 203 that connects the various system components (including the system memory 202 and the processing units 201).
Bus 203 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 20 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 20 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 202 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 204 and/or cache memory 205. Electronic device 20 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 206 may be used to read from or write to non-removable, nonvolatile magnetic media. Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each driver may be coupled to bus 203 through one or more data medium interfaces. Memory 202 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 208 having a set (at least one) of program modules 207 may be stored in, for example, memory 202, such program modules 207 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 207 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 20 may also communicate with one or more external devices 209 (e.g., keyboard, pointing device, display 210, etc.), one or more devices that enable a user to interact with the electronic device 20, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 20 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 211. Also, electronic device 20 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 212. As shown, network adapter 212 communicates with other modules of electronic device 20 over bus 203. It should be appreciated that although not shown in fig. 5, other hardware and/or software modules may be used in connection with electronic device 20, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 201 executes various functional applications and data processing by running programs stored in the system memory 202, for example, implementing the wireless device deployment method provided by the embodiment of the present invention.
The electronic equipment provided by the embodiment of the invention can execute the message processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Embodiments of the present invention provide a storage medium containing computer executable instructions which, when executed by a computer processor, are for performing a message processing method comprising:
receiving a message sent by a sending end, updating an unread message list based on the message, and setting a message state identifier as an unread identifier;
monitoring the reading operation of each unread message, and determining whether the reading operation meets the operation condition corresponding to the message type of the unread message, wherein the operation condition comprises at least one of interface display, content display and content display time;
if yes, the message state of the unread message is updated to be the read state, and the unread message list is updated.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the message processing method provided in any embodiment of the present invention.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions without departing from the scope of the present invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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.

Claims (10)

1. A method of message processing comprising:
receiving a message sent by a sending end, updating an unread message list based on the message, and setting a message state identifier as an unread identifier; after updating the unread message list, prompting the state that the unread message exists currently on the user interface; the prompting, at the user interface, of the state that there is currently an unread message includes: classifying according to the message types of the unread messages, and prompting the number of the unread messages of different message types respectively;
monitoring a reading operation of each unread message, and determining whether the reading operation meets an operation condition corresponding to a message type of the unread message, wherein the operation condition comprises at least one of interface display, content display and content display duration; for unread messages of different message types, the display modes of message contents are different;
if yes, the message state of the unread message is updated to be the read state, and the unread message list is updated.
2. The message processing method according to claim 1, wherein the message type of the unread message includes a file type;
The determining whether the read operation meets the operation condition corresponding to the message type of the unread message includes:
determining whether the read operation is a content presentation operation and the content presentation duration;
if the reading operation is a content display operation on the unread message and the content display time is greater than or equal to a preset threshold, determining that the reading operation meets the operation condition corresponding to the file type;
and if the reading operation is not the content display operation of the unread message or the content display duration of the content display operation is smaller than the preset threshold value, determining that the reading operation does not meet the operation condition.
3. The message processing method according to claim 1, wherein the message type of the unread message includes a picture type;
the determining whether the read operation meets the operation condition corresponding to the message type of the unread message includes:
determining whether the read operation is a content presentation operation;
if yes, determining that the reading operation meets the operation condition of the picture type;
if not, determining that the reading operation does not meet the operation condition of the picture type.
4. The message processing method of claim 1, wherein the message type of the unread message comprises a text type;
the determining whether the read operation meets the operation condition corresponding to the message type of the unread message includes:
determining whether the read operation is an interface display operation for the unread message;
if yes, determining that the reading operation meets the operation condition of the text type;
if not, determining that the reading operation does not meet the operation condition of the text type.
5. The method of claim 4, further comprising, after determining that the read operation is an interface display operation for the unread message:
and determining whether the unread message is in a display interface, if so, determining that the reading operation meets the operation condition of the text type.
6. The message processing method according to claim 1, characterized in that the method further comprises:
receiving an update operation condition corresponding to each message type, wherein the update operation condition comprises an update of the operation type and/or an update of the operation attribute;
and updating the operation condition corresponding to the message type based on the updating operation condition.
7. The message processing method according to claim 1, wherein updating the unread message list based on the message includes:
adding the message to an unread message pool, adding the identification of the message to an unread message list, and adjusting the prompt value in the unread identification according to the number of the unread messages in the updated unread message list;
correspondingly, after updating the unread message list, the method further comprises:
and removing the message set as read from the unread message pool, removing the identification of the removed message from the unread message list, and adjusting the prompt value in the unread identification according to the number of the unread messages in the updated unread message list.
8. A message processing apparatus, comprising:
the receiving module is used for receiving the message sent by the sending end, updating an unread message list based on the message, and setting the message state identifier as an unread identifier; after updating the unread message list, prompting the state that the unread message exists currently on the user interface; the prompting, at the user interface, of the state that there is currently an unread message includes: classifying according to the message types of the unread messages, and prompting the number of the unread messages of different message types respectively;
The monitoring module is used for monitoring the reading operation of each unread message and determining whether the reading operation meets the operation condition corresponding to the message type of the unread message, wherein the operation condition comprises at least one of interface display, content display and content display duration; for unread messages of different message types, the display modes of message contents are different; if yes, entering an updating module;
and the updating module is used for updating the message state of the unread message into a read state and updating the unread message list.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the message processing method of any of claims 1-7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the message processing method according to any of claims 1-7.
CN202110374137.3A 2021-04-07 2021-04-07 Message processing method and device, electronic equipment and storage medium Active CN112965647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110374137.3A CN112965647B (en) 2021-04-07 2021-04-07 Message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110374137.3A CN112965647B (en) 2021-04-07 2021-04-07 Message processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112965647A CN112965647A (en) 2021-06-15
CN112965647B true CN112965647B (en) 2023-05-26

Family

ID=76281429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110374137.3A Active CN112965647B (en) 2021-04-07 2021-04-07 Message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112965647B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107104880A (en) * 2017-04-10 2017-08-29 腾讯科技(深圳)有限公司 Message prompt method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836719B (en) * 2014-02-11 2019-01-01 阿里巴巴集团控股有限公司 A kind of synchronous method and system of instant messaging unread message
CN107872377A (en) * 2016-09-23 2018-04-03 阿里巴巴集团控股有限公司 Message prompt method and device
CN111190512B (en) * 2018-11-15 2023-04-28 阿里巴巴集团控股有限公司 Message processing method and device
CN111510369A (en) * 2019-01-31 2020-08-07 中国移动通信集团终端有限公司 Message display method, device, equipment and medium
CN110134484B (en) * 2019-05-21 2024-02-13 腾讯科技(深圳)有限公司 Message icon display method and device, terminal and storage medium
CN112199134A (en) * 2020-09-01 2021-01-08 北京达佳互联信息技术有限公司 Message display method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107104880A (en) * 2017-04-10 2017-08-29 腾讯科技(深圳)有限公司 Message prompt method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Using typing pattern to save energy: Adaptive notification mechanism in MIM APPs;Y. Pan;《2016 IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS)》;全文 *
基于类型域识别的消息分类方法;高李政;《信息工程大学学报》;第19卷(第1期);66-69 *

Also Published As

Publication number Publication date
CN112965647A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN110351572B (en) Method, device and equipment for updating live broadcast room information and storage medium
CN109725975B (en) Method and device for prompting read state of message and electronic equipment
CN111414334A (en) File fragment uploading method, device, equipment and storage medium based on cloud technology
US8346878B2 (en) Flagging resource pointers depending on user environment
US20120278403A1 (en) Presenting link information near links within electronic messages
CN112162965B (en) Log data processing method, device, computer equipment and storage medium
US10116668B2 (en) System and method for enhanced display-screen security and privacy
CN110287146B (en) Method, device and computer storage medium for downloading application
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN107733781B (en) Instant messaging processing method, equipment and computer storage medium
CN113656193A (en) Application communication method, system, electronic equipment and storage medium
CN112965647B (en) Message processing method and device, electronic equipment and storage medium
CN111083145A (en) Message sending method and device and electronic equipment
CN112968828A (en) Chat message display method, device, equipment and storage medium
CN112416455B (en) Data processing method, device, terminal and storage medium
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN111314203B (en) Communication method, device, medium and electronic equipment
CN114995914A (en) Picture data processing method and device, computer equipment and storage medium
CN113778370A (en) Voice message playing method and device, electronic equipment and storage medium
CN113741748A (en) Information display method, device, equipment and storage medium
CN115134322B (en) File secure transmission method and device, cloud mobile phone platform and storage medium
CN111193717A (en) FTP black and white list control method and device and electronic equipment
CN112565271B (en) Web attack detection method and device
CN111858223A (en) Method, device, equipment and storage medium for testing storage service interface
US20200334327A1 (en) Method to automate processing form input to other systems

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
GR01 Patent grant
GR01 Patent grant