CN110377376B - Interface message refreshing method and device, computer device and readable storage medium - Google Patents

Interface message refreshing method and device, computer device and readable storage medium Download PDF

Info

Publication number
CN110377376B
CN110377376B CN201910488464.4A CN201910488464A CN110377376B CN 110377376 B CN110377376 B CN 110377376B CN 201910488464 A CN201910488464 A CN 201910488464A CN 110377376 B CN110377376 B CN 110377376B
Authority
CN
China
Prior art keywords
message
displayed
new
refreshing
messages
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
CN201910488464.4A
Other languages
Chinese (zh)
Other versions
CN110377376A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910488464.4A priority Critical patent/CN110377376B/en
Publication of CN110377376A publication Critical patent/CN110377376A/en
Priority to PCT/CN2019/118972 priority patent/WO2020244159A1/en
Application granted granted Critical
Publication of CN110377376B publication Critical patent/CN110377376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention provides an interface message refreshing method, an interface message refreshing device, a computer device and a computer readable storage medium. The interface message refreshing method comprises the following steps: detecting whether a message refreshing instruction is triggered; if the message refreshing instruction is detected to be triggered, acquiring a message list and extracting a new message from the message list; determining the history message and the new message to be displayed which are displayed in the conversation window after refreshing according to a preset display rule; acquiring the position identifiers of the historical messages and the new messages in the conversation window; determining the position to be displayed of the new message according to the position identification of the new message; and adjusting the display position of the historical message, and updating the content of the position to be displayed into the new message. The invention relates to a terminal operation experience optimization technology, which can make a conversation window page more smoothly loaded, reduce the consumption of electric quantity and flow of conversation application and improve the use experience of a user.

Description

