A message processing method and device, intelligent equipment, and storage medium

CN114791841BActive Publication Date: 2026-10-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110106705.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-26
Publication Date
2026-10-27
Estimated Expiration
2041-01-26

AI Technical Summary

Technical Problem

用户在开启了社交通讯应用后,在某个会话上特别是群聊会话上可能会接收到大量的消息,在现有技术中,社交通讯应用可以在会话列表上提醒某个会话的未读消息的数量,在用户进入该个会话后,社交通讯应用一般会将最新的消息在会话界面上显示给用户,用户如果想要翻看还未阅读的未读消息,则需要手动滑动会话界面,找到对应的历史消息,费时费力,效率低下

Benefits of technology

[0015]本发明实施例根据用户查看新消息的阅读状态,允许用户重新进入某个会话时可自动定位到上次未读消息的已读位置,对于用户而言,当查看聊天消息时有其它事情需要优先处理时,从新进入目标会话可以快速地定位到离开前的未读消息的已读位置并显示相关未读消息,降低了用户查找之前未读消息的成本,省时省力,满足用户对未读消息进行定位的自动化需求。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114791841B_ABST
    Figure CN114791841B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a message processing method and device, intelligent equipment and a storage medium. The method comprises the following steps: in response to a message viewing operation on a target session, detecting a reading state of the target session; if the reading state is a historical message state, obtaining a historical message identifier recorded for the target session; displaying i pieces of session messages on a session interface of the target session according to the historical message identifier, wherein the i pieces of session messages comprise unread messages determined according to the historical message identifier, and i is a positive integer; and updating a message identifier of the jth piece of session message on the session interface to the historical message identifier of the target session, wherein j is a positive integer less than or equal to i. By using the present application, a user can quickly locate a read position of unread messages before leaving and display relevant unread messages, thereby reducing the cost of finding previous unread messages, saving time and effort, and meeting the automation demand of the user for positioning unread messages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer application technology, and in particular to a message processing method, apparatus, intelligent device, and storage medium. Background Technology

[0002] With the continuous development of computer and electronic technologies, various smart devices and applications have greatly facilitated people's lives, work, and studies. In particular, various social applications help people exchange information, record, and share precious moments anytime, anywhere. These applications provide social services through user-friendly interfaces and rich user interaction features.

[0003] In some messaging applications, users can interact and display multimedia information, such as text, voice, video, and images, through a conversation interface. After opening a social communication application, a user may receive a large number of messages in a conversation, especially a group chat. In current technology, social communication applications can display the number of unread messages in a conversation list. When a user enters a conversation, the application typically displays the latest messages on the conversation interface. However, if the user wants to view unread messages, they need to manually swipe through the conversation interface to find the corresponding historical messages, which is time-consuming, laborious, and inefficient. Summary of the Invention

[0004] This invention provides a message processing method, apparatus, smart device, and storage medium that can automatically locate messages through historical message identifiers.

[0005] On one hand, embodiments of the present invention provide a message processing method, including:

[0006] In response to a message viewing operation on the target session, the reading status of the target session is detected;

[0007] If the reading status is historical message status, then obtain the historical message identifier recorded for the target session;

[0008] i conversation messages are displayed on the conversation interface of the target conversation, and the i conversation messages include unread messages indicated by the historical message identifier, where i is a positive integer;

[0009] The message identifier of the j-th session message on the session interface is used as the historical message identifier of the target session, where j is a positive integer less than or equal to i.

[0010] On the other hand, embodiments of the present invention also provide a message processing apparatus, including:

[0011] The detection module is used to detect operations performed on the terminal.

[0012] The processing module is configured to respond to a message viewing operation on a target session by detecting the reading status of the target session; if the reading status is a historical message status, then obtaining the historical message identifier recorded for the target session; displaying i session messages on the session interface of the target session according to the historical message identifier, wherein the i session messages include unread messages determined according to the historical message identifier, and i is a positive integer; and updating the message identifier of the j-th session message on the session interface to the historical message identifier of the target session, where j is a positive integer less than or equal to i.

[0013] Accordingly, embodiments of the present invention also provide an intelligent device, including a memory and a processor; the memory stores a computer program; the processor runs the computer program stored in the memory to implement the aforementioned message processing method.

[0014] Accordingly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein when the computer program is executed, the aforementioned message processing method is implemented.

[0015] According to the reading status of new messages viewed by the user, this embodiment of the invention allows the user to automatically locate the read position of the last unread message when re-entering a certain session. For users, when there are other things that need to be dealt with first while viewing chat messages, re-entering the target session can quickly locate the read position of the unread message before leaving and display the relevant unread message, reducing the cost for users to find previously unread messages, saving time and effort, and meeting the user's need for automation in locating unread messages. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of one of the message processing logic embodiments of the present invention;

[0018] Figure 2 This is a flowchart illustrating a message processing method according to an embodiment of the present invention;

[0019] Figure 3 This is a schematic diagram of a user interface according to an embodiment of the present invention;

[0020] Figure 4aThis is a schematic diagram of another user interface involved in an embodiment of the present invention;

[0021] Figure 4b This is a schematic diagram of yet another user interface involved in an embodiment of the present invention;

[0022] Figure 5 This is a flowchart illustrating another message processing method according to an embodiment of the present invention;

[0023] Figure 6a This is a schematic diagram of the user interface for implementing user settings according to an embodiment of the present invention;

[0024] Figure 6b This is a schematic diagram of another user interface involved in an embodiment of the present invention;

[0025] Figure 7 This is a schematic diagram of the structure of a message processing device according to an embodiment of the present invention;

[0026] Figure 8 This is a schematic diagram of the structure of a smart device according to an embodiment of the present invention. Detailed Implementation

[0027] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0028] This application embodiment can record historical message identifiers for each conversation in a social communication application. When a user opens a target conversation, if the target conversation has recorded historical message identifiers, the system can automatically locate the conversation message indicated by the historical message identifier and display at least the conversation message indicated by the historical message identifier on the opened conversation interface. In one embodiment, the historical message identifier can be the identifier ID of the last unread message displayed on the previously opened conversation interface while the user was viewing historical messages or unread messages on the target conversation interface. The user may have closed the target conversation interface midway through viewing unread messages. When the user reopens it this time, the system can find the last unread message displayed on the previously opened conversation interface based on the recorded historical message identifier and display it to the user. This allows the user to quickly locate the previously viewed historical message and continue viewing the remaining historical messages without manual searching, saving time and effort and meeting the user's need for automated message location. In other embodiments, the historical message identifier can also be the ID of the first message among all currently received but unread messages. In this way, when the user opens the session interface of the target session and enters the session, the earliest unread message can be automatically displayed, making it convenient for the user to start viewing directly from the earliest unread message.

