Unread message processing method and device, electronic device and storage medium

By updating the number of unread messages according to the information identification when logging in to the target account, combining the login status and type, the problem of server resources is solved and the system efficiency is improved.

CN114461116BActive Publication Date: 2024-12-03BEIJING SHAREIT INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210014576.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-07
Publication Date
2024-12-03
Estimated Expiration
2042-01-07

AI Technical Summary

Technical Problem

In the prior art, the server needs to update the number of unread messages for all clients, resulting in excessive resource consumption, especially for inactive accounts that do not log in for a long time, the update frequency is too high, resulting in waste of resources.

Method used

When logging in to the target account, the number of unread messages is updated based on the information of the last read message recorded, and whether to update is determined based on the login status and type to reduce unnecessary information push.

Benefits of technology

Reduces the consumption of server resources, reduces the number of unread updates to inactive accounts, and improves system efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114461116B_ABST
    Figure CN114461116B_ABST
Patent Text Reader

Abstract

The disclosed embodiments are about an unread message processing method and device, an electronic device and a storage medium. The unread message processing method may include: recording the information identifier of the last read message of the target account; detecting whether the target account is logged in; when detecting that the target account is logged in, determining the number of unread messages of the target account according to the information identifier; sending the number of unread messages to the login client of the target account, and the number of unread messages is used for display by the login client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information technology, and in particular to an unread message processing method and device, an electronic device, and a storage medium. Background Art

[0002] In order to conveniently remind the user how many unread messages there are, the server will count the user's unread messages and send the number of unread messages to the user's client. After receiving the number of unread messages, the client will display it on a user interface (UI) of the client such as an application (APP) to inform the user how many unread messages there are.

[0003] However, the premise of displaying the number of unread messages on the client UI is that the number of unread messages on the client needs to be counted. Currently, the number of unread messages is counted by the server. Summary of the invention

[0004] Embodiments of the present disclosure provide an unread message processing method and device, an electronic device, and a storage medium.

[0005] A first aspect of an embodiment of the present disclosure provides an unread message processing method, which is executed by a server, and the method includes:

[0006] Record the information ID of the last read message of the target account;

[0007] Detect whether the target account is logged in;

[0008] Determining the number of unread messages of the target account according to the information identifier: When detecting that the target account is logged in, determining the number of unread messages of the target account according to the information identifier;

[0009] The number of unread messages is sent to a login client of the target account, and the number of unread messages is used for display by the login client.

[0010] Based on the above solution, when the target account is detected to be logged in, determining the number of unread messages of the target account according to the information identifier includes:

[0011] When it is detected that the target account is logged in and the login status of the target account meets a preset condition, the number of unread messages of the target account is determined according to the information identifier.

[0012] Based on the above solution, the login status of the target account meets the preset conditions, including at least one of the following:

[0013] The target account's current login duration reaches a preset duration;

[0014] The display page of the login client of the target account is switched to a preset page.

[0015] Based on the above solution, the preset page is a display page other than the login page of the login client;

[0016] or,

[0017] The preset page is a display page other than the home page after the login client logs in;

[0018] or,

[0019] The preset page is a message display page for unread messages.

[0020] Based on the above solution, the unread messages include:

[0021] Unread system messages.

[0022] Based on the above solution, when the target account is detected to be logged in, determining the number of unread messages of the target account according to the information identifier includes:

[0023] When detecting that the target account is logged in, determining the timeliness of the unread messages;

[0024] The number of unread messages with timeliness of the target account is determined according to the information identifier.

[0025] Based on the above solution, the method further includes: determining the type of the target account;

[0026] The step of determining the number of unread messages of the target account according to the information identifier when the target account is detected to be logged in includes:

[0027] When the target account is a first type account and it is detected that the target account is logged in, the number of unread messages of the target account is determined according to the information identifier.

[0028] Based on the above solution, the method further includes:

[0029] When the target account is a second type account, the number of unread messages of the target account is updated when the unread message is generated.

[0030] A second aspect of an embodiment of the present disclosure provides an unread message processing device, the device comprising:

[0031] A recording module is used to record the information identifier of the last read message of the target account;

[0032] A detection module, used to detect whether the target account is logged in;

[0033] A determination module, configured to determine the number of unread messages of the target account according to the information identifier. When detecting that the target account is logged in, determine the number of unread messages of the target account according to the information identifier.

[0034] The sending module is used to send the number of unread messages to the login client of the target account, and the number of unread messages is used for display by the login client.

[0035] Based on the above solution, the determination module is specifically used to determine the number of unread messages of the target account according to the information identifier when it is detected that the target account is logged in and the login status of the target account meets a preset condition.

[0036] Based on the above solution, the login status of the target account meets the preset conditions, including at least one of the following:

[0037] The target account's current login duration reaches a preset duration;

[0038] The display page of the login client of the target account is switched to a preset page.

[0039] Based on the above solution, the preset page is a display page other than the login page of the login client;

[0040] or,

[0041] The preset page is a display page other than the home page after the login client logs in;

[0042] or,

[0043] The preset page is a message display page for unread messages.

[0044] Based on the above solution, the unread messages include:

[0045] Unread system messages.

[0046] Based on the above scheme, the determination module is specifically used to determine the timeliness of unread messages when detecting that the target account is logged in; and determine the number of unread messages with timeliness of the target account according to the information identifier.

[0047] Based on the above solution, the method further includes: determining the type of the target account;

[0048] The step of determining the number of unread messages of the target account according to the information identifier when the target account is detected to be logged in includes:

[0049] When the target account is a first type account and it is detected that the target account is logged in, the number of unread messages of the target account is determined according to the information identifier.

[0050] Based on the above solution, the device also includes:

[0051] An updating module is used to update the number of unread messages of the target account when the unread message is generated when the target account is a second type account.

[0052] A third aspect of the present disclosure provides an electronic device, including:

[0053] a memory for storing processor-executable instructions;

[0054] A processor connected to the memory;

[0055] Among them, the processor is configured to execute the unread message processing method provided by any technical solution of the first aspect mentioned above.

[0056] A fourth aspect of an embodiment of the present disclosure provides a non-temporary computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the unread message processing method provided by any technical solution of the first aspect is implemented.

[0057] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0058] In the disclosed embodiment, the message mark of the last read message read by the target account before the current moment is recorded, and the number of unread messages is updated according to the recorded information mark after it is detected that the target account is logged in. In this way, when the target account is not logged in, the number of unread messages of the target account is not updated when the server pushes a message, thereby reducing the need for accounts that do not log in frequently to update the number of unread messages every time they receive an unread message, thereby reducing the consumption of server resources.

[0059] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0061] Figure 1 It is a flowchart of an unread message processing method shown in an embodiment of the present disclosure.

[0062] Figure 2It is a schematic diagram of reading a system notification shown in an embodiment of the present disclosure.

[0063] Figure 3 It is a flowchart of an unread message processing method shown in an embodiment of the present disclosure.

[0064] Figure 4 It is a flowchart of an unread message processing method shown in an embodiment of the present disclosure.

[0065] Figure 5 It is a structural schematic diagram of an unread message processing device shown in an embodiment of the present disclosure.

[0066] Figure 6 It is a structural schematic diagram of an electronic device shown in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0067] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0068] Sometimes the server will actively push various push messages to each client. These push messages will only be displayed when the client detects a reading operation on the user interface (UI). In this way, each client receives the push message, and when counting unread messages, the server needs to add 1 to the number of unread messages of all clients. If the number of users currently using the client is large, a large amount of server resources will be consumed to perform this operation, and sometimes it may take 1 to 2 hours to complete the update of all unread messages caused by a push message, which will consume a large amount of server resources. In view of this, the embodiments of the present disclosure provide an unread message processing method that can at least partially reduce such resource consumption of the server.