Interface message refreshing method and device, computer device and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an interface message refreshing method and apparatus, a computer apparatus, and a computer-readable storage medium.
Background
The message list control used by the existing chat application software is a global refreshing control, all visible messages in a message list need to be refreshed when a new message is refreshed, meanwhile, the refreshing frequency of each new message is 2 times, one time is refreshing of a state during sending, and one time is refreshing of a state after sending, so that the refreshing frequency of the message list is 2 times of the number of the visible messages of a page (refreshing of N messages is 2N times), therefore, the problems of page blockage, high power consumption and the like can be derived, and more flow resources of a user can be consumed.
Disclosure of Invention
In view of the above, the present invention provides an interface message refreshing method, an interface message refreshing apparatus, a computer apparatus, and a computer readable storage medium, which can make a session window page load more smoothly, greatly reduce power consumption and flow consumption of a session application, and improve user experience.
An embodiment of the present application provides an interface message refreshing method, where the method includes:
detecting whether a message refreshing instruction is triggered;
if the message refreshing instruction is detected to be triggered, acquiring a message list and extracting a new message from the message list;
determining the history message and the new message to be displayed which are displayed in the conversation window after refreshing according to a preset display rule;
acquiring the position identifiers of the historical messages and the new messages in the conversation window;
determining the position to be displayed of the new message according to the position identification of the new message; and
and adjusting the display position of the historical message, and updating the content of the position to be displayed into the new message.
Preferably, the new message comprises a message content, a user identifier, a message transmission time or a message reception time.
Preferably, the preset display rule includes: the length and width of the displayable area of the conversation window, the length and width of the font of the message, the length, width and number of lines of each message, and the spacing between each line of information.
Preferably, the history message is a part of or all of the conversation messages displayed in the conversation window before refreshing.
Preferably, the step of detecting whether to trigger a message refresh command includes:
establishing a message sending control and a message receiving control; and
and triggering the message refreshing instruction once when the message sending control or the message receiving control inserts a new message.
Preferably, the step of updating the content of the position to be displayed to the new message comprises:
judging whether the new message belongs to a sender message; and
and if the new message belongs to the sender message, updating the content of the position to be displayed into the new message by using the message sending control.
Preferably, after the step of determining whether the new message belongs to a sender message, the method further includes:
if the new message does not belong to the sender message, judging whether the new message belongs to a receiver message; and
and if the new message belongs to the receiver message, updating the content of the position to be displayed into the new message by using the message receiving control.
An embodiment of the present application provides an interface message refreshing apparatus, where the apparatus includes:
the detection module is used for detecting whether a message refreshing instruction is triggered or not;
the extracting module is used for acquiring a message list and extracting a new message from the message list when the message refreshing instruction is triggered;
the first determining module is used for determining the refreshed historical messages displayed in the conversation window and the new messages to be displayed according to a preset display rule;
the acquisition module is used for acquiring the position identifiers of the historical messages and the new messages in the conversation window;
the second determining module is used for determining the position to be displayed of the new message according to the position identification of the new message; and
and the updating module is used for adjusting the display position of the historical message and updating the content of the position to be displayed into the new message.
An embodiment of the present application provides a computer device, which includes a processor and a memory, where the memory stores a plurality of computer programs, and the processor is configured to implement the steps of the interface message refreshing method as described above when executing the computer programs stored in the memory.
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the interface message refresh method as described above.
According to the interface message refreshing method, the interface message refreshing device, the computer device and the computer readable storage medium, when the interface message is refreshed, the message extraction and refreshing only relate to the message and do not relate to refreshing other historical messages, and each message refreshing only triggers one message refreshing event, so that the occupied resource of a CPU is reduced, the page loading of a session window can be smoother, the problem of unsmooth and stuck user can be avoided, the consumption of session application and flow can be greatly reduced, and the experience of a user for receiving a large amount of messages on line can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of an interface message refresh method according to an embodiment of the present invention.
Fig. 2 is a functional block diagram of an interface message refresh apparatus according to an embodiment of the present invention.
FIG. 3 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be made with reference to the accompanying drawings and detailed description. In addition, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Preferably, the interface message refreshing method of the present invention is applied to one or more computer devices. The computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook computer, a tablet computer, a server, a mobile phone and other computing equipment. The computer device can be in man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The first embodiment is as follows:
FIG. 1 is a flowchart illustrating the steps of a preferred embodiment of the interface message refresh method of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
Referring to fig. 1, the interface message refreshing method specifically includes the following steps.
And step S11, detecting whether a message refresh command is triggered.
In one embodiment, the terminal may be pre-installed with an instant messaging client program, and through the instant messaging client program and the network, the terminal may receive a session message input by a user in a session window of the instant messaging client, and may also receive a session message forwarded by the remote server from another terminal, and display the session message to the user. The terminal may be a computer apparatus or an electronic book reader, MP3/MP4 player, smart watch, smart television, etc. as shown in fig. 3.
The message refresh instruction may be used to refresh a session message displayed on a displayable region of a current session window, and specifically, the message refresh instruction may be triggered by receiving a session message input by a local user, or by receiving a session message sent by a server. It will be appreciated that each session message entered by the local user is set to trigger a message refresh command, and that a message refresh command is also triggered upon receipt of each session message sent by the server.
In one embodiment, the session message for refreshing the session window may be implemented through a message list control, where the message list control preferably includes a message sending control and a message receiving control, the message sending control may only process service logic for sending the message, such as a progress rate of sending the message, a nickname, a head portrait of a local user (a right user of the session window), and the message receiving control may only process service logic for receiving the message, such as a progress rate of downloading the message, a nickname, a head portrait of another end user (a left user of the session window).
Preferably, the message refresh command is triggered only once when a new message is inserted into the message sending control or the message receiving control.
And step S12, if the message refreshing instruction is detected to be triggered, acquiring a message list and extracting a new message from the message list.
In one embodiment, the message list may record information of all session messages currently received or sent by the terminal, including currently received and historically received information, and currently input and historically input information by the local user. When the message refreshing instruction is detected to be triggered, the message refreshing instruction indicates that a session message input by a local user may be received or is triggered by receiving the session message sent by a remote server, the message list is obtained, and a new message is extracted from the message list; because only new messages are extracted instead of all messages which need to be displayed in the refreshed session window, the user flow resource can be saved and the resource occupation of background hardware (such as a CPU and a memory) can be reduced. The new message may be a latest session message sent by the remote server or a latest session message input by the local user.
In an embodiment, the new message may include message content, a user identifier, a message transmission time or a message reception time, and the like. The user identifier may be a nickname, a head portrait, etc. of the sender of the message.
In an embodiment, before extracting a new message, it may be determined whether the new message belongs to a sender message or a receiver message, where the sender message may be a message sent by a local user, and the receiver message may be a message sent by another terminal user. If the new message belongs to the message of the sender, extracting the new message from the message list by using a message sending control, and if the new message belongs to the message of the receiver, extracting the new message from the message list by using a message receiving control.
Step S13, determining the refreshed history message displayed in the conversation window and the new message to be displayed according to the preset display rule.
In one embodiment, the preset display rule may include: the length and width of the displayable area of the current conversation window, the length and width of the message display font, the length, width and number of lines of the message to be displayed, the length, width and number of lines of each message, the line spacing between the displayed instant messaging messages of each line, and the like.
In an embodiment, the session message to be displayed on the current session window after being refreshed may be determined according to the received time sequence order, according to the length and width of the displayable region of the current session window, the length and width of the message display font, the display rules such as the line spacing between each line of displayed session messages, and the number of characters of each session message in the message list. The session message to be displayed on the current session window after refreshing includes: and refreshing each displayed conversation message and conversation message to be displayed on the current conversation window. Wherein the conversation message to be displayed is the new message. And according to the session message displayed on the current session window after refreshing, determining each displayed session message from the session messages which are to be displayed on the current session window after refreshing, namely determining the session messages which are to be displayed on the current session window after refreshing except for the whole or part of the new message and the session message which is to be scrolled out of the current session window.
In one embodiment, the history message is a part of or all the session messages displayed in the session window before refreshing. When the session message displayed before refreshing rolls out of the refreshed session window, the history message is a part of the session message displayed before refreshing the session window, and when the session message displayed before refreshing does not roll out of the refreshed session window, the history message is all the session messages displayed before refreshing the session window.
And step S14, obtaining the position marks of the history message and the new message in the conversation window.
In an embodiment, when a message to be displayed, which is to be displayed in the conversation window after being refreshed, is determined, the location identifier of the history message and the new message in the conversation window may be obtained. The position identification indicates the display position of the new message and the historical message in the current conversation window.
And step S15, determining the position to be displayed of the new message according to the position mark of the new message.
In an embodiment, the position of the new message to be displayed in the conversation window may be determined according to the position identifier of the new message.
It can be understood that the message of the user on the right side of the conversation window may be only displayed on the right side of the conversation window, the message of the user on the left side of the conversation window may be only displayed on the left side of the conversation window, and the position of the new message to be displayed in the conversation window may be determined according to the position identifier of the new message and the sender information of the message.
And step S16, adjusting the display position of the history message, and updating the content of the position to be displayed into the new message.
In an embodiment, a message list control may be used to adjust a display position of the history message based on the position identifier of the history message, and update the content of the to-be-displayed position of the new message to the new message according to the to-be-displayed position of the new message. Because the history message is displayed before the session window is refreshed, the message list control does not need to acquire all messages to be displayed from the message list and update the messages, and the history message to be displayed for the refreshed session window can be acquired from the message record which is displayed previously, so that the flow resource of a user is saved.
For example, it is assumed that the messages displayed before the session window is refreshed are the 2 nd to 6 th session messages in the message list, and the last session message in the message list is the new message. At this time, according to the length and width of the displayable area of the conversation window, the length and width of the preset display font, the display rules such as the line spacing between each line of displayed conversation messages and the number of characters of each conversation message in the message list, according to the sequence of the receiving time, it can be determined that in order to display the 1 st to last conversation message, the 5 th to last conversation message and the 6 th to last conversation message scroll out of the conversation window after being refreshed, so that the conversation messages which are to be displayed in the current conversation window after being refreshed are the 1 st to 4 th to last conversation messages in the message list. And the content of the 2 nd to 4 th session messages is the displayed session messages displayed on the current session window after being refreshed, the messages do not need to be obtained from the message list again, and only the display position needs to be adjusted, the 1 st instant message information is the new message displayed at the position to be displayed on the current session window after being refreshed, and the content of the position to be displayed needs to be updated into the new message.
In an embodiment, if the new message belongs to a sender message, the content of the position to be displayed may be updated to the new message only by using the message sending control; if the new message belongs to the message of the receiver, the content of the position to be displayed can be updated to the new message only by using the message receiving control, and the resource overhead of the layout of the redundant message control can be reduced because the message receiving control and the message sending control are adopted to operate independently.
According to the interface message refreshing method, when the interface message is refreshed, the message extraction and refreshing only relate to the message and do not relate to refreshing other historical messages, and each message refreshing only triggers a message refreshing event, so that the resource occupation of a CPU (Central processing Unit) is reduced, the page loading of a session window can be smoother, the problem of jamming of a user is avoided, the session application and flow consumption can be greatly reduced, and the experience of the user for receiving a large amount of messages on line is improved.
The second embodiment:
FIG. 2 is a functional block diagram of an interface message refresh apparatus according to a preferred embodiment of the present invention.
Referring to fig. 2, the interface message refreshing apparatus 10 may include a detection module 101, an extraction module 102, a first determination module 103, an acquisition module 104, a second determination module 105, and an update module 106.
The detection module 101 is configured to detect whether a message refresh command is triggered.
In one embodiment, the terminal may be pre-installed with an instant messaging client program, and through the instant messaging client program and the network, the terminal may receive a session message input by a user in a session window of the instant messaging client, and may also receive a session message forwarded by the remote server from another terminal, and display the session message to the user. The terminal may be a computer apparatus or an electronic book reader, MP3/MP4 player, smart watch, smart television, etc. as shown in fig. 3.
The message refresh instruction may be used to refresh a session message displayed on a displayable region of a current session window, and specifically, the message refresh instruction may be triggered by receiving a session message input by a local user, or by receiving a session message sent by a server. It will be appreciated that each session message entered by the local user is set to trigger a message refresh command, and that a message refresh command is also triggered upon receipt of each session message sent by the server. The detection module 101 may detect that a message refresh command is triggered when receiving a session message input by a local user or a session message sent by a server.
In one embodiment, the session message for refreshing the session window may be implemented through a message list control, where the message list control preferably includes a message sending control and a message receiving control, the message sending control may only process service logic for sending the message, such as a progress rate of sending the message, a nickname, a head portrait of a local user (a right user of the session window), and the message receiving control may only process service logic for receiving the message, such as a progress rate of downloading the message, a nickname, a head portrait of another end user (a left user of the session window).
Preferably, the message refresh command is triggered only once when a new message is inserted into the message sending control or the message receiving control.
The extracting module 102 is configured to, when detecting that the message refresh command is triggered, obtain a message list and extract a new message from the message list.
In one embodiment, the message list may record information of all session messages currently received or sent by the terminal, including currently received and historically received information, and currently input and historically input information by the local user. When detecting that the message refresh command is triggered, indicating that a session message input by a local user may be received or triggered by receiving a session message sent by a remote server, the extracting module 102 acquires the message list and extracts a new message from the message list; because the extracting module 102 extracts only new messages instead of all messages that need to be displayed in the refreshed session window, user traffic resources can be saved and resources occupied by background hardware (such as a CPU and a memory) can be reduced. The new message may be a latest conversation message sent by the remote server or a latest conversation message input by the local user.
In an embodiment, the new message may include message content, a user identifier, a message transmission time or a message reception time, and the like. The user identifier may be a nickname, a head portrait, etc. of the sender of the message.
In an embodiment, before extracting a new message, the extraction module 102 may determine whether the new message belongs to a sender message or a receiver message, where the sender message may be a message sent by a local user, and the receiver message may be a message sent by another terminal user. If the new message belongs to the sender message, the extracting module 102 may extract the new message from the message list by using a message sending control, and if the new message belongs to the receiver message, the extracting module 102 may extract the new message from the message list by using a message receiving control.
The first determining module 103 is configured to determine, according to a preset display rule, a history message displayed in the session window after being refreshed and a new message to be displayed.
In an embodiment, the preset display rule may include: the length and width of the displayable area of the current conversation window, the length and width of the message display font, the length, width and number of lines of the message to be displayed, the length, width and number of lines of each message, the line spacing between the displayed instant messaging messages of each line, and the like.
In an embodiment, the first determining module 103 may determine, according to the length and width of a displayable region of a current conversation window, the length and width of a message display font, display rules such as a line spacing between each displayed line of conversation messages, and the number of characters of each conversation message in the message list, a conversation message to be displayed on the current conversation window after being refreshed according to a receiving time sequence. The session message to be displayed on the current session window after refreshing includes: and refreshing each displayed conversation message and conversation message to be displayed on the current conversation window. Wherein, the conversation message to be displayed is the new message. And according to the session message displayed on the current session window after refreshing, determining each displayed session message from the session messages which are to be displayed on the current session window after refreshing, namely determining the session messages which are to be displayed on the current session window after refreshing except for the whole or part of the new message and the session message which is to be scrolled out of the current session window.
In one embodiment, the history message is a part or all of the session messages displayed in the session window before refreshing. When the session message displayed before refreshing rolls out of the refreshed session window, the history message is a part of the session message displayed before refreshing the session window, and when the session message displayed before refreshing does not roll out of the refreshed session window, the history message is all the session messages displayed before refreshing the session window.
The obtaining module 104 is configured to obtain the location identifier of the history message and the new message in the session window.
In an embodiment, when determining a message to be displayed in the conversation window after the refresh, the obtaining module 104 may obtain the location identifier of the history message and the new message in the conversation window. The position identification indicates the display position of the new message and the historical message in the current conversation window.
The second determining module 105 is configured to determine a to-be-displayed position of the new message according to the position identifier of the new message.
In an embodiment, the second determining module 105 may determine the position of the new message to be displayed in the conversation window according to the position identifier of the new message.
It can be understood that the message of the user on the right side of the conversation window may be displayed only on the right side of the conversation window, the message of the user on the left side of the conversation window may be displayed only on the left side of the conversation window, and the position of the new message to be displayed in the conversation window may be determined according to the position identifier of the new message and the sender information of the message.
The updating module 106 is configured to adjust a display position of the historical message, and update the content of the position to be displayed to the new message.
In an embodiment, the updating module 106 may utilize a message list control to adjust the display position of the history message based on the position identifier of the history message, and update the content of the to-be-displayed position of the new message to the new message according to the to-be-displayed position of the new message. Because the history message is displayed before the session window is refreshed, the message list control does not need to acquire all messages to be displayed from the message list and update the messages, and the history message to be displayed for the refreshed session window can be acquired from the message record which is displayed previously, so that the flow resource of a user is saved.
For example, it is assumed that the messages displayed before the session window is refreshed are the 2 nd to 6 th session messages in the message list, and the last session message in the message list is the new message. At this time, according to the length and width of the displayable region of the session window, the length and width of the preset display font, the display rules such as the line spacing between each line of displayed session messages and the number of characters of each session message in the message list, and the sequence of the receiving time, it can be determined that in order to display the 1 st to the last session message, the 5 th to the 6 th session messages scroll out of the session window after being refreshed, so that the session messages to be displayed in the current session window after being refreshed are the 1 st to 4 th session messages in the message list. The contents of the 2 nd to 4 th session messages are all displayed session messages displayed on the current session window after being refreshed, and the messages do not need to be obtained from the message list again, and only the display position needs to be adjusted, wherein the 1 st instant message information is a new message displayed at the position to be displayed on the current session window after being refreshed, and the contents of the position to be displayed need to be updated into the new message.
In an embodiment, if the new message belongs to a sender message, the updating module 106 may update the content of the position to be displayed to the new message only by using the message sending control; if the new message belongs to the message of the receiver, the updating module 106 may update the content of the position to be displayed to the new message only by using the message receiving control, and since the message receiving control and the message sending control are adopted to operate independently, resource overhead of redundant message control layout can be reduced.
According to the interface message refreshing device, when interface message refreshing is carried out, message extraction and refreshing only relate to the message, other historical messages are not refreshed, and each message refreshing only triggers one message refreshing event, so that resources occupied by a CPU (Central processing Unit) are reduced, a conversation window page can be loaded more smoothly, the problem that a user is stuck and blocked is avoided, conversation application and flow consumption can be greatly reduced, and the experience of the user for receiving a large number of messages on line is improved.
FIG. 3 is a diagram of a computer device according to a preferred embodiment of the present invention.
The computer device 1 comprises a memory 20, a processor 30 and a computer program 40, such as an interface message refresh program, stored in the memory 20 and executable on the processor 30. The processor 30, when executing the computer program 40, implements the steps in the above-described interface message refresh method embodiments, such as the steps S11-S16 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 40, implements the functions of the modules in the above-mentioned interface message refreshing apparatus embodiment, such as the modules 101 to 106 in fig. 2.
Illustratively, the computer program 40 may be partitioned into one or more modules/units that are stored in the memory 20 and executed by the processor 30 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, the instruction segments describing the execution process of the computer program 40 in the computer apparatus 1. For example, the computer program 40 may be divided into the detection module 101, the extraction module 102, the first determination module 103, the acquisition module 104, the second determination module 105 and the update module 106 in fig. 2. See embodiment two for the specific functions of each module.
The computer device 1 may be a desktop computer, a notebook, a palm computer, a mobile phone, a tablet computer, a cloud server, or other computing devices. It will be appreciated by a person skilled in the art that the schematic diagram is merely an example of the computer apparatus 1, and does not constitute a limitation of the computer apparatus 1, and may comprise more or less components than those shown, or some components may be combined, or different components, for example, the computer apparatus 1 may further comprise an input and output device, a network access device, a bus, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor 30 may be any conventional processor or the like, the processor 30 being the control center of the computer device 1, various interfaces and lines connecting the various parts of the overall computer device 1.
The memory 20 may be used for storing the computer program 40 and/or the module/unit, and the processor 30 implements various functions of the computer device 1 by running or executing the computer program and/or the module/unit stored in the memory 20 and calling data stored in the memory 20. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the computer apparatus 1, and the like. In addition, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The modules/units integrated with the computer device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and which, when executed by a processor, may implement the steps of the above-described embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In the embodiments provided in the present invention, it should be understood that the disclosed computer apparatus and method can be implemented in other ways. For example, the above-described embodiments of the computer apparatus are merely illustrative, and for example, the division of the units is only one logical function division, and there may be other divisions when the actual implementation is performed.
In addition, functional units in the embodiments of the present invention may be integrated into the same processing unit, or each unit may exist alone physically, or two or more units are integrated into the same unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. The units or computer means recited in the computer means claims may also be implemented by the same unit or computer means, either in software or in hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