[0029] Please see Figure 1 The diagram shown illustrates one embodiment of the message processing logic of this invention. For social applications such as instant messaging running on smart devices, once a user enters a session, that session is considered the target session, and a message viewing operation is initiated for that target session. At this time, a state determination machine is activated for that target session to determine its reading state, and different processing is performed based on different reading states.

[0030] By default, the target session is in the default state, which means the read status is empty (null) or in the new state (new message status). In the default state, the target session's interface will be displayed directly, showing the last one or more session messages displayed, or no session messages will be displayed, only a blank session message display window and a session message entry window will be shown. Of course, the latest message can also be displayed based on the new message identifier recorded in the new message field set for the target session.

[0031] If the reading status is "history message status," the session message indicated by the recorded history message identifier will be found and displayed. The history message field records this identifier. For each history message identifier recorded in the history message field, if there are m unread messages, an unread bubble can be displayed for user interaction (this unread bubble can be defined as unread indication information, used to indicate to the user that there are one or more unread messages). If the user triggers a click event on the unread bubble, the target session's interface will display multiple unread messages based on the history message identifier recorded in the history message field, and will begin updating the history message identifier recorded in the history message field. In short, a first set of unread messages, consisting of a portion of all unread messages, can be displayed on the user interface, and this first set of unread messages will be continuously updated as the user swipes, rendering and displaying more unread messages in succession. Simultaneously, the target session's reading status will be modified to "history status," and the history message identifier (historyID) will be modified to the ID of the bottommost message currently displayed on the screen, i.e., the message ID of the last message in the current first set of unread messages.

[0032] If a new message is received from the target session, an indication message about n new messages will also be displayed. After the user clicks to view n new messages, on the one hand, the new message will be displayed, and on the other hand, if the reading status is the default status, the reading status will be updated to the historical message status. Furthermore, the historical message identifier in the historical message field will be updated, using the ID of the last session message of the currently displayed new message (or the ID of the next session message after the last session message) as the historical message identifier.

[0033] If the historical message identifier is the same as the new message identifier during the historical message identifier update process, the historical message identifier recorded for the target session can be deleted, and the reading status can be updated to the default status.

[0034] When a user scrolls to view unread messages at the bottom of the screen, or when a new message appears and the user clicks on the bottom right corner showing m new messages (this message bubble can be defined as an indicator message to the user that m new messages exist), the reading state of the target session is still maintained in the history state, but the historyID is modified to the ID of the bottommost message currently displayed on the screen. In other words, it can be considered that during the display of new messages, previously received new messages are treated as unread messages, and the same processing steps described above are applied to these new unread messages.

[0035] If the user exits the target session while in the history state and closes the target session's interface, and then re-enters the target session and opens its interface, the target session's state determination mechanism will determine that the target session's reading state is now in the history state. It will automatically display the session message indicated by the current historical message identifier (historyID) as the first message on the current screen (i.e., the target session's interface), and modify the historyID to the ID of the message displayed at the bottom of the current target session's interface. Only when historyID == newID will the target session's reading state change from history state to new state, and the history message identifier (historyID) will be cleared.

[0036] According to the reading status of new messages viewed by the user, the present invention allows the user to automatically locate the read position of the last unread message when returning to the conversation next time. This reduces the cost for the user to find previously unread messages, saves time and effort, and meets the user's need for automation in locating unread messages. For the user, when there are other things to deal with while viewing chat messages, they can quickly locate the read position of the unread messages before leaving.

[0037] Please see Figure 2 This is a flowchart illustrating a message processing method according to an embodiment of the present invention. The method described in this embodiment can be executed by intelligent devices such as smartphones, tablets, smart wearable devices, and personal computers (PCs). These intelligent devices possess at least network functionality, message processing, and display capabilities. These intelligent devices can access the Internet through mobile communication interfaces and / or computer network interfaces to communicate with one or more users, or they can access Internet servers to obtain services provided by these servers. These intelligent devices also have touchscreens, which can display various user interfaces to the user and receive touchscreen operations from the user, enabling human-computer interaction. Alternatively, these intelligent devices can receive user input through operating devices such as keyboards and mice. The method described in this embodiment includes the following steps.

[0038] S201: In response to a message viewing operation on a target session, detect the reading status of the target session. After a user runs a social application such as an instant messaging application on a smart device, the smart device monitors the user's operations on the social application and executes different processing logic for different user operations. In one embodiment, after entering the social application, a session list including one or more sessions may be displayed first. The user can select a target session to initiate a message viewing operation through touch screen operation or mouse operation. The message viewing operation on the target session may be, for example, a double-click or touch screen click on the target session in the session list.

[0039] The target session, or each session involved in this embodiment of the invention, corresponds to a reading state, which may include a history message state and a new message state. In one embodiment, for the target session, a state machine can be used to change the state, thereby locating the position corresponding to different session messages to display different session interfaces. Here, history represents the ability to enter the reading logic of unread messages, that is, to locate the position of the last viewed unread session message under history; while under new, it represents the ability to locate and display the latest message to complete message reading. In one embodiment, the state machine records the relevant data of the reading state through two fields, namely the historyID field and the newID field. The historyID field records the message ID of the unread message, i.e., the historical message identifier, and the newID field records the ID of the latest new message, i.e., the new message identifier.

[0040] S202: If the reading status is historical message status, then obtain the historical message identifier recorded for the target session. The historical message identifier can be used to determine the read position of unread messages after the last exit from the target session, such as... Figure 3 As shown, before the user last exited the target session, the session interface displayed on the target session screen was interface 301. The message ID of message 302 displayed at the bottom of this session interface was recorded and stored as the historical message identifier of the target session. A dedicated historical message field, "history," can be set for the target session. The historical message identifier will be recorded in the history field, and it can be extracted from the history field in S302.

[0041] S203: Display i conversation messages on the conversation interface of the target session according to the historical message identifier. The i conversation messages include unread messages determined by the historical message identifier, where i is a positive integer. After obtaining the historical message identifier, the read position of the unread messages is determined. In one embodiment, i conversation messages can be determined from the conversation message indicated by the historical message identifier, rendered and displayed on the conversation interface of the target session. In another embodiment, i conversation messages can be determined from the next message after the conversation message indicated by the historical message identifier, rendered and displayed on the conversation interface of the target session. The value of i is determined by multiple parameters. Different i values ​​and combinations of parameters will result in different i values, i.e., different numbers of conversation messages will be rendered and displayed. These parameters include screen width parameters, font size parameters, number of characters in text messages, height parameters of image messages, etc. The determined i messages are rendered through the page view layer, and i conversation messages are displayed to the user on one screen according to different screen heights, text sizes, and other personalized devices.

[0042] exist Figure 3 In the case where the target session records historical message identifier, further examples include... Figure 4a As shown, after a user initiates a message viewing operation on the target session 401 through user actions such as touch screen or mouse click, based on... Figure 3 The historical message identifier (i.e., the identifier corresponding to message 302) determined in the code will identify i=5 session messages that can be displayed on the session interface of the opened target session. The first session message is message 302, which corresponds to the historical message identifier. The remaining session messages displayed are all unread messages that follow message 302. Figure 4a As shown, the session interface 402 of the target session opened in response to the message viewing operation includes text messages 403, 404, and 405.

