CN114006880B - Method and device for acquiring message receipt, electronic equipment and storage medium - Google Patents

Method and device for acquiring message receipt, electronic equipment and storage medium Download PDF

Info

Publication number
CN114006880B
CN114006880B CN202111241437.0A CN202111241437A CN114006880B CN 114006880 B CN114006880 B CN 114006880B CN 202111241437 A CN202111241437 A CN 202111241437A CN 114006880 B CN114006880 B CN 114006880B
Authority
CN
China
Prior art keywords
client
session
receipt
message
index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111241437.0A
Other languages
Chinese (zh)
Other versions
CN114006880A (en
Inventor
赵仁辉
郑识途
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202111241437.0A priority Critical patent/CN114006880B/en
Publication of CN114006880A publication Critical patent/CN114006880A/en
Application granted granted Critical
Publication of CN114006880B publication Critical patent/CN114006880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure discloses a method, a device, an electronic device and a storage medium for acquiring a message receipt, wherein the method comprises the following steps: according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to acquire at least one second client participating in the current session through the server, and obtaining the maximum read index in session information sent by the first client; and updating the receipt status of the session message corresponding to the maximum read index according to the maximum read index of the at least one second client, and the receipt status of the session message with the index smaller than the maximum read index. According to the technical scheme, frequent communication between the client and the server is avoided, the update efficiency of the receipt status is improved, and the communication resources of the client are saved.

Description

Method and device for acquiring message receipt, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to a software technology and a communication technology, in particular to a method, a device, equipment and a storage medium for acquiring a message receipt.
Background
Today, the network technology rapidly develops, diversified social software appears in the sight of people, and great convenience is brought to the life of people, and the receipt function of the message enables the sender of the message to know the reading dynamics of the other party more easily.
In the prior art, a receipt of a session message is usually reported to a server when a party participating in the session detects that a certain session message is read, and the server updates the receipt status of the session message in a session page of a sender of the session message.
However, in such a message receipt mode, the frequency of communication between the client and the server is high, especially when the user temporarily leaves and returns again, a large amount of unread messages are accumulated by the client, frequent communication between the client and the server is required, so that the receipt update efficiency of the session message is low, and a large amount of communication resources are consumed.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a device, and a storage medium for obtaining a receipt of a message, so that a client updates a receipt status of a session message according to a maximum read index of other clients in a session page.
In a first aspect, an embodiment of the present disclosure provides a method for acquiring a message receipt, which is applied to a first client, and includes:
according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to obtain at least one second client participating in the current session through the server, wherein the maximum read index in a session message sent by the first client; the indexes of the session messages in the session page are arranged in an ascending order;
And updating the receipt status of the session message corresponding to the maximum read index according to the maximum read index of the at least one second client, and the receipt status of the session message with the index smaller than the maximum read index.
In a second aspect, an embodiment of the present disclosure provides a method for acquiring a message receipt, which is applied to a server, and includes:
responding to a receipt update request sent by a first client, and acquiring a matched first session page and at least one second client participating in a current session according to the receipt update request;
and acquiring the maximum read index of the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
In a third aspect, an embodiment of the present disclosure provides an apparatus for acquiring a message receipt, which is applied to a first client, and includes:
the update request sending module is used for sending a receipt update request of a current session page to a server according to a receipt update period so as to obtain at least one second client participating in the current session through the server, wherein the maximum read index is in a session message sent by the first client; the indexes of the session messages in the session page are arranged in an ascending order;
And the receipt status updating module is used for updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
In a fourth aspect, an embodiment of the present disclosure provides an apparatus for acquiring a message receipt, which is applied to a server, and includes:
the system comprises an update request acquisition module, a response piece update module and a response piece update module, wherein the update request acquisition module is used for responding to a receipt update request sent by a first client, acquiring a matched first session page and at least one second client participating in a current session according to the receipt update request;
the maximum read index acquisition module is used for acquiring the maximum read index of the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including a memory, a processing device, and a computer program stored in the memory and capable of running on the processing device, where the processing device implements a method for acquiring a message receipt according to the first embodiment of the present disclosure or a method for acquiring a message receipt according to the second embodiment of the present disclosure when the processing device executes the program.
In a sixth aspect, embodiments of the present disclosure provide a storage medium containing computer-executable instructions that, when executed by a computer processor, are configured to perform a method of obtaining a message receipt of embodiment one of the present disclosure, or a method of obtaining a message receipt of embodiment two.
According to the technical scheme, after the client sends the receipt update request to the server, other clients participating in the current session are acquired through the server, the session message corresponding to the maximum read index and the receipt state of the session message with the index smaller than the maximum read index are updated in the session message sent by the current client, frequent communication between the client and the server is avoided, update efficiency of the receipt state is improved, and communication resources of the client are saved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of one embodiment of a method of acquiring a message receipt of the present disclosure;
FIG. 2A is a flow chart of one embodiment of a method of acquiring a message receipt of the present disclosure;
FIG. 2B is a flow chart of a method for obtaining a message receipt for a specific application scenario I of the present disclosure;
FIG. 3 is a block diagram of an apparatus for acquiring a message receipt in accordance with a third embodiment of the present disclosure;
FIG. 4 is a block diagram of an apparatus for acquiring a message receipt according to a fourth embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device in a fifth embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Example 1
Fig. 1 is a flowchart of a method for obtaining a message receipt according to a first embodiment of the present disclosure, where the embodiment may be adapted to update a receipt status of a session message by a client according to a maximum read index of other clients in a session page, where the method may be performed by an apparatus for obtaining a message receipt according to a third embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and integrated in a client, typically, may be integrated in an SDK (Software Development Kit ) of the client, where the client may be integrated in a terminal device such as a computer or a mobile phone, and the method specifically includes the following steps:
s110, sending a receipt update request of a current session page to a server according to a receipt update period, so as to obtain at least one second client participating in the current session through the server, wherein the maximum read index in a session message sent by the first client; wherein the indexes of the session messages in the session page are arranged in an ascending order.
The current session page is a session page currently displayed by the client, namely, the session page in an active state, and the session page comprises session messages sent by all session participants; if the client side does not currently display a session page, for example, the client side currently displays an address book page, a receipt update request is not sent to the server so as to reduce the communication frequency between the client side and the server; the message receipt refers to that a session message is sent out by a client, and after the session message is sent to other clients in a session page through the forwarding of a server, the reading state (including unread and read) of the session message by the other clients is displayed in the sending client of the session message; the message sender may determine whether the message recipient has read the session message by the receipt status of the message.
After the server obtains the receipt update request sent by the first client, the server determines the matched session page and the session participants in the session page according to the session page identification in the receipt update request, and can determine other clients (namely the second client) in the session page according to the client identification of the message sender in the receipt update request. The maximum read index is the maximum number of session messages that each client participating in the session in each session page has read, if the session page includes only two session participants, e.g., client a and client B, it is apparent that each client corresponds to only one maximum read index, i.e., the maximum read index of client a in the session message sent by client B, and the maximum read index of client B in the session message sent by client a; if the session page includes three or more session participants, for example, client a, client B, and client C, the maximum read index of each client in the session messages sent by different clients is also different, i.e., each client corresponds to a plurality of maximum read indexes, for example, client a, the maximum read index of client a in the session messages sent by client B is obviously different from the maximum read index of client a in the session messages sent by client C.
The server can set a unique session page identifier for each session page according to the participants of the session and the creation time of the session, the session page identifier can be used as prefix information in the session message index, the suffix information is arranged in an ascending order according to the sending time, and the server also records the sender of each session message; the server sends the maximum number of the read session message to the first client in the session message sent by the first client by each second client.
Particularly, the indexes of the session messages in the session pages can be respectively arranged in an ascending order according to different senders, for example, the prefix information is still the session page identifier, the suffix is also arranged in an ascending order according to the sending time, the client identifiers of the senders of the session messages are included between the prefix information and the suffix information, accordingly, the server arranges the session messages sent by each participant in an ascending order in each session page, and the server can directly determine the senders of the session messages according to the session messages.
Optionally, in an embodiment of the present disclosure, before sending a response piece update request of the current session page to the server according to the response piece update period, the method further includes: and acquiring a matched response piece updating period according to the updating frequency of the session messages in the current session page and/or the number of session participants. The response piece update period can be preset to be a fixed value, namely, each session page uses the same response piece update period; the receipt update period matched with the current session page can be acquired by looking up a table or calculating according to the acquired update frequency of the session message and/or the number of session participants based on a period comparison table or a period calculation formula and other modes; the faster the update frequency of the session messages in the session page is, the more session participants are, which indicates that the activity of the user in the session page is higher, and the client configures a shorter receipt update period for the session page, so as to improve the update frequency of the receipt status in the active session.
S120, updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
When the user leaves the re-returning, the user firstly sees the unread message sent recently, and usually reads all the unread messages together, namely a plurality of unread messages accumulated by the client, and the user usually finishes reading the plurality of unread messages in a short time; therefore, after the first client obtains the maximum read index of each second client, setting the session message corresponding to the maximum read index as read, and simultaneously determining that the session message sent before the session message corresponding to the maximum read index is read immediately, thereby setting the session message with the index smaller than the maximum read index as read; compared with the prior art, the server needs to record the reading state of each session message of each client, and the reading state of each session message needs to be communicated with the client.
The first client detects that the target session message is displayed on the current session page, and determines that the target session message in the current session page is read when the clicking behavior or the sliding behavior of the user is detected in the current session page, and in the embodiment of the present disclosure, a detection mode of whether the session message is read is not specifically limited; when the first client detects that a certain session message in the current session page is read, the first client can directly send the index of the session message to the server, the server obtains a matched second session page according to the index of the session message, determines a target second client for sending the session message in the second session page, and updates the maximum read index of the first client in the session message sent by the second client.
Optionally, in an embodiment of the present disclosure, the method for acquiring a message receipt further includes: determining a target second client which sends out the target session message in response to detecting that the target session message in the current session page is read; judging whether the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client; and if the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client, sending the index of the target session message to a server so that the server updates the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
Specifically, the first client may record the maximum read index of the session message sent by the first client to each second client locally, taking the above technical scheme as an example, the client a records the maximum read index of the session message sent by the client B and the maximum read index of the session message sent by the client C, and when the first client detects that the target session message in the current session page is read, the first client determines the sender of the target session message, that is, determines the target second client, for example, determines that the sender of the target session message is the client B; then judging whether the current read target session message is the session message sent after the maximum read index; if yes, sending an index of the target session message to a server, and locally updating a maximum read index in the session message sent by the client B; after the server acquires the index of the target session message, directly updating the maximum read index of the session message sent by the client A in the client B; if not, the index of the target session message is not sent to the server, and meanwhile, the maximum read index of the session message sent by the target second client is not updated locally, so that the communication frequency between the client and the server is further reduced.
According to the technical scheme, after the client sends the receipt update request to the server, other clients participating in the current session are acquired through the server, the session message corresponding to the maximum read index and the receipt state of the session message with the index smaller than the maximum read index are updated in the session message sent by the current client, frequent communication between the client and the server is avoided, update efficiency of the receipt state is improved, and communication resources of the client are saved.
Example two
Fig. 2A is a flowchart of a method for acquiring a message receipt according to a second embodiment of the present disclosure, where the embodiment may be adapted to a server to acquire, according to a receipt update request sent by a client, a maximum read index of a session message sent by a current client by another client participating in a session, where the method may be performed by an apparatus for acquiring a message receipt according to a fourth embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware and integrated in the server, and the method specifically includes the following steps:
s210, responding to a receipt update request sent by a first client, and obtaining a matched first session page and at least one second client participating in a current session according to the receipt update request.
S220, acquiring the maximum read index of the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
Optionally, in an embodiment of the present disclosure, the method for acquiring a message receipt further includes: responding to the index of a target session message sent by a first client, and acquiring a matched second session page and a target second client which sends the target session message in the second session page according to the index of the target session message; and updating the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
Optionally, in an embodiment of the present disclosure, after updating the maximum read index of the session message sent by the target second client by the first client according to the index of the target session message, the method further includes: and sending the maximum read index of the first client in the session message sent by the target second client to the target second client so that the target second client updates the receipt status of the session message according to the maximum read index of the first client. If the server determines that the maximum read index of the session message sent by the first client side in the target second client side is updated, the server sends the maximum read index of the first client side to the target second client side in an active sending mode so as to ensure timeliness of receipt status updating of the session message, and the target second client side updates according to the obtained maximum read index.
According to the technical scheme, after a receipt update request sent by the first client is obtained by the server, other clients participating in a session in the session page are determined according to the matched session page, and the maximum read index of other clients in the session message sent by the first client is sent to the first client, so that the receipt state of the session message is updated by the first client according to the maximum read index, frequent communication between the client and the server is avoided, the update efficiency of the receipt state of the session message is improved, and the communication resources of the server are saved.
Specific application scenario 1
Fig. 2B is a method for acquiring a message receipt provided in a specific application scenario of the present disclosure, in which a first client acquires, through a server, a second client participating in a current session, and a maximum read index in a session message sent by the first client, the method specifically includes:
the first client sends a receipt update request of the current session page to the server; the server acquires a receipt update request sent by a first client; the server acquires a matched first session page and a second client participating in the current session according to the receipt update request; the server obtains the maximum read index of the second client in the session message sent by the first client; the server sends the maximum read index of the second client to the first client; the first client acquires a maximum read index of the second client; the first client updates the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with an index less than the maximum read index according to the maximum read index of the second client.
According to the technical scheme, after the first client sends a receipt update request to the server, the server acquires the maximum read index of the session message sent by the first client by the second client participating in the current session, and the first client updates the session message corresponding to the maximum read index and the receipt state of the session message with the index smaller than the maximum read index according to the maximum read index, so that frequent communication between the client and the server is avoided, the update efficiency of the receipt state of the session message is improved, and a large amount of communication resources are saved.
Example III
Fig. 3 is a block diagram of a message receipt acquiring device according to a third embodiment of the present disclosure, which specifically includes: an update request sending module 310 and a response piece status updating module 320.
An update request sending module 310, configured to send a receipt update request of a current session page to a server according to a receipt update period, so as to obtain, by the server, at least one second client participating in a current session, and a maximum read index in a session message sent by the first client; the indexes of the session messages in the session page are arranged in an ascending order;
And the receipt status updating module 320 is configured to update the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
According to the technical scheme, after the client sends the receipt update request to the server, other clients participating in the current session are acquired through the server, the session message corresponding to the maximum read index and the receipt state of the session message with the index smaller than the maximum read index are updated in the session message sent by the current client, frequent communication between the client and the server is avoided, update efficiency of the receipt state is improved, and communication resources of the client are saved.
Optionally, based on the above technical solution, the device for acquiring the message receipt further includes:
the target second client acquisition module is used for responding to detection that the target session message in the current session page is read and determining a target second client which sends the target session message;
the maximum read index judging module is used for judging whether the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client;
And the maximum read index reporting module is used for sending the index of the target session message to a server if the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client, so that the server updates the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
Optionally, based on the above technical solution, the device for acquiring the message receipt further includes:
and the receipt update period acquisition module is used for acquiring the matched receipt update period according to the update frequency of the session messages in the current session page and/or the number of session participants.
The device can execute the method for acquiring the message receipt provided by the first embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be referred to the method for acquiring a message receipt provided in the first embodiment of the present disclosure.
Example IV
Fig. 4 is a block diagram of a message receipt acquiring device according to a fourth embodiment of the present disclosure, which specifically includes: an update request acquisition module 410 and a maximum read index acquisition module 420.
An update request obtaining module 410, configured to obtain, in response to obtaining a receipt update request sent by a first client, a matched first session page and at least one second client participating in a current session according to the receipt update request;
the maximum read index obtaining module 420 is configured to obtain the maximum read index of the session message sent by the first client, and send the maximum read index of the at least one second client to the first client, so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
According to the technical scheme, after a receipt update request sent by the first client is obtained by the server, other clients participating in a session in the session page are determined according to the matched session page, and the maximum read index of other clients in the session message sent by the first client is sent to the first client, so that the receipt state of the session message is updated by the first client according to the maximum read index, frequent communication between the client and the server is avoided, the update efficiency of the receipt state of the session message is improved, and the communication resources of the server are saved.
Optionally, based on the above technical solution, the device for acquiring the message receipt further includes:
the session page acquisition module is used for responding to the index of the target session message sent by the first client, acquiring a matched second session page according to the index of the target session message, and sending a target second client of the target session message in the second session page;
and the maximum read index updating module is used for updating the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
Optionally, based on the above technical solution, the device for acquiring the message receipt further includes:
and the maximum read index issuing module is used for sending the maximum read index of the first client in the session message sent by the target second client to the target second client so that the target second client updates the receipt status of the session message according to the maximum read index of the first client.
The device can execute the method for acquiring the message receipt provided by the second embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment can be seen in the method for acquiring a message receipt provided in the second embodiment of the present disclosure.
Example five
Fig. 5 shows a schematic structural diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device 500 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or from the storage means 508, or from the ROM 502. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to obtain at least one second client participating in the current session through the server, wherein the maximum read index in a session message sent by the first client; the indexes of the session messages in the session page are arranged in an ascending order; and updating the receipt status of the session message corresponding to the maximum read index according to the maximum read index of the at least one second client, and the receipt status of the session message with the index smaller than the maximum read index. Or in response to obtaining a receipt update request sent by the first client, obtaining a matched first session page and at least one second client participating in the current session according to the receipt update request; and acquiring the maximum read index of the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. The name of the module is not limited to the module itself in some cases, for example, the maximum read index updating module may be described as "a module for updating the maximum read index of the session message sent by the target second client by the first client according to the index of the target session message". The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a method for acquiring a message receipt, including:
according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to obtain at least one second client participating in the current session through the server, wherein the maximum read index in a session message sent by the first client; the indexes of the session messages in the session page are arranged in an ascending order;
and updating the receipt status of the session message corresponding to the maximum read index according to the maximum read index of the at least one second client, and the receipt status of the session message with the index smaller than the maximum read index.
According to one or more embodiments of the present disclosure, there is provided a method of example 1 [ example 2 ], further comprising:
determining a target second client which sends out the target session message in response to detecting that the target session message in the current session page is read;
judging whether the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client;
And if the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client, sending the index of the target session message to a server so that the server updates the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
According to one or more embodiments of the present disclosure, there is provided a method of example 1 [ example 3 ], further comprising:
and acquiring a matched response piece updating period according to the updating frequency of the session messages in the current session page and/or the number of session participants.
According to one or more embodiments of the present disclosure, there is provided a method for acquiring a message receipt [ example 4 ], including:
responding to a receipt update request sent by a first client, and acquiring a matched first session page and at least one second client participating in a current session according to the receipt update request;
and acquiring the maximum read index of the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
According to one or more embodiments of the present disclosure, there is provided the method of example 4 [ example 5 ], further comprising:
responding to the index of a target session message sent by a first client, and acquiring a matched second session page and a target second client which sends the target session message in the second session page according to the index of the target session message;
and updating the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
According to one or more embodiments of the present disclosure, there is provided a method of example 5 [ example 6 ], further comprising:
and sending the maximum read index of the first client in the session message sent by the target second client to the target second client so that the target second client updates the receipt status of the session message according to the maximum read index of the first client.
According to one or more embodiments of the present disclosure, there is provided an acquisition apparatus of a message receipt [ example 7 ], including:
the update request sending module is used for sending a receipt update request of a current session page to a server according to a receipt update period so as to obtain at least one second client participating in the current session through the server, wherein the maximum read index is in a session message sent by the first client; the indexes of the session messages in the session page are arranged in an ascending order;
And the receipt status updating module is used for updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client.
According to one or more embodiments of the present disclosure, there is provided an apparatus of example 7, the acquiring means of the message receipt further comprising:
the target second client acquisition module is used for responding to detection that the target session message in the current session page is read and determining a target second client which sends the target session message;
the maximum read index judging module is used for judging whether the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client;
and the maximum read index reporting module is used for sending the index of the target session message to a server if the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client, so that the server updates the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
According to one or more embodiments of the present disclosure, there is provided an apparatus of example 7, the acquiring means of the message receipt, further comprising:
and the receipt update period acquisition module is used for acquiring the matched receipt update period according to the update frequency of the session messages in the current session page and/or the number of session participants.
According to one or more embodiments of the present disclosure, there is provided an acquisition apparatus of a message receipt [ example 10 ], including:
the system comprises an update request acquisition module, a response piece update module and a response piece update module, wherein the update request acquisition module is used for responding to a receipt update request sent by a first client, acquiring a matched first session page and at least one second client participating in a current session according to the receipt update request;
the maximum read index acquisition module is used for acquiring the maximum read index of the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client.
According to one or more embodiments of the present disclosure, there is provided an apparatus of example 10, the acquiring means of the message receipt further comprising:
The session page acquisition module is used for responding to the index of the target session message sent by the first client, acquiring a matched second session page according to the index of the target session message, and sending a target second client of the target session message in the second session page;
and the maximum read index updating module is used for updating the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
According to one or more embodiments of the present disclosure, there is provided an apparatus of example 11, the acquiring means of the message receipt further comprising:
and the maximum read index issuing module is used for sending the maximum read index of the first client in the session message sent by the target second client to the target second client so that the target second client updates the receipt status of the session message according to the maximum read index of the first client.
According to one or more embodiments of the present disclosure, there is provided an electronic device [ example 13 ] comprising a memory, a processing means and a computer program stored on the memory and executable on the processing means, the processing means implementing the method of acquiring a message receipt as described in any one of examples 1-3 or the method of acquiring a message receipt as described in any one of examples 4-6 when the program is executed.
According to one or more embodiments of the present disclosure, there is provided a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing the method of obtaining a message receipt as described in any one of examples 1-3, or the method of obtaining a message receipt as described in any one of examples 4-6.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (9)

1. The method for acquiring the message receipt is characterized by being applied to a first client and comprising the following steps:
according to the receipt updating period, sending a receipt updating request of a current session page to a server so as to obtain at least one second client participating in the current session through the server, wherein the maximum read index in a session message sent by the first client; the indexes of the session messages in the session page are arranged in an ascending order;
updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client;
before sending the receipt update request of the current session page to the server according to the receipt update period, the method further comprises:
Acquiring a matched response piece updating period according to the updating frequency of the session messages in the current session page and the number of session participants;
the sending the receipt update request of the current session page to the server according to the receipt update period comprises the following steps:
and under the condition that the first client side is not currently displayed on the current session page, not sending a receipt update request of the current session page to the server.
2. The method of claim 1, wherein the method of obtaining the message receipt further comprises:
determining a target second client which sends out the target session message in response to detecting that the target session message in the current session page is read;
judging whether the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client;
and if the index of the target session message is larger than the maximum read index of the session message sent by the first client in the target second client, sending the index of the target session message to a server so that the server updates the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
3. The method for acquiring the message receipt is characterized by being applied to a server and comprising the following steps:
responding to a receipt update request sent by a first client according to a receipt update period, and acquiring a matched first session page and at least one second client participating in a current session according to the receipt update request;
acquiring the maximum read index of the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client;
the receipt update period is acquired according to the update frequency of session messages in the current session page and the number of session participants;
the receipt update request sent by the first client according to the receipt update period comprises the following steps:
and under the condition that the first client side does not currently display the current session page, the first client side does not send a receipt update request of the current session page to the server.
4. The method of claim 3, wherein the method of obtaining the message receipt further comprises:
responding to the index of a target session message sent by a first client, and acquiring a matched second session page and a target second client which sends the target session message in the second session page according to the index of the target session message;
and updating the maximum read index of the first client in the session message sent by the target second client according to the index of the target session message.
5. The method of claim 4, further comprising, after updating the maximum read index of the first client in the session message sent by the target second client based on the index of the target session message:
and sending the maximum read index of the first client in the session message sent by the target second client to the target second client so that the target second client updates the receipt status of the session message according to the maximum read index of the first client.
6. An apparatus for obtaining a message receipt, applied to a first client, comprising:
The update request sending module is used for sending a receipt update request of a current session page to a server according to a receipt update period so as to obtain at least one second client participating in the current session through the server, wherein the maximum read index is in a session message sent by the first client; the indexes of the session messages in the session page are arranged in an ascending order;
the receipt status updating module is used for updating the receipt status of the session message corresponding to the maximum read index and the receipt status of the session message with the index smaller than the maximum read index according to the maximum read index of the at least one second client;
the device for acquiring the message receipt further comprises:
the receipt update period acquisition module is used for acquiring a matched receipt update period according to the update frequency of the session messages in the current session page and the number of session participants;
the sending the receipt update request of the current session page to the server according to the receipt update period comprises the following steps:
and under the condition that the first client side is not currently displayed on the current session page, not sending a receipt update request of the current session page to the server.
7. An apparatus for obtaining a message receipt, the apparatus being adapted to a server and comprising:
the update request acquisition module is used for responding to the receipt update request sent by the first client according to the receipt update period, acquiring a matched first session page according to the receipt update request and at least one second client participating in the current session;
the maximum read index acquisition module is used for acquiring the maximum read index of the session message sent by the first client, and sending the maximum read index of the at least one second client to the first client so that the first client updates the receipt status of the session message according to the maximum read index of the at least one second client;
the receipt update period is acquired according to the update frequency of session messages in the current session page and the number of session participants;
the receipt update request sent by the first client according to the receipt update period comprises the following steps:
and under the condition that the first client side does not currently display the current session page, the first client side does not send a receipt update request of the current session page to the server.
8. An electronic device comprising a memory, processing means and a computer program stored on the memory and executable on the processing means, characterized in that the processing means implements the method of retrieving a message receipt according to any one of claims 1-2 or the method of retrieving a message receipt according to any one of claims 3-5 when executing the program.
9. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the method of retrieving a message receipt as claimed in any one of claims 1 to 2 or for performing the method of retrieving a message receipt as claimed in any one of claims 3 to 5.
CN202111241437.0A 2021-10-25 2021-10-25 Method and device for acquiring message receipt, electronic equipment and storage medium Active CN114006880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111241437.0A CN114006880B (en) 2021-10-25 2021-10-25 Method and device for acquiring message receipt, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111241437.0A CN114006880B (en) 2021-10-25 2021-10-25 Method and device for acquiring message receipt, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114006880A CN114006880A (en) 2022-02-01
CN114006880B true CN114006880B (en) 2023-06-27

Family

ID=79923845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111241437.0A Active CN114006880B (en) 2021-10-25 2021-10-25 Method and device for acquiring message receipt, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114006880B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291134A (en) * 2019-07-23 2021-01-29 腾讯科技(深圳)有限公司 Information prompting method, device, equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933727B (en) * 2017-05-25 2022-09-27 中兴通讯股份有限公司 Message receipt processing method and device
DE102017119183A1 (en) * 2017-08-22 2019-02-28 Unify Patente Gmbh & Co. Kg Computer-implemented method for controlling a collaboration platform, communication and collaboration application, and communication and collaboration platform
CN107948050A (en) * 2017-11-08 2018-04-20 用友网络科技股份有限公司 A kind of device and method that group message read states are provided
CN108011812A (en) * 2018-01-16 2018-05-08 吉浦斯信息咨询(深圳)有限公司 Realize that message in instant messaging has read the method and system of unread state synchronization
CN108449261B (en) * 2018-03-19 2020-10-02 腾讯科技(深圳)有限公司 Message prompting method, message version number processing method, device and storage medium
CN110719145B (en) * 2018-07-13 2022-04-19 深圳兆日科技股份有限公司 Method and device for sending read receipt and computer readable storage medium
CN109067910A (en) * 2018-09-13 2018-12-21 乐蜜有限公司 A kind of method and device that message pulls
US11329940B2 (en) * 2019-10-28 2022-05-10 Microsoft Technology Licensing, Llc Coordinated unread count for email applications

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291134A (en) * 2019-07-23 2021-01-29 腾讯科技(深圳)有限公司 Information prompting method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114006880A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN111459364B (en) Icon updating method and device and electronic equipment
CN110633126B (en) Information display method and device and electronic equipment
CN114217707B (en) Sharing method, sharing device, electronic equipment and storage medium
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN111309415B (en) User Interface (UI) information processing method and device of application program and electronic equipment
CN112379982B (en) Task processing method, device, electronic equipment and computer readable storage medium
CN111460049A (en) Content sharing method and device, electronic equipment and computer readable storage medium
CN112256371A (en) Method and device for displaying information and electronic equipment
CN111596995A (en) Display method and device and electronic equipment
CN111309496A (en) Method, system, device, equipment and storage medium for realizing delay task
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN114006880B (en) Method and device for acquiring message receipt, electronic equipment and storage medium
CN110619101A (en) Method and apparatus for processing information
CN111338822B (en) Message processing method and device
CN114089891A (en) Display control method and device and electronic equipment
CN112162682A (en) Content display method and device, electronic equipment and computer readable storage medium
CN112363782A (en) Chat interface display method and device, electronic equipment and computer readable medium
CN112306317A (en) Unread message notification method and device and electronic equipment
CN115314456B (en) Interaction method and device and electronic equipment
CN112311840A (en) Multi-terminal data synchronization method, device, equipment and medium
CN111787043A (en) Data request method and device
CN110855767B (en) Method, device, equipment and storage medium for responding operation request
CN111694679B (en) Message processing method and device and electronic equipment

Legal Events

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