1. An interface message refreshing method, characterized in that the method comprises:
detecting whether a message refreshing instruction is triggered;
if the message refreshing instruction is detected to be triggered, acquiring a message list and extracting a new message from the message list;
determining historical messages displayed on a conversation window after refreshing and new messages to be displayed according to a preset display rule, wherein the historical messages are part or all of conversation messages displayed on the conversation window before refreshing;
acquiring the position identifiers of the historical messages and the new messages in the conversation window;
determining the position to be displayed of the new message according to the position identification of the new message; and
and adjusting the display position of the historical message, and updating the content of the position to be displayed into the new message.
2. The interface message refresh method of claim 1, wherein the new message includes a message content, a user identifier, a message sending time, or a message receiving time.
3. The interface message refresh method of claim 1 or 2, wherein the preset display rule comprises: the length and width of the displayable area of the conversation window, the length and width of the font of the message, the length, width and number of lines of each message, and the spacing between each line of information.
4. The interface message refresh method of claim 1 or 2, wherein said step of detecting whether to trigger a message refresh command is preceded by:
establishing a message sending control and a message receiving control; and
and triggering the message refreshing instruction once when the message sending control or the message receiving control inserts a new message.
5. The interface message refresh method of claim 4, wherein said step of updating the contents of said location to be displayed to said new message comprises:
judging whether the new message belongs to a sender message; and
and if the new message belongs to the sender message, updating the content of the position to be displayed into the new message by using the message sending control.
6. The interface message refresh method of claim 5, wherein said step of determining whether said new message belongs to a sender message further comprises:
if the new message does not belong to the sender message, judging whether the new message belongs to a receiver message; and
and if the new message belongs to the receiver message, updating the content of the position to be displayed into the new message by using the message receiving control.
7. An interface message refresh apparatus, comprising:
the detection module is used for detecting whether a message refreshing instruction is triggered or not;
the extracting module is used for acquiring a message list and extracting a new message from the message list when the message refreshing instruction is triggered;
the system comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining a historical message displayed in a conversation window after refreshing and a new message to be displayed according to a preset display rule, and the historical message is a part or all of the conversation message displayed in the conversation window before refreshing;
the acquisition module is used for acquiring the position identifiers of the historical messages and the new messages in the conversation window;
the second determining module is used for determining the position to be displayed of the new message according to the position identification of the new message; and
and the updating module is used for adjusting the display position of the historical message and updating the content of the position to be displayed into the new message.
8. A computer arrangement comprising a processor and a memory, said memory having stored thereon a plurality of computer programs, wherein said processor is adapted to carry out the steps of the interface message refresh method according to any one of claims 1-6 when executing the computer programs stored in the memory.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the interface message refresh method according to any one of claims 1 to 6.
CN201910488464.4A 2019-06-05 2019-06-05 Interface message refreshing method and device, computer device and readable storage medium Active CN110377376B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910488464.4A CN110377376B (en) 2019-06-05 2019-06-05 Interface message refreshing method and device, computer device and readable storage medium
PCT/CN2019/118972 WO2020244159A1 (en) 2019-06-05 2019-11-15 Interface message refreshing method and apparatus, computer device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910488464.4A CN110377376B (en) 2019-06-05 2019-06-05 Interface message refreshing method and device, computer device and readable storage medium