[0043] In one embodiment, while displaying i conversation messages, the method may further include: displaying an interruption position marker on the conversation interface displaying the i conversation messages, based on the display position of unread messages determined by the historical message identifier included in the i conversation messages on the conversation interface. Please refer to [link / reference] for details. Figure 4a The marker 407 displayed on the conversation interface regarding "last time I saw this" is the interruption location marker described in this embodiment of the invention.

[0044] S204: Update the message identifier of the j-th session message on the session interface to the historical message identifier of the target session, where j is a positive integer less than or equal to i. After displaying i session messages, the historical message identifier is updated by updating the value in the historical message field to the new historical message identifier. j can be equal to i. Thus, the value of the new historical message identifier is the last message among the currently displayed i messages. In some other embodiments, j can take any value from 1 to i as needed. Figure 4a For example, the message identifier of the last message in message i will be used as the new historical message identifier, that is, the message identifier of text message 406 will be recorded as the historical message identifier.

[0045] In one embodiment, the method may further include: when an auto-location setting operation of the target session in the session list is detected, displaying a settings interface, the settings interface including a prompt message indicating whether to set the target session to auto-location type, the settings interface being, for example, a reference to Figure 4b For the prompt message on interface 408 regarding whether to set the target session to the automatic location type, please refer to... Figure 4b Message 409 in the settings interface; if a confirmation operation is detected in the settings interface, the target session is recorded as an automatic location type; before detecting the reading status of the target session, the method further includes: in response to a message viewing operation on the target session, determining whether the type of the target session is an automatic location type; if so, triggering the execution of detecting the reading status of the target session. In other words, a settings interface can be provided to allow users to select which sessions can be used as target sessions, providing the function of automatically locating the read position of unread messages. Users can determine the importance of the session, for example, if a session is an important work group chat session, it can be actively set as an automatic location type session. In this way, when the session interface of the important work group chat session is opened, the relevant method provided in the embodiments of this application will be executed. Of course, smart devices can also automatically determine whether some conversations belong to the automatic location type based on user chat operation parameters. For example, in some group chat conversations, users send or reply to messages every day. Smart devices can automatically determine whether the type of the conversation to be confirmed is the automatic location type based on user chat operation parameters (user chat operation parameters include: the number of messages sent on the conversation interface of the conversation to be confirmed, and / or message content, etc.). When it is determined to be the automatic location type, it is automatically set to the automatic location type so that users only need to follow the relevant steps of the message processing method mentioned in the embodiments of this application.

[0046] In this embodiment of the invention, different states are set for each session, and historical message identifiers are recorded in the historical message state. In this way, once a user enters a session that is set to the historical message state, the user can quickly locate the last read position of the unread message based on the historical message identifier, so as to quickly display the remaining unread messages to the user without requiring manual operation, saving time and effort and improving the efficiency of viewing historical unread messages.

[0047] Please see again Figure 5 This is a flowchart illustrating another message processing method according to an embodiment of the present invention. Similarly, the method described in this embodiment of the present invention can be executed by the aforementioned terminal device, and the method includes the following steps.

[0048] S501: Display unread indication information on the session interface of the target session; if a viewing operation on the unread indication information is detected, S502 can be executed below. In other embodiments, S502, S503, and S504 can be omitted, and S505 can be executed directly. The unread indication information is displayed to the user in the form of a bubble, which displays the number of unread messages, for example in... Figure 3 In the conversation interface 303, bubble 304 is the unread message indicator, which records the number of unread messages. The unread message indicator can also be displayed to the user through other text or icons, and the processing logic that can trigger the display of unread messages can be configured for these positions or icons.

[0049] S502: Update the reading status of the target session to the historical status. The default reading status for each session is either empty or a new message status. When a user starts the social communication application, the reading status of each session, or any session with unread messages, is either a new message status or empty by default. When a user enters a session (i.e., the target session), if the target session already has historical unread messages, an unread indicator will be displayed in S501. If the user is detected clicking the unread indicator, S502 will be executed to update the reading status of the target session from empty or new message status to the historical status. This allows for automatic location of the unread message position when the user exits the process of viewing historical unread messages and reopens the target session, enabling the user to continue viewing the remaining unread messages.

[0050] S503: Record the message identifier of the first message among the n unread messages as a historical message identifier in the historical message field. After recording the message identifier of the first message among the n unread messages as a historical message identifier in the historical message field, the identifier in the historical message field may be updated due to subsequent user operations.

[0051] S504: Render each unread message in the first unread message set out of n unread messages, so that the first unread message set can be displayed on the target session's interface. Message rendering can be performed through the page view layer, and the number of messages displayed on one screen can vary depending on the screen height, text size, and other individual device characteristics.

[0052] S505: Display the first set of unread messages determined from n unread messages on the session interface of the target session.

[0053] In one embodiment, after S505, the method may further include: displaying a recording prompt message on the session interface of the target session, the recording prompt message being used to prompt whether to record historical message identifiers, the recording prompt message being presented to the user on a bubble element, for example... Figure 6a Bubble 601, the recorded prompt message is: Figure 6a Information 602 in the record prompt information; if a cancellation operation is received for the record prompt information, the reading status of the target session is updated to the default status, and the historical message identifier recorded for the target session is deleted; if a confirmation operation is received for the record prompt information, the execution is triggered to record the message identifier of the last unread message in the first unread message set displayed on the current session interface as a historical message identifier in the historical message field. After executing S502, the reading status of the target session is the historical status. After displaying some messages in n unread messages, the user may think that these messages are not important. At this time, the function of automatically locating the read position of unread messages can be selected based on the record prompt information provided in this application. The function can be turned off by user operation. For example, clicking the cancel button in the user selection box that displays the record prompt information can automatically update the reading status of the target session to the default status and delete the recorded historical message identifier. The next time the target session is opened, the operation will be performed according to the default reading status. The default status includes the state of empty reading status or new message status.

[0054] Further optionally, before displaying the record prompt information on the session interface of the target session, the method further includes: comparing n with a preset record prompt threshold; if n is greater than the preset record prompt threshold, then triggering the display of the record prompt information on the session interface of the target session; if n is less than the preset record prompt threshold, then updating the reading status of the target session to the default status and deleting the historical message identifier recorded by the target session. In other words, if the value of n is large, indicating a large number of unread messages, a recording prompt can be displayed, allowing the user to decide whether to record the historical message identifier. If the value of n is small, the reading status of the target session can be directly updated to the default state, and the historical message identifier can be deleted. This is because if the number of unread messages is small, the user may quickly finish reading them, making recording unnecessary. For example, the recording prompt threshold can be 10 or a smaller value. This threshold can be dynamically adjusted based on the size of the target session's interface. For instance, on a personal computer, if the session interface is full-screen and large enough to display a large number of messages, the recording prompt threshold can be set to a larger value, such as 20. Conversely, on a small-screen mobile phone, where the interface is smaller, the recording prompt threshold can be set to a smaller value, such as 5. Alternatively, the recording prompt threshold can be dynamically adjusted based on the message type of the unread messages. For example, if most of the unread messages are images (e.g., people sharing images), the recording prompt threshold can be set smaller, such as 5. If most are text messages, the recording prompt threshold can be set larger, such as 10.