[0069] like Figure 1 As shown, the embodiment of the present disclosure provides an unread message processing method, which is executed by a server, and the method includes:

[0070] S110: Recording the information identifier of the last read message of the target account;

[0071] S120: Detect whether the target account is logged in;

[0072] S130: When detecting that the target account is logged in, determining the number of unread messages of the target account according to the information identifier;

[0073] S140: Send the number of unread messages to the login client of the target account, and the number of unread messages is used for display by the login client.

[0074] The server may be an application server or a control server of the client.

[0075] The client may include: an application (Application, APP), a mini-program, a direct account, a public account or a quick application, etc. The client includes but is not limited to: applications such as Weibo, WeChat, Facebook, Xiaohongshu, Douban, forums or Instagram.

[0076] The target account may be a user account of various clients, for example, a social account of a social application, an application account of an instant messaging application, etc.

[0077] For example, a user can log in using a user serial number assigned by a server, or can log in using a login account and password, or can log in based on a fingerprint or other method.

[0078] The unread messages may include: various messages that the target account has not read, such as unread system messages and unread social messages. For example, an unread message sent by friend A of the target account to the target account is an unread social message. Social messages may include: private messages and / or comment messages, etc.

[0079] In some embodiments, the count of the number of unread messages may be: a unified count of all types of unread messages of a user account, or a count of different types of unread messages by category.

[0080] For example, social messages and unread system messages are counted separately, so that after the target account is logged in, the user can follow the number of unread messages of the type of unread messages that he is interested in according to his needs.

[0081] The unread message processing method in the embodiment of the present disclosure can be applied to the scenario of uniformly counting the unread messages, and can also be applied to the scenario of individually counting the unread messages.

[0082] For example, when the target account logs in and out once, the server can add the message ID of the last read message to the read field based on the reading record of the target account, instead of updating the message ID every time a read message is updated, thereby reducing unnecessary information updates on the server.

[0083] Exemplarily, after the client of the target account logs in, it will actively send a request message to the server to retrieve the number of unread messages. Upon receiving the request message, the server considers that it has detected that the client has logged in.

[0084] When it is detected that the target account is logged in, the number of unread messages of the target account is determined based on the number of read messages and the message records of unread messages stored in the server; in this way, the number of updates of the unread number of inactive accounts that have not logged in for a long time will be greatly reduced compared to the number of updates when there is one unread message, at least reducing the resources consumed by the server for updating the unread number of such inactive accounts.

[0085] In some embodiments, the S130 may include:

[0086] When it is detected that the target account is logged in and the login status of the target account meets a preset condition, the number of unread messages of the target account is determined according to the information identifier.

[0087] In some cases, the terminal device may be accidentally touched, causing the target account to log in. This target account login is called an accidental login. In this case, the user will not actually pay attention to the number of unread messages, nor will they enter the reading page of unread messages to read the information. Therefore, there is no need to update the number of unread messages caused by this erroneous login.

[0088] If the login status meets the preset conditions, it can be considered that the current login of the target account is not an erroneous login caused by an accidental touch.

[0089] In some embodiments, the login status of the target account satisfies a preset condition, including at least one of the following:

[0090] The target account's current login duration reaches a preset duration;

[0091] The display page of the login client of the target account is switched to a preset page.

[0092] For example, if the terminal is touched by mistake, the client is clicked to enter the application interface, and the terminal will quickly detect the user's operation to exit the client. The client may include various applications, applets, direct numbers or public accounts running on the terminal. Therefore, if it is caused by an erroneous operation, the terminal will quickly exit the application interface, that is, the login time of the target account is very short. In order to filter out such erroneous logins of the target account, the target account is logged in, and the duration of this login needs to reach a preset time. For example, the preset time may be 30s, 1min, 2min or 3min, etc.