Publications (2)

Publication Number Publication Date
CN110377376A CN110377376A (en) 2019-10-25
CN110377376B true CN110377376B (en) 2022-06-17

Family

ID=68249851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910488464.4A Active CN110377376B (en) 2019-06-05 2019-06-05 Interface message refreshing method and device, computer device and readable storage medium

Country Status (2)

Country Link
CN (1) CN110377376B (en)
WO (1) WO2020244159A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377376B (en) * 2019-06-05 2022-06-17 平安科技(深圳)有限公司 Interface message refreshing method and device, computer device and readable storage medium
CN110855549A (en) * 2019-10-28 2020-02-28 维沃移动通信有限公司 Message display method and terminal equipment
CN111800333B (en) * 2020-06-11 2021-12-31 腾讯科技(深圳)有限公司 Session message processing method, device, computer readable storage medium and equipment
CN113946403B (en) * 2021-11-16 2023-08-22 网易(杭州)网络有限公司 Data display method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818853A (en) * 2019-02-19 2019-05-28 北京达佳互联信息技术有限公司 Message treatment method, device, server, electronic equipment and computer readable storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060248150A1 (en) * 2005-04-29 2006-11-02 International Business Machines Corporation Methods and apparatus for managing and distinguishing instant messaging sessions and threads
CN101025671B (en) * 2006-02-24 2011-05-18 腾讯科技(深圳)有限公司 Method for displaying new message in message window
US20150121179A1 (en) * 2013-10-25 2015-04-30 Palo Alto Research Center Incorporated System and method for creating graphically rich messages incorporating shared docments
CN106469054B (en) * 2015-08-21 2021-09-21 小米科技有限责任公司 Notification message control method and device and terminal
CN105242924A (en) * 2015-09-25 2016-01-13 联想(北京)有限公司 Control method and electronic device using same
CN106933547B (en) * 2015-12-29 2020-12-01 阿里巴巴集团控股有限公司 Global information acquisition and processing method, device and updating system
US10067731B2 (en) * 2016-01-05 2018-09-04 Quirklogic, Inc. Method and system for representing a shared digital virtual “absolute” canvas
US10270726B2 (en) * 2017-02-24 2019-04-23 Satori Worldwide, Llc Selective distribution of messages in a scalable, real-time messaging system
CN107577395B (en) * 2017-09-11 2019-09-17 竞技世界(北京)网络技术有限公司 Chat content display methods and device based on Qt Development Framework
CN109408162A (en) * 2018-09-03 2019-03-01 平安普惠企业管理有限公司 A kind of method and terminal showing the page
CN110377376B (en) * 2019-06-05 2022-06-17 平安科技(深圳)有限公司 Interface message refreshing method and device, computer device and readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818853A (en) * 2019-02-19 2019-05-28 北京达佳互联信息技术有限公司 Message treatment method, device, server, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
WO2020244159A1 (en) 2020-12-10
CN110377376A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN110377376B (en) Interface message refreshing method and device, computer device and readable storage medium
CN110049456B (en) Method and device for displaying rich media on mobile terminal and mobile terminal
CN109408752B (en) Online document display method and device and electronic equipment
CN105487760A (en) Method and device for displaying message and electronic equipment
CN109102264B (en) Electronic red packet detection method and device and terminal equipment
US11829588B2 (en) Method, apparatus, and system for generating resource value transfer request
CN110222288B (en) Page display method, device and storage medium
CN109685595A (en) Method for pushing, device, mobile terminal and storage medium based on data analysis
CN111651700A (en) Message display method and device, electronic equipment and storage medium
CN112261595B (en) Event reminding method and device, storage medium and mobile terminal
CN109951380B (en) Method, electronic device, and computer-readable medium for finding conversation messages
CN107979529B (en) Information processing method, information processing apparatus, computer apparatus, and computer-readable storage medium
CN112840305B (en) Font switching method and related product
CN112198998A (en) Text input control method, related device, equipment and medium
CN105320707B (en) Hot word prompting method and device based on instant messaging
CN109376323B (en) Application running method, device, computer device and storage medium
CN110231896B (en) Information sending method and device, electronic equipment and storage medium
CN109509013B (en) Method for pushing image information by mobile terminal equipment
CN112115245A (en) Query statement processing method, device, terminal and storage medium
CN113268179A (en) Session message processing method, device, equipment and storage medium
CN111049981A (en) Message identification method, device, user equipment and computer readable storage medium
CN110881001A (en) Electronic red packet detection method, system and terminal equipment
CN110688490A (en) Method and device for configuring knowledge graph
CN113098859B (en) Webpage page rollback method, device, terminal and storage medium
CN114442897B (en) Text processing method and device, electronic equipment and storage medium

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