[0055] S506: Record the message identifier of the last unread message in the first unread message set displayed on the current session interface as a historical message identifier in the historical message field. For S503 to S506 above, before determining the unread messages to be displayed (i.e., the first unread message set) based on the historical message identifier and rendering these unread messages, the message identifier of the first message of all existing unread messages can be used as the historical message identifier of the target session. Then, the historical message identifier is updated after the first unread message set is displayed. In some other embodiments, S503 is an optional step. The rendering operation of S504 can be performed directly, and after displaying the rendered unread messages to be displayed in S505, the message identifier of the last unread message displayed, or the last message of the first unread message set, is used as the historical message identifier. It is not necessary to use the message identifier of the first message among the n unread messages as the historical message identifier.

[0056] When there are many unread messages, users can trigger the retrieval and display of more unread messages by swiping. In this case, S507 and S508 can be executed. If there are no more unread messages after removing the first set of unread messages, then S507 and S508 do not need to be executed. That is, S507 and S508 are optional depending on the situation.

[0057] In one embodiment, when a new message is received and displayed on the target session, the message identifier of the new message displayed on the current session interface is recorded in the history message field. At the same time, the message identifier of the new message is also recorded in the new message field, which is included in the status recording information set for the target session. Since the values ​​of the history message field and the new message field are the same, the following steps S516 and S517 can be executed.

[0058] It should be noted that, in the embodiments of the present invention, unread messages and new messages are defined as different messages. New messages refer to messages received after entering the target session and opening the session interface of the target session, while unread messages are defined as messages received before entering the target session and opening the session interface of the target session. To a certain extent, unread messages mainly refer to unread messages generated in the past (generated before opening the session interface of the target session), while new messages refer to unread messages generated newly (generated after opening the session interface of the target session).

[0059] S507: In response to a detected "continue viewing" operation on remaining unread messages, display a second set of unread messages. This "continue viewing" operation could be, for example, sliding a display box on the session interface used to display session messages or moving a slider up and down on the display box. Figure 3 The slider 305 in the middle can be slid to display more information or display the history of read information.

[0060] S508: Use the message identifier of the last unread message in the second unread message set as the new historical message identifier, and update the historical message field with the new historical message identifier. The content of the second unread message set may overlap with the content of the first unread message set, or they may be two completely different unread message sets.

[0061] In one embodiment, S506 can be replaced by: recording the first target unread message among the n unread messages as a historical message identifier in the historical message field. The first target unread message refers to the message identifier of the next unread message after the last unread message in the first unread message set among the n unread messages. That is, instead of recording the message identifier of the currently displayed last unread message in the historical message field, the message identifier of the message following the currently displayed last unread message is recorded in the historical message field. In this way, when the user re-enters the target session and reopens the session interface, unread messages can be displayed to the user starting from one of the n unread messages that has not yet been shown to the user. Based on this, if there are more unread messages among the n unread messages, the user can swipe to continue viewing other unread messages. At this time, the value of the historical message field will be continuously updated, that is, it will continue to respond to the detected continued viewing operation of the remaining unread messages and display the second set of unread messages. The second target unread message among the n unread messages is recorded as a historical message identifier in the historical message field. The second target unread message refers to the message identifier of the next unread message of the last unread message in the second set of unread messages among the n unread messages.

[0062] In this embodiment of the invention, the target session is provided with status recording information, which includes a historical message field for recording historical message identifiers; historical message identifiers in all the cases mentioned in this application can be recorded in this historical message field. Simultaneously, the status recording information may also include a new message field for recording new message identifiers. In this way, the message identifier of a new message received after entering the target session interface can be recorded in the new message field, facilitating subsequent comparison between historical message identifiers and new message identifiers.

[0063] The above S501 to S508 mainly describe the process of recording the historical message identifier in the historical message field. After the historical message identifier is recorded and the historical message state is in progress, the user may close the target session's session interface for some reason. If the user initiates a message viewing operation on the target session again, the following S509 will be executed.

[0064] S509: In response to the message viewing operation of the target session, detect the reading status of the target session; if the reading status is the historical message status, then S510 can be executed. In some other embodiments, S513 can be executed directly instead of S510, S511 and S512. For example, if the target session is entered but no new message is received or very few new messages are received (the number of new messages is less than the first quantity threshold), S513 can be executed directly.

[0065] The reading status of the target session can be marked using dedicated information, such as a dedicated status field. A status field value of 1 indicates a historical message status, while a value of 0 indicates a new message status. The value of the status field can be determined based on whether the user clicked on unread or new message indicators. In one embodiment, the reading status can also be determined by checking whether a historical message identifier is recorded in the historical message field. If a historical message identifier exists, the target session is considered to be in a historical message status; otherwise, it is considered to be in a new message status.

[0066] S510: Determine the number of new messages received corresponding to the target session. In one embodiment, after receiving a message viewing operation for the target session and entering the session interface of the target session, the number of new messages can be determined. When there are no new messages in the target session or the number of new messages is lower than a first threshold, steps such as S513 can be directly executed to automatically locate the last read position. When there are a certain number of new messages, step S511 can be executed, and when there are a large number of new messages, step S512 can be executed.

[0067] S511: If the determined quantity meets the first condition, then the acquisition of the historical message identifier for the target session record is triggered; meeting the first condition can mean that the quantity is less than the second threshold but greater than the first threshold (the first threshold can be 0), in which case the following S513 can be executed.

[0068] S512: If the determined quantity satisfies the second condition, then the received new messages are displayed on the target session's session interface, and the message identifier of the last new message displayed on the target session's session interface is recorded as a historical message identifier in the historical message field. If some new messages are displayed on the current session interface, for example, it can be considered a first set of new messages, and the message identifier of the last message in the first set of new messages is recorded in the historical message field. While the user is scrolling through the message display window of the session interface, a second set of new messages can continue to be displayed. The second set of new messages and the first set of new messages can overlap, or they can be two completely different sets of messages.

[0069] The second condition can be met if the number of new messages exceeds the third threshold. This third threshold can be greater than or equal to the second threshold. When the number exceeds the third threshold, indicating a large number of new messages, the new message location operation is triggered directly. Unread messages after the last unread message (i.e., the message in the session indicated by the historical message identifier) ​​are considered non-important messages and are not automatically located to the previous read position. Instead, the new message location operation is displayed, and the new message is shown directly. Simultaneously, after the new message is displayed, it is treated as a new unread message. The historical message field is updated based on the message identifier of the currently displayed session message. This allows the user to locate the read position at the time of exiting and then re-entering the target session based on the updated historical message identifier, thus determining the remaining unread messages. In other words, re-entering the target session after exiting will also start from S509.