[0093] In some embodiments, when logging in to some APPs, it is necessary to go through the login startup page and then enter the application interface of the application. If the APP receives a user operation to switch the APP to the background or close the APP while displaying the startup page, it is obvious that the current login is caused by an accidental touch. Therefore, in the embodiments of the present disclosure, it is also determined whether the current login is caused by an erroneous operation based on the display page of the current login client of the target account.

[0094] Exemplarily, the preset page is a display page other than the login page of the login client; or, the preset page is a display page other than the homepage after the login client logs in; or, the preset page is a message display page for unread messages.

[0095] The login page is a jump interface that triggers the client to enter the application interface. If the client is only displayed to the login page and is stopped from entering the application interface, it is considered that this login state does not meet the preset conditions.

[0096] If the client's display page enters the main page, the main page can be the top-level application interface of the client, and it can usually be the page with the highest display frequency. You can switch to multiple other pages from the client's main page. If the target account stays on the main page during this login, it is possible that the login was made by mistake or the user does not want to view unread messages.

[0097] Furthermore, after the client passes through the login page and / or the main page, it switches to the display page of unread messages, which means that the user is very likely to check the unread messages, and it means that the login state at this time may be a login that meets the preset state.

[0098] In the disclosed embodiment, after the target account logs in, the number of unread messages is counted, mainly for unread system messages.

[0099] The unread system messages may include: unread system notifications and / or unread system push messages. For example, system notifications of client upgrades, system notifications of client link migration, etc. Unread system push messages may include: advertising messages or coupon distribution messages, etc.

[0100] Exemplarily, the unread system message includes at least one of the following:

[0101] Client update system notification;

[0102] Promotion system notification;

[0103] Notification of the target object recommendation system.

[0104] In the disclosed embodiment, the unread number count can be different for different unread messages. For example, for the unread system messages of the target account, the unread number is updated by updating the count after logging in, and for social messages, since social messages are usually point-to-point or point-to-multipoint, and even point-to-multipoint communication does not involve the update of unread messages of a large number of user accounts, the unread number can be updated in real time.

[0105] For example, when the target account receives a message from its friend account, the server finds that the target account is not logged in after receiving the message, caches the messages of the target account's friend account, and performs an operation of adding 1 to the number of unread social messages, or does not perform the addition operation, and waits until the target account logs in, and then updates the number of unread messages for all unread messages.

[0106] In some embodiments, the S130 may include:

[0107] S131: When detecting that the target account is logged in, determining the timeliness of the unread messages;

[0108] S132: Determine the number of unread messages with timeliness of the target account according to the information identifier.

[0109] Some system messages may have a certain timeliness. For example, a coupon distribution message may only be valid within a specific time period and become invalid at other time periods. If the target account is logged in, there is no need to send such invalid unread system messages to the target account again, nor is there any need to remind the user through the number of unread messages.

[0110] Therefore, in the embodiment of the present disclosure, the server only counts the unread messages that are time-sensitive (i.e., not expired) when the target account is logged in, to ensure the accuracy of the statistics on the number of unread messages.

[0111] If one unread message is added, the number of unread messages is increased by 1. If the timeliness of unread messages is taken into consideration, when there are expired unread messages, the number of unread messages needs to be decreased by 1 to ensure the accuracy of the number of unread messages seen by the user. In the disclosed embodiment, the number of unread messages with timeliness is counted once only when the target account logs in, and there is no need to perform a decrease by 1 operation. Therefore, from this level, unnecessary update operations of the number of unread messages on the server are reduced, reducing the server's overhead.

[0112] In some embodiments, Figure 4 As shown, the method also includes:

[0113] S100: Determine the type of the target account;

[0114] The S130 may include:

[0115] When the target account is a first type account and it is detected that the target account is logged in, the number of unread messages of the target account is determined according to the information identifier.