[0070] Statistical research shows that users are more likely to leave a message midway through reading unread messages if they are not important, while they are more likely to read important messages, even quickly. Therefore, when there are many new messages, previously unread messages are considered less important and do not need to be automatically located for quick display to the user, saving time and allowing the user to read the received new messages as soon as possible, so as to avoid missing important messages in the new messages. If there are few new messages, more unread messages can be displayed for the user to read.

[0071] S513: Obtain the historical message identifier recorded for the target session; the target session is provided with status record information, the status record information including a historical message field for recording historical message identifiers; obtaining the historical message identifier recorded for the target session includes: reading the historical message identifier from the historical message field in the status record information.

[0072] S514: Display i conversation messages on the conversation interface of the target conversation according to the historical message identifier, wherein the i conversation messages include unread messages determined according to the historical message identifier, and i is a positive integer; in one embodiment, while displaying i conversation messages, the method may further include: displaying an interruption position marker on the conversation interface displaying the i conversation messages according to the display position of the unread messages included in the i conversation messages as determined according to the historical message identifier on the conversation interface. Please refer to [link / reference] for details. Figure 4a The marker 407 displayed on the conversation interface regarding "last time I saw this" is the interruption location marker described in this embodiment of the invention.

[0073] S515: Update the message identifier of the j-th session message on the session interface to the historical message identifier of the target session, where j is a positive integer less than or equal to i.

[0074] S516: When the recorded historical message identifier is the same as the recorded new message identifier, the reading status of the target session is changed to the new message status.

[0075] S517: Delete the historical message identifier recorded in the historical message field.

[0076] In other words, under any circumstances, as long as the historical message identifier recorded in the historical message field of the target session's status record information is the same as the new message identifier recorded in the new message field of the target session's status record information, all unread messages have been read and there is no need to automatically locate the read position of unread messages. At this time, the status of the target session can be updated and the historical message identifier can be deleted.

[0077] In one embodiment, the status recording information set for the target session includes a new message field for recording new message identifiers; the method may further include: during the display of the target session's session interface, if m new messages of the target session are received, displaying new message indication information and displaying the message identifier of the last new message received among the m new messages in the new message field. After displaying the new message indication information, if a viewing operation on the new message indication information is detected, displaying the first set of new messages among the m new messages on the target session's session interface; and updating the record in the historical message field by using the message identifier of the last message displayed on the session interface as a historical message identifier.

[0078] The new message indication information can be displayed either before, after, or after the unread indication information is displayed on the session interface of the target session in S501 above. If m new messages are received, the new message indication information will be displayed on the session interface. The new message indication information can also be displayed in the following situations:

[0079] During the process of displaying the first set of unread messages in S505, if m new messages are received, a new message indication message will be displayed on the session interface.

[0080] During the execution of S507 to display the second set of unread messages, if m new messages are received, a new message indication message will be displayed on the session interface.

[0081] During the execution of S512 to display the received new messages on the session interface of the target session, if m new messages are received, new message indication information will be displayed on the session interface.

[0082] During the execution of S514, if i session messages are displayed on the session interface of the target session, and m new messages are received, a new message indication message will be displayed on the session interface.

[0083] In one embodiment, see Figure 6b In the conversation interface 603, the bubble 604 displayed at the bottom is the new message indicator. The number of new messages is displayed in bubble 604. This bubble 604 is configured with processing logic to trigger the display of received new messages. When the user clicks on bubble 604, the processing logic to retrieve and display new messages is triggered. Of course, in other embodiments, the new message indicator can also be presented to the user in other ways, such as a button, icon, etc., configured with corresponding processing logic.

[0084] In one embodiment, the method may further include: when a closing operation of the target session's interface is detected, if the target session's reading state is in the historical message state, a prompt message is issued asking whether to record the historical message identifier; if a cancel operation is detected in response to the prompt message, the reading state of the target session is updated to the default state, and the historical message identifier recorded for the target session is deleted. That is, when the target session's interface is closed at any time, if the target session's reading state is still in the historical message state, the user needs to be prompted whether to record the historical message identifier, allowing the user to make a choice to meet their actual needs. If the user believes that the unread messages in the target session are likely unimportant, they can click the cancel button. In this way, when the target session's interface is reopened, the target session's reading state will be in the default state (empty or new message state), without needing to automatically jump to the read position of unread messages to display them. Simultaneously, it also serves to remind the user that the function of automatically jumping to the read position of unread messages should be present, facilitating the application, introduction, and promotion of this function.

[0085] According to the reading status of new messages viewed by the user, this embodiment of the invention allows the user to automatically locate the read position of the last unread message when re-entering a certain session. For users, when there are other things that need to be dealt with first while viewing chat messages, re-entering the target session can quickly locate the read position of the unread message before leaving and display the relevant unread message, reducing the cost for users to find previously unread messages, saving time and effort, and meeting the user's need for automation in locating unread messages.

[0086] Please see again Figure 7This is a schematic diagram of a message processing device according to an embodiment of the present invention. The device described in this embodiment can be applied to smart devices such as smartphones, tablets, smart wearable devices, and personal computers. The processing device includes one or more modules, which can implement the relevant steps of the message processing methods in the foregoing embodiments as needed. In one embodiment, the device includes the following modules.

[0087] Detection module 701 is used to detect operations performed on the terminal;

[0088] The processing module 702 is configured to, in response to a message viewing operation on a target session, detect the reading status of the target session; if the reading status is a historical message status, obtain the historical message identifier recorded for the target session; display i session messages on the session interface of the target session according to the historical message identifier, the i session messages including unread messages determined according to the historical message identifier, where i is a positive integer; update the message identifier of the j-th session message on the session interface to the historical message identifier of the target session, where j is a positive integer less than or equal to i.

[0089] In one embodiment, state recording information is set for the target session, the state recording information including a historical message field for recording historical message identifiers; the processing module 702 is used to read the historical message identifiers from the historical message field in the state recording information.

[0090] In one embodiment, the processing module 702 is further configured to display unread indication information on the session interface of the target session; if a viewing operation on the unread indication information is detected, a first set of unread messages determined from n unread messages is displayed on the session interface of the target session; and the message identifier of the last unread message in the first set of unread messages displayed on the current session interface is recorded as a historical message identifier in the historical message field.

[0091] In one embodiment, the processing module 702 is further configured to, in response to a detected continued viewing operation of the remaining unread messages, display a second set of unread messages; use the message identifier of the last unread message in the second set of unread messages as a new historical message identifier, and update the record of the new historical message identifier in the historical message field.