[0116] The type of the target account can be distinguished according to the login situation of the target account. For example, the user accounts with high login frequency and the user accounts with low login frequency can be divided into two categories according to the login frequency. For another example, the target account can be divided into two types of users with long login time and short login time according to the login time in a login cycle. For another example, according to the message processing operation after the target account is logged in, it can be divided into two types of users. For example, taking WeChat as an example, some WeChat accounts have a large number of unread messages for a long time. After logging in to the WeChat account, the user will browse the Moments and read the social messages sent by the friends he is interested in, but for some group messages or social messages of users he is not interested in, the user will not read them.

[0117] According to the importance that the user account attaches to the reminder of the number of unread items, the user account can also be divided into a first type of account and a second type of account.

[0118] Therefore, in some embodiments, the first type of account can be identified as an inactive account and the second type of account as an active account based on the login situation, for example, the login frequency and / or the duration of a single login and / or the total duration of maintaining the login status within a login cycle.

[0119] In other embodiments, the first type of account may be determined as a non-followed account and the second type of account may be determined as a followed account based on the user's attention to the number of unread messages.

[0120] For the second type of account, the operation of updating the number of unread messages can continue to be used when there are new unread messages, so as to ensure more immediate updates of unread messages. For example, if the target account is an active user who remains logged in for a long time, for such a target user, it is not necessary to record the information identifier of the previous read message, but to directly increase the number of unread messages by 1 when a new unread message is generated, thereby reducing more operations caused by the server frequently updating the information identifier of the last read message.

[0121] For the first type of account, they may log in less frequently or not pay attention to the number of unread items, and do not care about the immediacy of updating the number of unread items. In this case, the number of unread items can be updated once at each login or at each login when the login status meets the preset conditions based on the information identifier of the last read message, thereby reducing unnecessary updates of the server to the number of unread items of the target account and reducing the server's load overhead.

[0122] In some embodiments, the method further comprises:

[0123] Within a preset period, the target account is determined as the first type account or the second type account according to the login status and / or the viewing status of unread messages of the target account.

[0124] In this way, if the user's login habits change and / or message reading habits change, the account type to which the target account belongs will also change accordingly, making it convenient for the server to adopt an update method for the number of unread items that is adapted to the current login status of the target account and / or the login status of unread messages.

[0125] Social applications usually have a system notification function, where the system will send messages to all users to inform them of new versions or operational activities in their accounts.

[0126] If the user account does not read, the system will show him how many unread reminders there are. When browsing the information flow, if the page is not refreshed for a long time, the top of the information flow will remind you how many messages you have not read during this period.

[0127] Usually, in the counting system, multiple unread items are stored with the user identification (ID), that is, the user account, as the key value.

[0128] When a friend account likes a post, the count of unread likes is increased.

[0129] When a friend account comments on you, increase the count of unread comments.

[0130] When you check the unread count or check the likes or comments on the message, reset the unread count to 0.

[0131] If a system notification is sent, the unread count for each user ID will be increased by 1 through the counting system. This seems simple and feasible, but as the number of user accounts in the system increases, it will take a long time to count the unread counts for all users. Moreover, only a small number of user accounts are active in the system. Most user accounts are inactive and have never even opened system notifications. It is obviously a waste to record the unread counts for these user accounts.

[0132] System notifications exist in a list that is shared by all user accounts. All users see the same system notification, but different people have seen different messages recently, so each person will have a different number of unread messages. Therefore, you can record the last message ID that each person has seen in this list, and then count how many messages there are after this ID. This is the number of unread messages.

[0133] The user account accesses the system notification page and sets the unread count to 0, and sets the most recently viewed notification ID to the latest system notification ID. If the most recently viewed notification ID is empty, the unread count is returned to 0.

[0134] For inactive accounts, such as user accounts that have not logged in or used the system in the past month, the notification IDs that the user account has recently viewed can be cleared to save memory space. This solution saves memory and minimizes system unread count delays.