[0092] In one embodiment, the processing module 702 is further configured to display unread indication information on the session interface of the target session; if a viewing operation on the unread indication information is detected, a first set of unread messages determined from n unread messages is displayed on the session interface of the target session; and the first target unread message among the n unread messages is recorded as a historical message identifier in the historical message field, wherein the first target unread message refers to the message identifier of the next unread message of the last unread message in the first set of n unread messages.

[0093] In one embodiment, the processing module 702 is further configured to, in response to a detected continued viewing operation of the remaining unread messages, display a second set of unread messages; and record the second target unread message among the n unread messages as a historical message identifier in the historical message field, wherein the second target unread message refers to the message identifier of the next unread message of the last unread message in the second set of unread messages among the n unread messages.

[0094] In one embodiment, the default reading state of the target session is the new message state. The processing module 702 is further configured to update the reading state of the target session to the historical state if a viewing operation on the unread indication information is detected; record the message identifier of the first message among the n unread messages as a historical message identifier in the historical message field; and perform rendering processing on each unread message included in the first unread message set among the n unread messages so as to display the first unread message set on the session interface of the target session.

[0095] In one embodiment, the processing module 702 is further configured to: if the reading state is a historical message state, determine the number of new messages received corresponding to the target session; if the determined number meets a first condition, trigger the execution of obtaining the historical message identifier recorded for the target session; if the determined number meets a second condition, display the received new messages on the session interface of the target session, and record the message identifier of the last new message displayed on the session interface of the target session as a historical message identifier in the historical message field.

[0096] In one embodiment, the status recording information set for the target session includes a new message field for recording new message identifiers; the processing module 702 is further configured to, during the process of displaying the session interface of the target session, if m new messages of the target session are received, display new message indication information and display the message identifier of the last new message received among the m new messages in the new message field; if a viewing operation on the new message indication information is detected, display the first set of new messages among the m new messages on the session interface of the target session; and update the record of the message identifier of the last message displayed on the session interface as a historical message identifier in the historical message field.

[0097] In one embodiment, the processing module 702 is further configured to modify the reading status of the target session to the new message status and delete the historical message identifier recorded in the historical message field when the recorded historical message identifier is the same as the recorded new message identifier.

[0098] In one embodiment, the processing module 702 is further configured to display an interruption position marker on the session interface displaying the i session messages, based on the display position of the unread messages determined by the historical message identifier included in the i session messages on the session interface.

[0099] In one embodiment, the processing module 702 is further configured to, when a closing operation on the session interface of the target session is detected, if the reading state of the target session is a historical message state, issue a prompt message to indicate whether to record the historical message identifier.

[0100] If a cancellation operation is detected in response to the prompt message, the reading status of the target session is updated to the default status, and the historical message identifier recorded for the target session is deleted.

[0101] In one embodiment, the processing module 702 is further configured to display a recording prompt message on the session interface of the target session, the recording prompt message being used to prompt whether to record the historical message identifier; if a cancellation operation is received for the recording prompt message, the reading status of the target session is updated to the default status, and the historical message identifier recorded for the target session is deleted; if a confirmation operation is received for the recording prompt message, the execution of recording the message identifier of the last unread message in the first unread message set displayed on the current session interface as a historical message identifier into the historical message field is triggered.

[0102] In one embodiment, the processing module 702 is further configured to compare n with a preset record prompt threshold; if n is greater than the preset record prompt threshold, then trigger the display of record prompt information on the session interface of the target session; if n is less than the preset record prompt threshold, then update the reading status of the target session to the default status and delete the historical message identifier that is a record of the target session.

[0103] In one embodiment, the processing module 702 is further configured to display a settings interface when an automatic location setting operation of the target session in the session list is detected, the settings interface including a prompt message indicating whether to set the target session as an automatic location type; if a confirmation operation is detected in the settings interface, the target session is recorded as an automatic location type; in response to a message viewing operation of the target session, it is determined whether the type of the target session is an automatic location type; if so, the detection of the reading status of the target session is triggered.

[0104] Figure 7 The modules in the data processing apparatus shown can be individually or entirely merged into one or more other modules, or some of the modules can be further divided into multiple functionally smaller modules. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above modules are based on logical function division. In practical applications, the function of one module can be implemented by multiple modules, or the function of multiple modules can be implemented by one module. In other embodiments of this application, the data processing apparatus may also include other modules. In practical applications, these functions can also be implemented with the assistance of other modules, and can be implemented collaboratively by multiple modules.

[0105] According to another embodiment of this application, a computer program (including program code) capable of performing the steps involved in the methods mentioned in the foregoing embodiments can be run on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), to construct a system such as... Figure 7 The message processing apparatus shown herein, and the message processing method for implementing the embodiments of this application, are described. The computer program may be recorded on, for example, a computer-readable recording medium, loaded onto the aforementioned computing device via the computer-readable recording medium, and run therein.

[0106] Based on the same inventive concept, the message processing device provided in the embodiments of this application solves the problem in a similar principle and with similar beneficial effects as the data processing device in the method embodiments of this application. For details, please refer to the principle and beneficial effects of the method implementation. For the sake of brevity, these will not be repeated here.

[0107] Please see again Figure 8 This is a schematic diagram of the structure of a smart device according to an embodiment of the present invention. The smart device of the present invention can be a smartphone, tablet computer, smart wearable device, personal computer, or other device with network functions, display functions, human-computer interaction functions, etc. The smart device includes at least a processor 801, a communication interface 802, and a memory 803. The processor 801, communication interface 802, and memory 803 can be connected via a bus or other means; this embodiment takes a bus connection as an example.

[0108] The processor 801 (or Central Processing Unit, CPU) is the computing and control core of the data processing device. It can parse various instructions within the terminal device and process various data from the terminal device. For example, the CPU can parse power-on / off commands sent by the user to the terminal device and control the terminal device to perform power-on / off operations; furthermore, the CPU can transmit various interactive data between internal structures of the terminal device, and so on. The processor 801 may further include hardware chips. These hardware chips can be application-specific integrated circuits (ASICs), programmable logic devices (PLDs), etc. The PLDs can be field-programmable gate arrays (FPGAs), generic array logic (GALs), etc.

[0109] The communication interface 802 may optionally include a standard wired interface or a wireless interface (such as Wi-Fi, mobile communication interface, etc.), and can be used to send and receive data under the control of the processor 801; the communication interface 802 can also be used for the transmission and interaction of data within the terminal device.

[0110] Memory 803 is a memory device in a terminal device used to store programs and data. It is understood that memory 803 here can include the terminal device's built-in memory, or it can include extended memory supported by the terminal device. Memory 803 provides storage space for the terminal device's operating system, which may include, but is not limited to, Android, iOS, Windows Phone, etc., and this application does not limit this. Memory 803 may include volatile memory, such as random-access memory (RAM); memory 803 may also include non-volatile memory, such as flash memory, solid-state drive (SSD), etc.; memory 803 may also include combinations of the above types of memory.