[0135] like Figure 5 As shown, an embodiment of the present disclosure provides an unread message processing device, the device comprising:

[0136] Recording module 110, used to record the information identifier of the last read message of the target account;

[0137] A detection module 120, used to detect whether the target account is logged in;

[0138] The determination module 130 is used to determine the number of unread messages of the target account according to the information identifier. When the target account login is detected, the number of unread messages of the target account is determined according to the information identifier;

[0139] The sending module 140 is used to send the number of unread messages to the login client of the target account, and the number of unread messages is used for display by the login client.

[0140] The unread message processing device may be included in a server.

[0141] In some embodiments, the recording module 110 , the detection module 120 , the determination module 130 , and the sending module 140 may all be program modules; after the program modules are executed by the processor, the above operations can be implemented.

[0142] In other embodiments, the recording module 110, the detection module 120, the determination module 130 and the sending module 140 can all be soft-hard combination modules; the soft-hard combination modules include but are not limited to: various programmable arrays; the programmable arrays include but are not limited to: field programmable arrays and / or complex programmable arrays.

[0143] In some other embodiments, the recording module 110, the detection module 120, the determination module 130 and the sending module 140 may all be pure hardware modules; the pure hardware modules include but are not limited to various application-specific integrated circuits.

[0144] In some embodiments, the determination module 130 is specifically configured to determine the number of unread messages of the target account according to the information identifier when it is detected that the target account is logged in and the login status of the target account meets a preset condition.

[0145] In some embodiments, the login status of the target account satisfies a preset condition, including at least one of the following:

[0146] The target account's current login duration reaches a preset duration;

[0147] The display page of the login client of the target account is switched to a preset page.

[0148] In some embodiments, the preset page is a display page other than the login page of the login client;

[0149] or,

[0150] The preset page is a display page other than the home page after the login client logs in;

[0151] or,

[0152] The preset page is a message display page for unread messages.

[0153] In some embodiments, the unread messages include:

[0154] Unread system messages.

[0155] In some embodiments, the determination module 130 is specifically used to determine the timeliness of unread messages when detecting that the target account is logged in; and determine the number of unread messages with timeliness of the target account based on the information identifier.

[0156] In some embodiments, the method further comprises: determining a type of the target account;

[0157] The step of determining the number of unread messages of the target account according to the information identifier when the target account is detected to be logged in includes:

[0158] When the target account is a first type account and it is detected that the target account is logged in, the number of unread messages of the target account is determined according to the information identifier.

[0159] In some embodiments, the apparatus further comprises:

[0160] An updating module is used to update the number of unread messages of the target account when the unread message is generated when the target account is a second type account.

[0161] An embodiment of the present disclosure provides an electronic device, including:

[0162] a memory for storing processor-executable instructions;

[0163] Processor, respectively memory connection;

[0164] The processor is configured to execute the unread message processing method provided by any of the aforementioned technical solutions by executing computer executable instructions stored in the memory.

[0165] The processor may include various types of storage media, which are non-transitory computer storage media that can continue to memorize information stored thereon after the mobile terminal loses power.

[0166] The processor may be connected to the memory via a bus or the like, and is used to read an executable program stored in the memory, for example, Figures 1 to 3 At least one of any of the methods shown.

[0167] Figure 6 8 is a block diagram of a mobile terminal 800 according to an exemplary embodiment. For example, the mobile terminal 800 may be a mobile phone, a mobile computer, etc.

[0168] Reference Figure 6 The mobile terminal 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0169] The processing component 802 generally controls the overall operation of the mobile terminal 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0170] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the mobile terminal 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0171] The power component 806 provides power to various components of the mobile terminal 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the mobile terminal 800.