[0111] The memory 803 is also used to store program instructions. The processor 801 can call the program instructions to implement the message processing method shown in the foregoing embodiments of this application.

[0112] In one embodiment, the processor 801 executes a computer program stored in the memory 803, configured to: detect the reading status of the target session in response to a message viewing operation of the target session; if the reading status is a historical message status, obtain a historical message identifier recorded for the target session; display i session messages on the session interface of the target session according to the historical message identifier, the i session messages including unread messages determined according to the historical message identifier, where i is a positive integer; update the message identifier of the j-th session message on the session interface to the historical message identifier of the target session, where j is a positive integer less than or equal to i.

[0113] In one embodiment, state recording information is set for the target session, the state recording information including a historical message field for recording historical message identifiers; the processor 801 is used to read the historical message identifiers from the historical message field in the state recording information.

[0114] In one embodiment, the processor 801 is configured to display unread indication information on the session interface of the target session; if a viewing operation on the unread indication information is detected, a first set of unread messages determined from n unread messages is displayed on the session interface of the target session; and the message identifier of the last unread message in the first set of unread messages displayed on the current session interface is recorded as a historical message identifier in the historical message field.

[0115] In one embodiment, the processor 801 is configured to, in response to a detected continued viewing operation of remaining unread messages, display a second set of unread messages; use the message identifier of the last unread message in the second set of unread messages as a new historical message identifier, and update the historical message field with the new historical message identifier.

[0116] In one embodiment, the processor 801 is configured to display unread indication information on the session interface of the target session; if a viewing operation on the unread indication information is detected, a first set of unread messages determined from n unread messages is displayed on the session interface of the target session; and the first target unread message among the n unread messages is recorded as a historical message identifier in the historical message field, wherein the first target unread message refers to the message identifier of the next unread message of the last unread message in the first set of n unread messages.

[0117] In one embodiment, the processor 801, in response to a detected continued viewing operation of the remaining unread messages, displays a second set of unread messages; and records the second target unread message among the n unread messages as a historical message identifier in the historical message field, wherein the second target unread message refers to the message identifier of the next unread message of the last unread message in the second set of unread messages among the n unread messages.

[0118] In one embodiment, the default reading state of the target session is the new message state. The processor 801 is configured to update the reading state of the target session to the historical state if a viewing operation on the unread indication information is detected; record the message identifier of the first message among the n unread messages as a historical message identifier in the historical message field; and perform rendering processing on each unread message included in the first unread message set among the n unread messages so as to display the first unread message set on the session interface of the target session.

[0119] In one embodiment, the processor 801 is configured to: if the reading state is a historical message state, determine the number of new messages received corresponding to the target session; if the determined number satisfies a first condition, trigger the execution of obtaining the historical message identifier recorded for the target session; if the determined number satisfies a second condition, display the received new messages on the session interface of the target session, and record the message identifier of the last new message displayed on the session interface of the target session as a historical message identifier in the historical message field.

[0120] In one embodiment, the status recording information set for the target session includes a new message field for recording new message identifiers; the processor 801 is configured to, during the process of displaying the session interface of the target session, if m new messages of the target session are received, display new message indication information and display the message identifier of the last new message received among the m new messages in the new message field; if a viewing operation of the new message indication information is detected, display the first set of new messages among the m new messages on the session interface of the target session; and update the record of the message identifier of the last message displayed on the session interface as a historical message identifier in the historical message field.

[0121] In one embodiment, the processor 801 is configured to modify the reading state of the target session to the new message state and delete the historical message identifier recorded in the historical message field when the recorded historical message identifier is the same as the recorded new message identifier.

[0122] In one embodiment, the processor 801 is configured to display an interruption position marker on the session interface displaying the i session messages, based on the display position of the unread messages determined by the historical message identifier included in the i session messages on the session interface.

[0123] In one embodiment, the processor 801 is configured to, when detecting a closing operation on the session interface of the target session, if the reading state of the target session is a history message state, issue a prompt message asking whether to record the history message identifier.

[0124] If a cancellation operation is detected in response to the prompt message, the reading status of the target session is updated to the default status, and the historical message identifier recorded for the target session is deleted.

[0125] In one embodiment, the processor 801 is configured to display a recording prompt on the session interface of the target session, the recording prompt being used to prompt whether to record a historical message identifier; if a cancellation operation is received for the recording prompt, the reading status of the target session is updated to the default status, and the historical message identifier recorded for the target session is deleted; if a confirmation operation is received for the recording prompt, the processor triggers the recording of the message identifier of the last unread message in the first unread message set displayed on the current session interface as a historical message identifier in the historical message field.

[0126] In one embodiment, the processor 801 is configured to compare n with a preset record prompt threshold; if n is greater than the preset record prompt threshold, then trigger the display of record prompt information on the session interface of the target session; if n is less than the preset record prompt threshold, then update the reading status of the target session to the default status and delete the historical message identifier that is recorded in the target session.

[0127] In one embodiment, the processor 801 is configured to display a settings interface when an automatic location setting operation of the target session in the session list is detected, the settings interface including a prompt message indicating whether to set the target session as an automatic location type; if a confirmation operation is detected in the settings interface, the target session is recorded as an automatic location type; in response to a message viewing operation of the target session, it is determined whether the type of the target session is an automatic location type; if so, the detection of the reading status of the target session is triggered.

[0128] Based on the same inventive concept, the principle and beneficial effects of the intelligent device in the embodiments of this application in solving the problem are similar to the principle and beneficial effects of the message processing method in the method embodiments of this application in solving the problem. Please refer to the principle and beneficial effects of the method implementation. Furthermore, the relationship between the various steps executed by the processor 801 can also be referred to the description of the relevant content in the foregoing embodiments. For the sake of brevity, it will not be repeated here.

[0129] This application also provides a computer-readable storage medium storing one or more instructions, which are adapted to be loaded by a processor and executed by the data processing method described in the above method embodiments.

[0130] This application also provides a computer program product containing instructions that, when run on a computer, causes the computer to execute the data processing method described in the above method embodiments.

[0131] This application also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned data processing method.

[0132] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.

[0133] The modules in the device of this application embodiment can be merged, divided, and deleted according to actual needs.

[0134] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

[0135] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Those skilled in the art will understand that implementing all or part of the processes of the above embodiments and making equivalent changes in accordance with the claims of this application are still within the scope of the invention.

Claims