[0172] The multimedia component 808 includes a screen that provides an output interface between the mobile terminal 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating state, such as a shooting state or a video state, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0173] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the mobile terminal 800 is in an operating state, such as a call state, a recording state, and a voice recognition state, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0174] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0175] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the mobile terminal 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the mobile terminal 800, and the sensor assembly 814 can also detect the position change of the mobile terminal 800 or a component of the mobile terminal 800, the presence or absence of user contact with the mobile terminal 800, the orientation or acceleration / deceleration of the mobile terminal 800, and the temperature change of the mobile terminal 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0176] The communication component 816 is configured to facilitate wired or wireless communication between the mobile terminal 800 and other devices. The mobile terminal 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0177] In an exemplary embodiment, the mobile terminal 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0178] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the mobile terminal 800 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0179] The present disclosure provides a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal can execute any of the above embodiments to provide an unread message processing method, which can execute the following steps: Figures 1 to 4 At least one of any of the methods shown.

[0180] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0181] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for processing unread messages, characterized in that: Executed by a server, the method comprises: Record the information ID of the last read message of the target account; Detect whether the target account is logged in; When the target account is a first type account and the login of the first type account is detected, the number of unread messages of the unread message system of the first type account is determined according to the information identifier; the first type account is an inactive account or a non-followed account; for social messages in the unread messages of the first type account, the number of unread social messages is updated in time when new social messages are generated; when the target account is a first type account and the login of the first type account is detected, the number of unread messages of the unread message system of the first type account is determined according to the information identifier, including: when the login of the target account is detected and the login status of the target account meets the preset condition, the number of unread messages of the target account is determined according to the information identifier; When the target account is a second type account, updating the number of unread messages of the target account when the unread message is generated; the second type account is an active user or a follow account; The number of unread messages is sent to a login client of the target account, and the number of unread messages is used for display by the login client.

2. The method according to claim 1, characterized in that The login status of the target account meets the preset conditions, including at least one of the following: The target account's current login duration reaches a preset duration; The display page of the login client of the target account is switched to a preset page.

3. The method according to claim 2, characterized in that The preset page is a display page other than the login page of the login client; or, The preset page is a display page other than the home page after the login client logs in; or, The preset page is a message display page for unread messages.

4. The method according to claim 1 or 2, characterized in that: When the target account is a first type account and the login of the first type account is detected, determining the number of unread messages of the first type account's unread message system according to the information identifier includes: When the target account is a first type account and a login of the first type account is detected, determining the timeliness of the unread messages; The number of unread messages with timeliness of the target account is determined according to the information identifier.

5. An unread message processing device, characterized in that: The device comprises: A recording module is used to record the information identifier of the last read message of the target account; A detection module, used to detect whether the target account is logged in; A determination module, configured to determine the number of unread messages of the first type of account according to the information identifier when the target account is a first type of account and the first type of account is detected to be logged in; the first type of account is an inactive account or a non-followed account; for social messages in the unread messages of the first type of account, timely update the number of unread messages of the social messages when a new social message is generated; when the target account is a second type of account, update the number of unread messages of the target account when the unread message is generated; the second type of account is an active user or a followed account; the determination module is specifically configured to determine the number of unread messages of the target account according to the information identifier when it is detected that the target account is logged in and the login status of the target account meets a preset condition; The sending module is used to send the number of unread messages to the login client of the target account, and the number of unread messages is used for display by the login client.

6. The device according to claim 5, characterized in that The login status of the target account meets the preset conditions, including at least one of the following: The target account's current login duration reaches a preset duration; The display page of the login client of the target account is switched to a preset page.

7. The device according to claim 6, characterized in that The preset page is a display page other than the login page of the login client; or, The preset page is a display page other than the home page after the login client logs in; or, The preset page is a message display page for unread messages.

8. The device according to claim 5, characterized in that The determination module is specifically used to determine the timeliness of the unread messages when detecting that the target account is logged in; and determine the number of unread messages with timeliness of the target account according to the information identifier.

9. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; A processor connected to the memory; The processor is configured to execute the unread message processing method provided in any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the unread message processing method provided in any one of claims 1 to 4.