1. A message processing method, characterized in that, include: In response to a message viewing operation on a target session, the reading status of the target session is detected; status recording information is set for the target session, the status recording information includes a historical message field and a new message field for recording historical message identifiers, and the identifier of the latest new message is recorded in the new message identifier field; If the reading status is historical message status, then the historical message identifier is read from the historical message field in the status record information; the historical message identifier is the identifier of the last unread message displayed on the last opened session interface during the process of viewing historical messages or unread messages on the session interface of the target session. Based on the historical message identifier, i conversation messages are displayed on the conversation interface of the target session. The i conversation messages include unread messages determined according to the historical message identifier, where i is a positive integer. Update the message identifier of the j-th session message on the session interface to the historical message identifier of the target session, where j is a positive integer less than or equal to i; When the recorded historical message identifier is the same as the recorded new message identifier, the reading status of the target session is changed to the new message status, and the historical message identifier recorded in the historical message field is deleted.

2. The method as described in claim 1, characterized in that, Before detecting the reading status of the target session in response to a message viewing operation on the target session, the method further includes: Display an unread message on the target session's interface; If a viewing operation on the unread indication information is detected, the first set of unread messages determined from the n unread messages is displayed on the session interface of the target session; Record the message identifier of the last unread message in the first set of unread messages displayed on the current session interface as a historical message identifier in the historical message field.

3. The method as described in claim 2, characterized in that, Before detecting the reading status of the target session in response to a message viewing operation on the target session, the method further includes: In response to a detected "continue viewing" action for remaining unread messages, a second set of unread messages is displayed; The message identifier of the last unread message in the second unread message set is used as the new historical message identifier, and the new historical message identifier is updated and recorded in the historical message field.

4. The method as described in claim 1, characterized in that, Before detecting the reading status of the target session in response to a message viewing operation on the target session, the method further includes: Display an unread message on the target session's interface; If a viewing operation on the unread indication information is detected, the first set of unread messages determined from the n unread messages is displayed on the session interface of the target session; The first target unread message among the n unread messages is recorded as a historical message identifier in the historical message field. The first target unread message refers to the message identifier of the next unread message after the last unread message in the first unread message set among the n unread messages.

5. The method as described in claim 4, characterized in that, Before detecting the reading status of the target session in response to a message viewing operation on the target session, the method further includes: In response to a detected "continue viewing" action for remaining unread messages, a second set of unread messages is displayed; The second target unread message among the n unread messages is recorded as a historical message identifier in the historical message field. The second target unread message refers to the message identifier of the next unread message after the last unread message in the second unread message set among the n unread messages.

6. The method as described in claim 2 or 4, characterized in that, The default reading state of the target session is the new message state. Before displaying the first set of unread messages determined from n unread messages on the target session's session interface, the process further includes: If a viewing operation of the unread indication information is detected, the reading status of the target session will be updated to the historical status. Record the message identifier of the first message among the n unread messages as a historical message identifier in the historical message field; Render each unread message in the first unread message set of n unread messages so that the first unread message set can be displayed on the session interface of the target session.

7. The method according to any one of claims 1-5, characterized in that, Also includes: If the reading status is historical message status, then determine the number of new messages received corresponding to the target session; If the determined quantity meets the first condition, then the process of obtaining the historical message identifiers recorded for the target session is triggered. If the determined quantity meets the second condition, the received new messages are displayed on the target session's session interface, and the message identifier of the last new message displayed on the target session's session interface is recorded as a historical message identifier in the historical message field.

8. The method according to any one of claims 1-5, characterized in that, Also includes: During the process of displaying the session interface of the target session, if m new messages of the target session are received, the new message indication information is displayed, and the message identifier of the last new message received among the m new messages is displayed in the new message field; If a viewing operation of the new message indication information is detected, the first set of new messages from the m new messages will be displayed on the session interface of the target session; The message identifier of the last message displayed on the conversation interface is updated and recorded in the historical message field as a historical message identifier.

9. The method as described in claim 1, characterized in that, Also includes: Based on the display position of the unread messages included in the i-th session message, determined by the historical message identifier, on the session interface, an interruption position marker is displayed on the session interface displaying the i-th session message.

10. The method as described in claim 1, characterized in that, Also includes: When a closing operation is detected on the session interface of the target session, if the reading status of the target session is in the history message status, a prompt message is issued to ask whether to record the history message identifier. If a cancellation operation is detected in response to the prompt message, the reading status of the target session is updated to the default status, and the historical message identifier recorded for the target session is deleted.

11. The method as described in claim 2 or 4, characterized in that, After displaying the first set of unread messages determined from n unread messages on the session interface of the target session, the method further includes: A recording prompt message is displayed on the session interface of the target session. The recording prompt message is used to prompt whether to record the historical message identifier. If a cancellation operation is received for the record prompt information, the reading status of the target session is updated to the default status, and the historical message identifier for the target session record is deleted; If a confirmation operation for the recorded prompt information is received, the execution is triggered to record the message identifier of the last unread message in the first unread message set displayed on the current session interface as a historical message identifier in the historical message field.

12. The method as described in claim 11, characterized in that, Before displaying the recording prompt information on the session interface of the target session, the method further includes: Compare n with a preset record prompt threshold; If n is greater than the preset record prompt threshold, then the record prompt information will be displayed on the session interface of the target session. If n is less than the preset record prompt threshold, the reading status of the target session will be updated to the default status, and the historical message identifier for the target session record will be deleted.

13. The method as described in claim 1, characterized in that, The method further includes: When the automatic location setting operation of the target session in the session list is detected, the setting interface is displayed, which includes a prompt message on whether to set the target session to the automatic location type. If a confirmation operation is detected in the settings interface, the target session will be recorded as an automatic location type. Before detecting the reading status of the target session, the method further includes: In response to a message viewing operation on a target session, determine whether the type of the target session is an auto-location type; If so, then the process of detecting the reading status of the target session is triggered.

14. A message processing device, characterized in that, include: The detection module is used to detect operations performed on the terminal. The processing module is used to detect the reading status of the target session in response to the message viewing operation of the target session; and to set status recording information for the target session, the status recording information including a historical message field for recording historical message identifiers and a new message field, wherein the identifier of the latest new message is recorded in the new message identifier field; It is used to read the historical message identifier from the historical message field in the status record information if the reading status is historical message status; the historical message identifier is the identifier of the last unread message displayed on the last opened session interface during the process of viewing historical messages or unread messages on the session interface of the target session. It is used to display i conversation messages on the conversation interface of the target session according to the historical message identifier, the i conversation messages including unread messages determined according to the historical message identifier, where i is a positive integer; and to update the message identifier of the j-th conversation message on the conversation interface to the historical message identifier of the target session, where j is a positive integer less than or equal to i; It is also used to modify the reading status of the target session to the new message status and delete the historical message identifier recorded in the historical message field when the recorded historical message identifier is the same as the recorded new message identifier.

15. A smart device, characterized in that, Including memory and processor; The memory stores computer programs; The processor executes a computer program stored in the memory to implement the message processing method as described in any one of claims 1-13.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the message processing method as described in any one of claims 1-13.

17. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, the message processing method as described in any one of claims 1-13 is implemented.

Citation Information

Patent Citations

  • Unread message reminding method and device, terminal equipment and storage medium

    CN110191231A