WO2022121524A1 - Method and device for removing friend relationship - Google Patents

Method and device for removing friend relationship Download PDF

Info

Publication number
WO2022121524A1
WO2022121524A1 PCT/CN2021/125289 CN2021125289W WO2022121524A1 WO 2022121524 A1 WO2022121524 A1 WO 2022121524A1 CN 2021125289 W CN2021125289 W CN 2021125289W WO 2022121524 A1 WO2022121524 A1 WO 2022121524A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
timer
friend relationship
session
source type
Prior art date
Application number
PCT/CN2021/125289
Other languages
French (fr)
Chinese (zh)
Inventor
陈大年
姚莲
文潇
屠小英
朱聪
Original Assignee
上海掌门科技有限公司
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 上海掌门科技有限公司 filed Critical 上海掌门科技有限公司
Publication of WO2022121524A1 publication Critical patent/WO2022121524A1/en

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
    • 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

Definitions

  • the present application relates to the field of communications, and in particular, to a technology for canceling a friendship.
  • An object of the present application is to provide a method and device for canceling a friend relationship.
  • a method for canceling a friend relationship comprising:
  • the timer Before the timer reaches the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the When the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
  • a first device for canceling a friend relationship includes:
  • a module configured to start a timer for the friend relationship in response to a friend relationship establishment event between the first user and the second user;
  • Modules 1 and 2 are configured to terminate the timer in response to a session interaction event corresponding to the session between the first user and the second user before the timer reaches the timer duration corresponding to the timer. Otherwise, if the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
  • a device for canceling a friend relationship wherein the device includes:
  • memory arranged to store computer-executable instructions which, when executed, cause the processor to:
  • the timer Before the timer reaches the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the When the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
  • a computer-readable medium storing instructions that, when executed, cause a system to:
  • the timer Before the timer reaches the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the When the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
  • the present application can start a timer for the friend relationship in response to a friend relationship establishment event between the first user and the second user, and then reach the timer corresponding to the timer when the timer counts. Before the timer duration, the timer is terminated in response to the session interaction event corresponding to the session between the first user and the second user, otherwise, if the timer reaches the timer duration corresponding to the timer , cancel the presentation of the session, and/or, cancel the friend relationship, so as to be able to automatically hide the session between the two users and/or when no session interaction event occurs after the establishment of the friend relationship between the two users. Or automatically cancel the friend relationship between the two users, which can make the user's social application interface more refreshing, can greatly improve the user's social efficiency and social experience, and can also ensure the safety of communication between users.
  • FIG. 1 shows a flowchart of a method for deleting a friend application according to an embodiment of the present application
  • FIG. 2 shows a structural diagram of a first user equipment for deleting a friend application according to an embodiment of the present application
  • FIG. 3 illustrates an exemplary system that may be used to implement various embodiments described in this application.
  • the terminal, the device serving the network, and the trusted party all include one or more processors (for example, a central processing unit (CPU)), an input/output interface, a network interface, and Memory.
  • processors for example, a central processing unit (CPU)
  • Memory may include non-persistent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read only memory (ROM) or flash memory ( Flash Memory).
  • RAM random access memory
  • ROM read only memory
  • Flash Memory Flash Memory
  • Memory is an example of a computer-readable medium.
  • Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory (Static Random-Access Memory, SRAM), Dynamic Random Access Memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically-Erasable Programmable Read -Only Memory, EEPROM), flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD), or other optical storage , magnetic tape cartridges, magnetic tape-disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • PCM Phase-Change Memory
  • PRAM Programmable Random Access Memory
  • SRAM Static
  • the equipment referred to in this application includes, but is not limited to, user equipment, network equipment, or equipment formed by integrating user equipment and network equipment through a network.
  • the user equipment includes, but is not limited to, any mobile electronic product that can perform human-computer interaction with the user (for example, human-computer interaction through a touchpad), such as a smart phone, a tablet computer, etc., and the mobile electronic product can use any operation. system, such as Android operating system, iOS operating system, etc.
  • the network device includes an electronic device that can automatically perform numerical calculation and information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASICs) ), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded devices, etc.
  • the network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud formed by a plurality of servers; here, the cloud is formed by a large number of computers or network servers based on cloud computing, Among them, cloud computing is a kind of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets.
  • the network includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless ad hoc network (Ad Hoc network), and the like.
  • the device may also be a program running on the user equipment, network equipment, or a device formed by user equipment and network equipment, network equipment, touch terminal or network equipment and touch terminal integrated through a network.
  • FIG. 1 shows a flowchart of a method for canceling a friend relationship according to an embodiment of the present application, and the method includes step S11 and step S12.
  • step S11 the first device starts a timer for the friend relationship in response to the event of establishing a friend relationship between the first user and the second user; in step S12, the first device starts the timer for the friend relationship when the timer expires.
  • the timer is terminated in response to a session interaction event corresponding to the session between the first user and the second user; otherwise, if the timer reaches the According to the time duration corresponding to the timer, the session is canceled, and/or the friend relationship is canceled.
  • the first device starts a timer for the friend relationship in response to a friend relationship establishment event between the first user and the second user.
  • the first device may be a network device (server), a first user equipment used by a first user, or a second user equipment used by a second user.
  • the first user or the second user may actively initiate a request to add a friend application of the other party as a friend, and after the other party confirms and passes, a friend relationship establishment event is triggered.
  • the server may automatically initiate a request for adding a friend application for the first user or the second user to be a friend, and after the other party confirms and passes, trigger a friend relationship establishment event.
  • the first user may also actively initiate a request to add a friend application of the second user as a friend, and the second user may also initiate a request to add a friend application of the second user as a friend. Friendship building event.
  • the first user may actively initiate a request to add a friend application of the second user as a friend, and the server may automatically initiate a request for the second user to add a friend application of the first user as a friend, triggering a friend relationship establishment event.
  • the first device is a server
  • a timer for the friend relationship is started in the server
  • the first device is the first user equipment or the second user equipment
  • the second user equipment locally starts a timer for the friend relationship.
  • the timer on the first user equipment may be synchronized with the timer on the second user equipment, or may be independent of each other.
  • the timing of the timer is configured by the server, and the maintenance personnel or users of the server can modify it as needed.
  • the timing of the timer can be configured locally by the first user equipment or locally by the second user equipment, and the first user or the second user can modify it according to their own needs, or the timing of the timer can also be configured and provided by the server.
  • the maintenance personnel or users of the server can make modifications as needed, and provide the updated timing duration to the first user equipment or the second user equipment.
  • step S12 the first device terminates the session interaction event corresponding to the session between the first user and the second user before the timer reaches the timing corresponding to the timer. the timer; otherwise, if the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled. In some embodiments, if a session interaction event occurs in the session between the first user and the second user before the timer counts up to a predetermined duration, the timer is terminated and deleted.
  • session interaction events include, but are not limited to, any party in the session sending a session message, initiating a voice or video call, sending location information, initiating a shared real-time location, sending a red envelope, initiating a Transfers, sent documents, business cards, cards and coupons and other interactive information.
  • the timer expires, the timer is deleted, and the session between the first user and the second user is cancelled or the first user or the second user is cancelled on the session list page or the history session page. Friendship between them, or, it can also be to cancel the presentation session and unfriend the relationship.
  • the presentation session can be cancelled directly.
  • a friend unfriend request needs to be sent to the server, and the server will cancel the friend relationship. If the first device For the server, it is enough to directly cancel the friend relationship.
  • the first user can be searched for the first user on the contact page or the address book page. Or the second user to open the session between the first user and the second user, and enter the corresponding session page.
  • the present application can automatically hide the session between the two users and/or cancel the friend relationship between the two users when no session interaction event occurs after the establishment of a friend relationship between the two users, so that the user's
  • the interface of social applications is more refreshing, which can greatly improve the social efficiency and social experience of users, and can also ensure the safety of communication between users.
  • the timing duration includes a first timing duration and a second timing duration, and the first timing duration is smaller than the second timing duration; wherein, the step S12 includes: the first device is at the timing Before the timer reaches the first timing duration, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timer reaches the predetermined duration the first timing duration, cancel the presentation of the session and continue timing; before the timer reaches the second timing duration, in response to the session corresponding to the session between the first user and the second user If the interaction event occurs, the timer is terminated; otherwise, if the timer reaches the second time period, the friend relationship is cancelled.
  • the timing duration includes a first timing duration and a second timing duration, the first timing duration is less than the second timing duration, and before the timer reaches the first timing duration, if there is a gap between the first user and the second user If a session interaction event occurs in the session, the timer is terminated and deleted; otherwise, when the timer reaches the first time duration, the session list page or the history session page will cancel the presentation of the interaction between the first user and the second user.
  • the step S11 includes step S111 (not shown).
  • step S111 in response to a friend relationship establishment event between the first user and the second user, the first device detects whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, and if so, initiates a response to the friend relationship establishment event. Friendship timer. In some embodiments, it is necessary to detect whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type. If so, the timer for the friend relationship between the first user and the second user will be started; Start the timer. In some embodiments, the channel source type corresponding to the friend relationship establishment event is used to represent the channel source through which the first user and the second user established the friend relationship.
  • the channel source includes but is not limited to the stranger channel source and the acquaintance channel source
  • the stranger channel means that the two parties did not know each other when they established the friendship
  • the acquaintance channel means that the two parties already knew each other when they established the friendship.
  • the first user is the second user seen in the "Nearby People" channel. , and then send a friend request to the second user, where the "Nearby People" channel is the stranger channel.
  • the first user is the second user seen in the mobile phone address book channel, and then sends a message to the second user.
  • the mobile phone address book channel here is the acquaintance channel. Since the friend relationship established through the acquaintance channel usually has reserved value and significance, the corresponding timer will not be started for the friend relationship established through the acquaintance channel. , will only start the corresponding timer for the friendship established through the stranger channel.
  • the predetermined channel source types include, but are not limited to:
  • the server automatically initiates a friend application for the first user or the second user to request to add the second user or the first user as a friend.
  • a friend relationship is established between the first user and the second user.
  • the server automatically determines one or more users recommended to the second user, and the one or more users include the first user, and then automatically initiates a friend application for the second user to request to add the one or more users as friends.
  • the first user sees the second user through the "Nearby People" channel, and then sends a friend request to the second user. Build friendships.
  • the first user views through any stranger adding channel other than the "people nearby” channel (eg, "hot chat” channel, "message tree” channel, “see eye to eye” channel, etc.) to the second user, and then a friend request is sent to the second user, and after the second user's confirmation is passed, a friend relationship is established between the first user and the second user.
  • any stranger adding channel other than the "people nearby” channel eg, "hot chat” channel, "message tree” channel, “see eye to eye” channel, etc.
  • the channel source type corresponding to the friend relationship establishment event includes a request by the first user to add a first channel source type used by the second user as a friend and a request by the second user to add the channel source type.
  • the source type of the second channel used by the first user as a friend, the source type of the first channel is different from the source type of the second channel; wherein, if the first device is the first user used by the first user device, the step S111 includes: the first device, in response to a friend relationship establishment event between the first user and the second user, detects whether the first channel source type is a predetermined channel source type, and if so, starts the first timer for the friend relationship corresponding to the first user; if the first device is the second user device used by the second user, the step S111 includes: the first device responds to the A friend relationship establishment event between the first user and the second user, to detect whether the source type of the second channel is a predetermined channel source type, and if so, start the timer corresponding to the second user for
  • the first channel source type used by the first user's request to add the second user as a friend is different from the second channel source type used by the second user's request to add the first user as a friend
  • the first device is the first user device or the second user device
  • a timer corresponding to the user for the friend relationship between the first user and the second user is started on the device or on the device of the second user. For example, the first user is the second user seen in the "Nearby People" channel, and then sends a friend request to the second user.
  • the "Nearby People" channel is the stranger channel, and the second user is in the mobile phone address book.
  • the first user the channel sees, and then sends a friend request to the first user.
  • the mobile phone address book channel is an acquaintance channel.
  • the channel source type corresponding to the first user is not the same as the channel source type corresponding to the second user.
  • the second user is the friend he added through the stranger channel, while for the second user In other words, the first user is his friend added through the acquaintance channel.
  • the first device is a server
  • the timer of the friendship between the first user and the second user if neither of them is satisfied, the timer will not be started, and no subsequent operations will be performed. If only one of the two is satisfied, the timer may not be started. It does not perform any subsequent operations, or only starts the timer for the friend relationship corresponding to the user associated with one of the two, but does not start the timer for the friend corresponding to the user associated with the other of the two.
  • the timer that starts the relationship will only trigger the cancellation of the session between the first user and the second user when the timer reaches its corresponding timing duration, but will not trigger the cancellation of the session between the first user and the second user. friend relationship.
  • starting a first timer for the friend relationship corresponding to the first user includes: if yes, sending a timer start request to a network device, and receiving a request from the network device for the friend relationship.
  • the instruction information of the timer start request feedback if the instruction information indicates that the timer is allowed to be started, the first timer corresponding to the first user for the friend relationship is started, wherein the network device detects the second channel by detecting the second channel.
  • the source type is a predetermined channel source type determines the command information, if the second channel source type is a predetermined channel source type, the command information indicates to start the first timer, otherwise, the command information indicates not to The first timer is started.
  • the first device is the first user equipment. If the first channel source type corresponding to the first user meets the predetermined channel source type, the first user equipment will ask the server whether to enable the first user equipment on the first user equipment. For the timer corresponding to the user, the server will detect whether the second channel source type corresponding to the second user also satisfies the predetermined channel source type. If so, the server will instruct the first user equipment to start the first timer; otherwise, the server will instruct the A user equipment does not start the first timer.
  • starting a second timer for the friend relationship corresponding to the second user includes: if yes, sending a timer start request to a network device, and receiving a request from the network device for the friend relationship.
  • the instruction information of the timer start request feedback if the instruction information indicates that the timer is allowed to start, start the second timer corresponding to the second user for the friend relationship, wherein the network device detects the first channel by detecting the first channel.
  • the source type is a predetermined channel source type determines the command information, if the first channel source type is a predetermined channel source type, the command information indicates to start the second timer, otherwise, the command information indicates not to The second timer is started.
  • the first device is a second user equipment. If the second channel source type corresponding to the second user satisfies the predetermined channel source type, the second user equipment will ask the server whether to enable the second user equipment on the second user equipment. For the timer corresponding to the user, the server will detect whether the first channel source type corresponding to the first user also meets the predetermined channel source type. If so, the server will instruct the second user equipment to start the second timer; otherwise, the server will instruct the The second user equipment does not start the second timer.
  • the step S111 includes: in response to a friend relationship establishment event between the first user and the second user, the first device detects whether the friend application source type corresponding to the friend relationship establishment event is a predetermined friend application Source type, if yes, according to the friend relationship configuration information corresponding to the friend relationship to determine whether the expiration automatic processing function is currently enabled, if so, start the timer for the friend relationship.
  • the friend relationship configuration information may be maintained locally on the first user equipment or locally on the second user equipment, and the first user or the second user may change the status currently indicated by the friend relationship configuration information according to their own needs.
  • the friend relationship configuration information may be maintained in the server, and maintenance personnel or users of the server may change the status indicated by the friend relationship configuration information as required.
  • the first user equipment or the second user equipment may maintain a common friend relationship configuration information for multiple friend relationships between the first user or the second user and their different friends, or may maintain a common friend relationship configuration information for each friend relationship Maintain a friend relationship configuration information separately.
  • the server may maintain a common friend relationship configuration information for the first user and the second user, or may maintain a separate friend relationship configuration information for each user, where the friend relationship configuration information is applicable to the first user or the second user. Multiple friend relationships between the second user and his different friends.
  • the friend relationship configuration information includes the timing duration.
  • the first user equipment or the second user equipment maintains the friend relationship configuration information
  • the first user or the second user can change the timing in the friend relationship configuration information according to their own needs.
  • the maintenance personnel or users of the server can change the timing duration in the friend relationship configuration information as required.
  • the method further includes: the first device determines the friend relationship configuration information based on at least one of the following: the channel source type; the number of mutual friends of the first user and the second user; The historical session interaction frequency information of the first user and the historical session interaction frequency information of the second user.
  • the friend relationship configuration information suitable for the friend relationship may be determined according to the channel source type corresponding to the friend relationship establishment event.
  • the friend relationship configuration information suitable for the friend relationship can also be determined according to the number of common friends of the first user and the second user. the longer.
  • the friend relationship configuration information suitable for the friend relationship may also be determined according to the historical session interaction frequency information between the first user and other users and the historical session interaction frequency information between the second user and other users, wherein the frequency Information includes, but is not limited to, frequency information (for example, how many time intervals the first user or the second user performs session interactions on average) and frequency information (for example, how many session interactions the first user or the second user performs on average per day) operation), for example, if the interaction frequency of the historical session of the first user is high, the timing duration in the friend relationship configuration information corresponding to the first user is shorter, and the interaction frequency of the historical session of the second user is low, then the corresponding The timing duration in the friend relationship configuration information is longer.
  • the frequency Information includes, but is not limited to, frequency information (for example, how many time intervals the first user or the second user performs session interactions on average) and frequency information (for example, how many session interactions the first user or the second user performs on average per day) operation), for example, if the interaction frequency of the historical session
  • the method further includes: the first device, in response to a first switching event in which the state indicated by the friend relationship configuration information is switched from turning on the automatic expiration processing function on to turning off the automatic expiration processing function, terminating the timing device.
  • the first switching event may be that the first user or the second user switches the state indicated by the friend relationship configuration from enabling the automatic expired processing function to Disabling the automatic expired processing function, or, if the first device is a server, the first switching event may also be a server maintainer or user switching the status indicated by the friend relationship configuration from enabling the automatic expiration processing function to turning off the automatic expiration processing function.
  • the method further includes: in response to the state indicated by the friend relationship configuration information, the first device switches from disabling the automatic expired processing function to the second switching event of enabling the automatic expired processing function, if the session If no historical session interaction event has been generated and the timer has not expired, the timer is restarted.
  • the second switching event may be that the first user or the second user switches the state indicated by the friend relationship configuration from turning off the automatic expired processing function to Turn on the automatic expiration processing function, or, if the first device is a server, the second switching event can also be the server maintainer or user switching the status indicated by the friend relationship configuration from disabling the automatic expiration processing function to turning on the automatic expiration processing function.
  • restarting the timer may be restarting the timer according to the start time as the current time, or may be resetting the timer and restarting the timer according to the start time being 0.
  • the restarting the timer includes but is not limited to: restarting the timer, wherein the start time of the timer is the current time; resetting and restarting the timer .
  • the start time of the timer may be set to the current time, and the timer may be restarted from the current time.
  • the timer can be reset, the start time of the timer is reset to 0, and the timer is restarted from 0.
  • the method further includes: the first device, in response to the timing duration change event corresponding to the friend relationship configuration information, calculates whether the absolute value of the time interval between the start time corresponding to the timer and the current time is less than or equal to the modified timing duration, if so, cancel the presentation of the session, and/or cancel the friend relationship, otherwise, continue to count the timer according to the modified timing duration.
  • the timing duration change event may be that the first user or the second user changes the timing duration in the friend relationship configuration information, or, it may also be a server maintainer or user changing the timing duration in the friend relationship configuration information .
  • the timing duration of the timer is set to the changed timing duration, and the timer continues to count.
  • the method further includes: in response to a timing duration change event corresponding to the friend relationship configuration information, the first device resets the timer and restarts the timer according to the changed timing duration.
  • the timer is reset, the start time of the timer is reset to 0, the timing duration of the timer is set to the changed timing duration, and then the timer is restarted from 0.
  • the first device is a first user device used by a first user or a second user device used by a second user; wherein the method further includes: the first device responds to an upgrade from a historical version To the upgrade completion event of the current version, if the session between the first user and the second user has not generated any historical session interaction events, detect the friend relationship between the first user and the second user Whether the absolute value of the time interval between the corresponding friend relationship establishment time and the current time is greater than or equal to the timing duration, and if so, cancel the presentation of the session, and/or cancel the friend relationship.
  • the historical version does not include the automatic expired processing function
  • the current version includes the automatic expired processing function Function.
  • the session interaction record can also be obtained by requesting the server to obtain the historical session interaction record of the first user or the second user, and then according to the historical session interaction record, it can be determined whether the session between the first user and the second user has generated a historical session interaction event.
  • the friend relationship establishment time corresponding to the friend relationship between the first user and the second user needs to be obtained, which may be obtained directly from the local device of the first user or the local device of the second user, or may be obtained by requesting the server.
  • the method further includes: if the absolute value of the time interval between the friend relationship establishment time corresponding to the session and the current time is smaller than the timing duration, the first device starts a timer for the friend relationship, wherein , and the start time of the timer is the current time.
  • the start time of the timer for the friend relationship may be set as the current time, and the timing duration of the timer is still the timing duration in the friend relationship configuration information, and then the timer is started.
  • the timing duration of the timer can also be set as the difference between the timing duration in the friend relationship configuration information and the current time, the start time of the timer is 0, and then the timer is started.
  • the method further includes: during the timing of the timer, the first device presents the session in a first presentation manner, wherein the first presentation manner is different from other unstarted timers
  • the second presentation mode corresponding to the session of the user interface in response to the timing termination event of the timer, the session is updated and presented through the second presentation mode.
  • the conversation is presented on the conversation list page or the historical conversation page by a first presentation manner, wherein the first presentation manner is different from the presentation of other presentations on the conversation list page or the historical conversation page.
  • the second presentation mode used by sessions that do not start a timer.
  • the first presentation manner may be to highlight the session, or, it may also be to present a specific text or a specific icon, animation, etc. in the display area of the session.
  • the presentation mode of the session in the session list page or the history session page is adjusted from the first presentation mode to the second presentation mode.
  • the first presentation manner includes presenting first countdown information determined according to the current time and the timing duration in the display area of the session, wherein the first countdown information is updated in real time based on the current time .
  • the timing duration is a time point type (for example, at 24:00 on January 30)
  • the first countdown information can be determined according to the current time and the timing duration, and the first countdown information is used to represent the distance between the current time and the timing. How much time is left until the timer expires.
  • the timing duration is a time period type (for example, 24 hours)
  • it needs to be based on the start time of the timer that is, the friend relationship establishment time corresponding to the friend relationship
  • the current time and the timing duration.
  • the first countdown information is determined.
  • the first countdown information may only include text information, or may include both text information and icons, animations, and the like.
  • the method further includes: during the timing of the timer, the first device, in response to an event that the first user or the second user enters a session page corresponding to the session, at The session page presents second countdown information determined according to the current time and the timing duration, wherein the second countdown information is updated in real time based on the current time; in response to a timing termination event of the timer, in the session The second countdown information is canceled from being displayed on the page.
  • the timing of the timer if the first user or the second user enters the session page corresponding to the session, second countdown information will be presented in the session page.
  • the second The countdown information is similar to the first countdown information, and details are not repeated here.
  • the second countdown information is de-presented in the session page.
  • the releasing the friend relationship includes: releasing the friendship relationship, and presenting information about releasing the friendship relationship to the first user and/or the second user.
  • the release indication information may include identification information of the first user or identification information of the second user.
  • the release instruction information is used to remind the first user or the second user that the system has automatically released the friend relationship with the other party.
  • the first device is the first user equipment or the second user equipment, it suffices to directly present the release instruction information. If the first device is the server, the server needs to send the release instruction information to the first user equipment or the second user equipment. Two user equipment to display.
  • the releasing the friend relationship, and presenting the information about releasing the friendship relationship to the first user and/or the second user includes: releasing the friendship relationship, and presenting the information about the disconnection of the friendship relationship to the first user and/or the second user.
  • the first user and/or the second user presents information about the cancellation of the friend relationship, and detects whether the first user and the second user are currently presenting the session page corresponding to the session, and if so, automatically exits the session page.
  • when unfriending if the first user equipment or the second user equipment is currently presenting a session page corresponding to the session, the first user equipment or the second user equipment will automatically exit the session.
  • the first device if the first device is the first user device or the second user device, it is sufficient to directly detect whether the session page corresponding to the session is currently displayed. If the first device is the server, the server will send the release instruction information to The first user equipment or the second user equipment performs presentation, and after receiving the release instruction information, the first user equipment or the second user equipment will detect whether the session page corresponding to the session is currently presented.
  • the method further includes: during the timing of the timer, In response to the opening operation of the session page corresponding to the session performed by the first user or the second user, at least one of the following operations is performed: reset and restart the timer; The timing duration of , where the timing duration after the modification is greater than the timing duration before the modification.
  • the timer will be reset, and the start time of the timer will be set to 0, and then restart the timer from 0, and the timing of the timer remains unchanged.
  • the timing duration of the timer is changed, and the timing duration after the modification is greater than the timing duration before the modification.
  • the modified timing duration is positively correlated with the number of times the first user or the second user opens the session page corresponding to the session during the timing of the timer. bigger.
  • there is a predetermined threshold for the modification of the timing duration If the modified timing duration exceeds the predetermined threshold, the modified timing duration is set to the predetermined threshold, and then the timing duration is not changed.
  • the timing duration is changed each time according to a predetermined increase range, which may be each time the timing duration is changed according to the same increase range, or the timing duration may be changed each time according to a different increase range. the smaller the magnitude.
  • the first device is a server
  • the first user device or the second user device needs to send the opening event of the session page corresponding to the session by the first user or the second user to the server.
  • the canceling the presentation of the session, and/or canceling the friend relationship includes: canceling the presentation of the session, and/or canceling the friend relationship, and recording the expiration date corresponding to the friend relationship Automatic processing information, wherein the expired automatic processing information includes the establishment time of the friend relationship, the automatic processing event type corresponding to the friend relationship, the processing time corresponding to the automatic processing event, and the identification information of the first user. , at least one of the identification information of the second user, the identification information of the session, and the timing duration corresponding to the timer.
  • record the expired automatic processing information corresponding to the friend relationship and the expired automatic processing information includes but is not limited to the friend relationship.
  • the first device is the first user device or the second user device
  • the recorded expired automatic processing information corresponding to the friend relationship may be uploaded to the server after the management is completed.
  • the method further includes: automatically processing in response to expiration
  • the information upload initiates an event, and uploads one or more expired automatic processing information corresponding to one or more friend relationships currently recorded by the first device to the network device.
  • an upload operation regarding expired automatic processing information may be initiated each time the social application is started, or an upload operation may be initiated at the current distance from the previous upload operation.
  • a predetermined duration threshold eg, 1 day
  • an upload operation on expired automatic processing information is initiated, for example, an upload operation on expired automatic processing information is initiated every other day.
  • one or more of the currently recorded first user or second user corresponding to one or more friend relationships of one or more historical friends of the first user or second user are updated.
  • the expired automatic processing information is uploaded to the server.
  • FIG. 2 shows a structural diagram of a first device for canceling a friend relationship according to an embodiment of the present application.
  • the device includes a first module 11 and a second module 12 .
  • the first device may be a network device (server), a first user equipment used by a first user, or a second user equipment used by a second user.
  • the first user or the second user may actively initiate a request to add a friend application of the other party as a friend, and after the other party confirms and passes, a friend relationship establishment event is triggered.
  • the server may automatically initiate a request for the first user or the second user to add a friend application in which the other party is a friend, and after the other party confirms and passes, a friend relationship establishment event is triggered.
  • the first user may also actively initiate a request to add a friend application of the second user as a friend, and the second user may also initiate a request to add a friend application of the second user as a friend. Friendship building event.
  • the first user may actively initiate a request to add a friend application of the second user as a friend, and the server may automatically initiate a request for the second user to add a friend application of the first user as a friend, triggering a friend relationship establishment event.
  • the first device is a server
  • a timer for the friend relationship is started in the server
  • the first device is the first user equipment or the second user equipment
  • the second user equipment locally starts a timer for the friend relationship.
  • the timer on the first user equipment may be synchronized with the timer on the second user equipment, or may be independent of each other.
  • the timing of the timer is configured by the server, and the maintenance personnel or users of the server can modify it as needed.
  • the timing of the timer can be configured locally by the first user equipment or locally by the second user equipment, and the first user or the second user can modify it according to their own needs, or the timing of the timer can also be configured and provided by the server.
  • the maintenance personnel or users of the server can make modifications as needed, and provide the updated timing duration to the first user equipment or the second user equipment.
  • the first and second modules 12 are configured to, in response to a session interaction event corresponding to a session between the first user and the second user, terminate the a timer; otherwise, if the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled. In some embodiments, if a session interaction event occurs in the session between the first user and the second user before the timer counts up to a predetermined duration, the timer is terminated and deleted.
  • session interaction events include, but are not limited to, any party in the session sending a session message, initiating a voice or video call, sending location information, initiating a shared real-time location, sending a red envelope, initiating a Transfers, sent documents, business cards, cards and coupons and other interactive information.
  • the timer expires, the timer is deleted, and the session between the first user and the second user is cancelled or the first user or the second user is cancelled on the session list page or the history session page. Friendship between them, or, it can also be to cancel the presentation session and unfriend the relationship.
  • the presentation session can be cancelled directly.
  • a friend unfriend request needs to be sent to the server, and the server will cancel the friend relationship. If the first device For the server, it is enough to directly cancel the friend relationship.
  • the first user can be searched for the first user on the contact page or the address book page. Or the second user to open the session between the first user and the second user, and enter the corresponding session page.
  • the present application can automatically hide the session between the two users and/or cancel the friend relationship between the two users when no session interaction event occurs after the establishment of a friend relationship between the two users, so that the user's
  • the interface of social applications is more refreshing, which can greatly improve the social efficiency and social experience of users, and can also ensure the safety of communication between users.
  • the timing duration includes a first timing duration and a second timing duration, and the first timing duration is smaller than the second timing duration; wherein the first and second modules 12 are configured to: at the timing Before the timer reaches the first timing duration, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timer reaches the predetermined duration the first timing duration, cancel the presentation of the session and continue timing; before the timer reaches the second timing duration, in response to the session corresponding to the session between the first user and the second user If the interaction event occurs, the timer is terminated; otherwise, if the timer reaches the second time period, the friend relationship is cancelled.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the one-to-one module 11 includes a one-to-one module 111 (not shown).
  • a module 111 is configured to, in response to a friend relationship establishment event between the first user and the second user, detect whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type; Friendship timer.
  • the specific implementation of the one-to-one module 111 is the same as or similar to the embodiment related to step S111 in FIG. 1 , so it is not repeated here, and is incorporated herein by reference.
  • the predetermined channel source types include, but are not limited to:
  • the source type of the relevant predetermined channel is the same as or similar to the embodiment shown in FIG. 1 , so it is not repeated here, and is incorporated herein by reference.
  • the channel source type corresponding to the friend relationship establishment event includes a request by the first user to add a first channel source type used by the second user as a friend and a request by the second user to add the channel source type.
  • the source type of the second channel used by the first user as a friend, the source type of the first channel is different from the source type of the second channel; wherein, if the first device is the first user used by the first user device, the one-to-one module 111 is configured to: in response to a friend relationship establishment event between the first user and the second user, detect whether the first channel source type is a predetermined channel source type, and if so, Start the first timer for the friend relationship corresponding to the first user; if the first device is the second user device used by the second user, the one-to-one module 111 is used for: the first In response to a friend relationship establishment event between the first user and the second user, the device detects whether the source type of the second channel is a predetermined channel source type, and if so, activate
  • a timer for a friend relationship if the first device is a network device, the one-to-one module 111 is configured to: in response to a friend relationship establishment event between the first user and the second user, detect the Whether the first channel source type and the second channel source type are predetermined channel source types, if both are predetermined channel source types, start a timer for the friend relationship; if only one of the two is predetermined Channel source type, only start the timer for the friend relationship corresponding to the user associated with one of them, so as to only cancel the presentation of the session when the timer reaches its corresponding timing, or, do not perform any operate.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • starting a first timer for the friend relationship corresponding to the first user includes: if yes, sending a timer start request to a network device, and receiving a request from the network device for the friend relationship.
  • the instruction information of the timer start request feedback if the instruction information indicates that the timer is allowed to be started, the first timer corresponding to the first user for the friend relationship is started, wherein the network device detects the second channel by detecting the second channel.
  • the source type is a predetermined channel source type determines the command information, if the second channel source type is a predetermined channel source type, the command information indicates to start the first timer, otherwise, the command information indicates not to The first timer is started.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • starting a second timer for the friend relationship corresponding to the second user includes: if yes, sending a timer start request to a network device, and receiving a request from the network device for the friend relationship.
  • the instruction information of the timer start request feedback if the instruction information indicates that the timer is allowed to start, start the second timer corresponding to the second user for the friend relationship, wherein the network device detects the first channel by detecting the first channel.
  • the source type is a predetermined channel source type determines the command information, if the first channel source type is a predetermined channel source type, the command information indicates to start the second timer, otherwise, the command information indicates not to The second timer is started.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the one-to-one module 111 is configured to: in response to a friend relationship establishment event between the first user and the second user, detect whether the friend application source type corresponding to the friend relationship establishment event is a predetermined friend Application source type, if yes, determine whether the automatic expiration processing function is currently enabled according to the friend relationship configuration information corresponding to the friend relationship, and if so, start a timer for the friend relationship.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the friend relationship configuration information includes the timing duration.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the device is further configured to: determine the friend relationship configuration information based on at least one of the following: the channel source type; the number of mutual friends of the first user and the second user; the The historical session interaction frequency information of the first user and the historical session interaction frequency information of the second user.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the device is further configured to terminate the timer in response to a first switching event in which the state indicated by the buddy relationship configuration information is switched from turning on the automatic expired processing function on to turning off the automatic expired processing function.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the device is further configured to: in response to the state indicated by the friend relationship configuration information, a second switching event for switching from disabling the automatic expired processing function to enabling the automatic expired processing function, if the session does not occur After any historical session interaction event, and the timer has not expired, restart the timer.
  • a second switching event for switching from disabling the automatic expired processing function to enabling the automatic expired processing function, if the session does not occur After any historical session interaction event, and the timer has not expired, restart the timer.
  • the restarting the timer includes but is not limited to: restarting the timer, wherein the start time of the timer is the current time; resetting and restarting the timer .
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the device is further configured to: in response to the timing duration change event corresponding to the friend relationship configuration information, calculate whether the absolute value of the time interval between the start time corresponding to the timer and the current time is less than or equal to For the changed timing duration, if yes, cancel the presentation of the session, and/or cancel the friend relationship, otherwise, continue to count the timer according to the changed timing duration.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the device is further configured to: in response to a timing duration change event corresponding to the friend relationship configuration information, reset the timer and restart the timer according to the changed timing duration.
  • a timing duration change event corresponding to the friend relationship configuration information
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the first device is a first user device used by a first user or a second user device used by a second user; wherein the device is further configured to: in response to upgrading from a historical version to a current version The version upgrade completion event, if the session between the first user and the second user has not generated any historical session interaction events, detect the friend relationship between the first user and the second user. Whether the absolute value of the time interval between the friend relationship establishment time and the current time is greater than or equal to the timing duration, and if so, cancel the presentation of the session, and/or cancel the friend relationship.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the device is further configured to: if the absolute value of the time interval between the friend relationship establishment time corresponding to the session and the current time is less than the timing duration, start a timer for the friend relationship, wherein the The start time of the timer is the current time.
  • start a timer for the friend relationship wherein the The start time of the timer is the current time.
  • the device is further configured to: in the timing process of the timer, present the session by using a first presentation mode, wherein the first presentation mode is different from other sessions without a timer started A corresponding second presentation manner; in response to a time-out event of the timer, updating and presenting the session through the second presentation manner.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not described again, but are incorporated herein by reference.
  • the first presentation manner includes presenting first countdown information determined according to the current time and the timing duration in the display area of the session, wherein the first countdown information is updated in real time based on the current time .
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the device is further configured to: in the timing process of the timer, in response to an event that the first user or the second user enters a session page corresponding to the session, at the The session page presents second countdown information determined according to the current time and the timing duration, wherein the second countdown information is updated in real time based on the current time; in response to a timing termination event of the timer, in the session page Canceling presentation of the second countdown information.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the releasing the friend relationship includes: releasing the friendship relationship, and presenting information about releasing the friendship relationship to the first user and/or the second user.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the releasing the friend relationship, and presenting the information about releasing the friendship relationship to the first user and/or the second user includes: releasing the friendship relationship, and presenting the information about the disconnection of the friendship relationship to the first user and/or the second user.
  • the first user and/or the second user presents information about the cancellation of the friend relationship, and detects whether the first user and the second user are currently presenting the session page corresponding to the session, and if so, automatically exits the session page.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not described again, but are incorporated herein by reference.
  • the device is further configured to: in the timing process of the timer , in response to the opening operation performed by the first user or the second user on the session page corresponding to the session, perform at least one of the following operations: reset and restart the timer; change the timer The corresponding timing duration, wherein the timing duration after modification is greater than the timing duration before modification.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the canceling the presentation of the session, and/or canceling the friend relationship includes: canceling the presentation of the session, and/or canceling the friend relationship, and recording the expiration date corresponding to the friend relationship Automatic processing information, wherein the expired automatic processing information includes the establishment time of the friend relationship, the automatic processing event type corresponding to the friend relationship, the processing time corresponding to the automatic processing event, and the identification information of the first user. , at least one of the identification information of the second user, the identification information of the session, and the timing duration corresponding to the timer.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • the first device is the first user device used by the first user or the second user device used by the second user; wherein the device is further configured to: automatically respond to expiration Processing an information upload initiation event, and uploading one or more expired automatic processing information corresponding to one or more friend relationships currently recorded by the first device to the network device.
  • the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
  • FIG. 3 illustrates an exemplary system that may be used to implement various embodiments described in this application.
  • system 300 can function as any of the devices in each of the described embodiments.
  • system 300 may include one or more computer-readable media (eg, system memory or NVM/storage device 320 ) having instructions and be coupled to the one or more computer-readable media and configured to execute Instructions to implement a module to perform one or more processors (eg, processor(s) 305 ) to perform the actions described herein.
  • processors eg, processor(s) 305
  • system control module 310 may include any suitable interface controller to provide at least one of the processor(s) 305 and/or any suitable device or component in communication with the system control module 310 any appropriate interface.
  • the system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315 .
  • the memory controller module 330 may be a hardware module, a software module, and/or a firmware module.
  • System memory 315 may be used, for example, to load and store data and/or instructions for system 300 .
  • system memory 315 may include any suitable volatile memory, eg, suitable DRAM.
  • system memory 315 may include double data rate type quad synchronous dynamic random access memory (DDR4 SDRAM).
  • system control module 310 may include one or more input/output (I/O) controllers to provide interfaces to NVM/storage device 320 and communication interface(s) 325 .
  • I/O input/output
  • NVM/storage device 320 may be used to store data and/or instructions.
  • NVM/storage device 320 may include any suitable non-volatile memory (eg, flash memory) and/or may include any suitable non-volatile storage device(s) (eg, one or more hard drives ( HDD), one or more compact disc (CD) drives and/or one or more digital versatile disc (DVD) drives).
  • HDD hard drives
  • CD compact disc
  • DVD digital versatile disc
  • NVM/storage device 320 may include storage resources that are physically part of the device on which system 300 is installed, or it may be accessed by the device without necessarily being part of the device.
  • the NVM/storage device 320 is accessible via the communication interface(s) 325 over a network.
  • Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and/or with any other suitable device.
  • System 300 may wirelessly communicate with one or more components of a wireless network in accordance with any of one or more wireless network standards and/or protocols.
  • At least one of the processor(s) 305 may be packaged with the logic of one or more controllers of the system control module 310 (eg, memory controller module 330). For one embodiment, at least one of the processor(s) 305 may be packaged with logic of one or more controllers of the system control module 310 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with the logic of one or more controllers of the system control module 310 . For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic of one or more controllers of the system control module 310 to form a system on a chip (SoC).
  • SoC system on a chip
  • system 300 may be, but is not limited to, a server, workstation, desktop computing device, or mobile computing device (eg, laptop computing device, handheld computing device, tablet computer, netbook, etc.). In various embodiments, system 300 may have more or fewer components and/or different architectures. For example, in some embodiments, system 300 includes one or more cameras, keyboards, liquid crystal display (LCD) screens (including touchscreen displays), non-volatile memory ports, multiple antennas, graphics chips, application specific integrated circuits ( ASIC) and speakers.
  • LCD liquid crystal display
  • ASIC application specific integrated circuits
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores computer code, and when the computer code is executed, the method described in any preceding item is executed.
  • the present application also provides a computer program product, when the computer program product is executed by a computer device, the method according to any one of the preceding items is executed.
  • the present application also provides a computer device, the computer device comprising:
  • processors one or more processors
  • memory for storing one or more computer programs
  • the one or more computer programs when executed by the one or more processors, cause the one or more processors to implement the method of any preceding item.
  • the present application may be implemented in software and/or a combination of software and hardware, eg, an application specific integrated circuit (ASIC), a general purpose computer, or any other similar hardware device.
  • the software program of the present application may be executed by a processor to implement the steps or functions described above.
  • the software programs of the present application (including associated data structures) may be stored on a computer-readable recording medium, such as RAM memory, magnetic or optical drives or floppy disks, and the like.
  • some steps or functions of the present application may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
  • a part of the present application can be applied as a computer program product, such as computer program instructions, which when executed by a computer, through the operation of the computer, can invoke or provide methods and/or technical solutions according to the present application.
  • Those skilled in the art should understand that the existing forms of computer program instructions in computer-readable media include but are not limited to source files, executable files, installation package files, etc.
  • the ways in which computer program instructions are executed by a computer include but are not limited to Limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding post-installation program. program.
  • the computer-readable medium can be any available computer-readable storage medium or communication medium that can be accessed by a computer.
  • Communication media includes media by which communication signals containing, for example, computer readable instructions, data structures, program modules or other data are transmitted from one system to another.
  • Communication media may include conducted transmission media such as cables and wires (eg, fiber optic, coaxial, etc.) and wireless (unconducted transmission) media capable of propagating energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared .
  • Computer readable instructions, data structures, program modules or other data may be embodied, for example, as a modulated data signal in a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology.
  • modulated data signal refers to a signal whose one or more characteristics are altered or set in a manner that encodes information in the signal. Modulation can be analog, digital or hybrid modulation techniques.
  • computer-readable storage media may include volatile and non-volatile, readable storage media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Removable and non-removable media.
  • computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM) , EEPROM), magnetic and ferromagnetic/ferroelectric memory (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, tapes, CDs, DVDs); or other media now known or later developed capable of storing data for computer systems Computer readable information/data used.
  • volatile memory such as random access memory (RAM, DRAM, SRAM
  • non-volatile memory such as flash memory, various read-only memories (ROM, PROM, EPROM) , EEPROM), magnetic and ferromagnetic/ferroelectric memory (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, tapes, CDs, DVDs); or other media now known or later developed capable of storing data for computer systems Computer readable information/data used.
  • an embodiment according to the present application includes an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, a trigger is
  • the apparatus operates based on the aforementioned methods and/or technical solutions according to various embodiments of the present application.
  • a method for canceling a friend relationship, applied to a first device comprising:
  • the timer Before the timer reaches the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the When the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
  • timing duration includes a first timing duration and a second timing duration, the first timing duration being less than the second timing duration
  • the timer is terminated in response to a session interaction event corresponding to the session between the first user and the second user before the timer reaches the timing corresponding to the timer; Otherwise, if the timer reaches the timing corresponding to the timer, cancel the presentation of the session, and/or cancel the friend relationship, including:
  • the timer Before the timer reaches the first timing duration, in response to a session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timing When the timer reaches the first timing duration, the session is cancelled and the timing is continued;
  • the timer Before the timer reaches the second timing duration, in response to a session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timing When the timer reaches the second time period, the friend relationship is released.
  • the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, and if so, a timer for the friend relationship is started.
  • a friend relationship establishment event between two users is automatically initiated by the network device
  • the user initiates a friend relationship establishment event with other users by finding nearby people;
  • a friend relationship establishment event with other users is initiated by the user through the stranger adding friend channel.
  • the channel source type corresponding to the friend relationship establishment event includes the first channel source type and the first channel source type that the first user requests to add the second user as a friend.
  • the second user requests to add a second channel source type used by the first user as a friend, and the first channel source type is different from the second channel source type;
  • the channel corresponding to the friend relationship establishment event is detected in response to the friend relationship establishment event between the first user and the second user Whether the source type is the predetermined channel source type, if so, start the timer for the friend relationship, including:
  • the first user In response to a friend relationship establishment event between the first user and the second user, detect whether the source type of the first channel is a predetermined channel source type, and if so, start a corresponding connection to the friend for the first user. the first timer of the relationship;
  • the first device is a second user device used by the second user, in response to a friend relationship establishment event between the first user and the second user, detect the channel source type corresponding to the friend relationship establishment event Whether it is a predetermined channel source type, if so, start a timer for the friend relationship, including:
  • relationship timer In response to a friend relationship establishment event between the first user and the second user, detect whether the source type of the second channel is a predetermined channel source type, and if so, start a corresponding connection to the friend for the second user. relationship timer;
  • the first device in response to a friend relationship establishment event between the first user and the second user, detect whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, and if so, Starting a timer for the friend relationship, including:
  • the first channel source type and the second channel source type are predetermined channel source types, if both are predetermined Channel source type, start the timer for the friend relationship; if only one of the two is a predetermined channel source type, only start the timer for the friend relationship corresponding to the user associated with the one, to When the timer reaches its corresponding timing period, the session is simply cancelled, or no operation is performed.
  • send a timer start request to the network device receive the command information fed back by the network device for the timer start request, and if the command information indicates that the timer is allowed to start, start the first user corresponding to the timer start request.
  • the first timer of the friendship relationship wherein the network device determines the instruction information by detecting whether the second channel source type is a predetermined channel source type, if the second channel source type is a predetermined channel source type, the The instruction information indicates to start the first timer, otherwise, the instruction information indicates not to start the first timer.
  • send a timer start request to the network device receive the command information fed back by the network device for the timer start request, and if the command information indicates that the timer is allowed to start, start the second user corresponding to the timer start request.
  • a second timer for friendship wherein the network device determines the instruction information by detecting whether the first channel source type is a predetermined channel source type, and if the first channel source type is a predetermined channel source type, the The instruction information indicates to start the second timer, otherwise, the instruction information indicates not to start the second timer.
  • the friend application source type corresponding to the friend relationship establishment event is a predetermined friend application source type, and if so, according to the friend relationship configuration corresponding to the friend relationship.
  • the information determines whether the automatic expiration processing function is currently enabled, and if so, starts a timer for the friend relationship.
  • the friend relationship configuration information is determined based on at least one of the following:
  • the historical session interaction frequency information of the first user and the historical session interaction frequency information of the second user are combined.
  • the timer is terminated in response to a first switching event in which the state indicated by the buddy relationship configuration information is switched from turning on the automatic overdue processing function on to turning off the automatic overdue processing function.
  • the timer In response to a timing duration change event corresponding to the friend relationship configuration information, the timer is reset and restarted according to the changed timing duration.
  • the method also includes:
  • the session between the first user and the second user In response to the upgrade completion event of upgrading from the historical version to the current version, if the session between the first user and the second user has not generated any historical session interaction event, detect the first user and the second user. Whether the absolute value of the time interval between the friend relationship establishment time and the current time corresponding to the friend relationship between users is greater than or equal to the timing duration, if so, cancel the presentation of the session, and/or cancel the friend relationship.
  • a timer for the friend relationship is started, wherein the start time of the timer is the current time.
  • the session is presented by a first presentation mode, wherein the first presentation mode is different from the second presentation mode corresponding to other sessions whose timers have not been started;
  • the session is updated and presented by the second presentation manner in response to the expiration event of the timer.
  • the first presentation manner comprises presenting, in a display area of the session, first countdown information determined according to the current time and the timing duration, wherein the first countdown Information is updated in real time based on the current time.
  • the session page is displayed in the session page determined according to the current time and the timing duration.
  • the second countdown information wherein the second countdown information is updated in real time based on the current time;
  • the second countdown information is de-presented in the session page in response to a countdown event of the timer.
  • the method also includes:
  • the timing duration corresponding to the timer is changed, wherein the timing duration after the modification is greater than the timing duration before the modification.
  • the expired automatic processing information includes the establishment time of the friend relationship and the corresponding The type of automatic processing event, the processing time corresponding to the automatic processing event, the identification information of the first user, the identification information of the second user, the identification information of the session, and the timing duration corresponding to the timer. at least one of.
  • the method also includes:
  • One or more expired automatic processing information corresponding to one or more friend relationships currently recorded by the first device is uploaded to the network device in response to the event of uploading the expired automatic processing information.
  • a device for canceling a friendship characterized in that the device comprises:
  • a memory arranged to store computer-executable instructions which, when executed, cause the processor to perform a method as described in any of clauses 1 to 25.
  • a computer-readable medium storing instructions that, when executed by a computer, cause the computer to operate the method of any of clauses 1 to 25.
  • a computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method according to any one of clauses 1 to 25.

Abstract

An objective of the present application is to provide a method for removing a friend relationship. The method comprises: in response to a friend relationship building event between a first user and a second user, starting a timer for the friend relationship; and before the timer reaches a timing duration corresponding to the timer, in response to a session interaction event corresponding to a session between the first user and the second user, terminating the timer; otherwise, if the timer reaches the timing duration corresponding to the timer, cancelling the presentation of the session, and/or, removing the friend relationship. In the present application, when no session interaction event occurs after the friend relationship is established between two users, the session between the two users is automatically hidden and/or the friend relationship of the two users is removed, such that social application interfaces of the users are more refreshing, the social efficiency and the social experience of the users can be greatly improved, and the communication security between the users can also be ensured.

Description

一种解除好友关系的方法与设备A method and device for canceling a friendship
本申请是以CN申请号为202011441498.7,申请日为2020.12.11的申请为基础,并主张其优先权,该CN申请的公开内容在此作为整体引入本申请中This application is based on the application with the CN application number of 202011441498.7 and the filing date of 2020.12.11, and claims its priority. The disclosure content of the CN application is hereby incorporated into this application as a whole.
技术领域technical field
本申请涉及通信领域,尤其涉及一种用于解除好友关系的技术。The present application relates to the field of communications, and in particular, to a technology for canceling a friendship.
背景技术Background technique
随着时代的发展,移动终端的使用越来越广泛,极大的扩展了人们的社交范围,人们开始越来越多地使用移动终端上的社交应用与他人进行通信,使得用户可以通过社交应用随时随地与好友进行交流。在社交应用中,一旦两个用户之间的好友关系建立,用户仅能人工解除该好友关系,否则,该好友关系将一直保留。With the development of the times, the use of mobile terminals has become more and more extensive, which greatly expands the scope of people's social interaction. People begin to use more and more social applications on mobile terminals to communicate with others, so that users can use social applications Communicate with friends anytime, anywhere. In a social application, once a friend relationship between two users is established, the user can only manually cancel the friend relationship, otherwise, the friend relationship will remain forever.
发明内容SUMMARY OF THE INVENTION
本申请的一个目的是提供一种解除好友关系的方法与设备。An object of the present application is to provide a method and device for canceling a friend relationship.
根据本申请的一个方面,提供了一种解除好友关系的方法,该方法包括:According to one aspect of the present application, there is provided a method for canceling a friend relationship, the method comprising:
响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器;In response to a friend relationship establishment event between the first user and the second user, starting a timer for the friend relationship;
在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系。Before the timer reaches the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the When the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
根据本申请的一个方面,提供了一种解除好友关系的第一设备,该设备包括:According to an aspect of the present application, a first device for canceling a friend relationship is provided, and the device includes:
一一模块,用于响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器;1. A module, configured to start a timer for the friend relationship in response to a friend relationship establishment event between the first user and the second user;
一二模块,用于在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述 好友关系。Modules 1 and 2 are configured to terminate the timer in response to a session interaction event corresponding to the session between the first user and the second user before the timer reaches the timer duration corresponding to the timer. Otherwise, if the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
根据本申请的一个方面,提供了一种解除好友关系的设备,其中,该设备包括:According to an aspect of the present application, there is provided a device for canceling a friend relationship, wherein the device includes:
处理器;以及processor; and
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如下操作:memory arranged to store computer-executable instructions which, when executed, cause the processor to:
响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器;In response to a friend relationship establishment event between the first user and the second user, starting a timer for the friend relationship;
在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系。Before the timer reaches the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the When the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
根据本申请的一个方面,提供了一种存储指令的计算机可读介质,所述指令在被执行时使得系统进行如下操作:According to one aspect of the present application, there is provided a computer-readable medium storing instructions that, when executed, cause a system to:
响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器;In response to a friend relationship establishment event between the first user and the second user, starting a timer for the friend relationship;
在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系。Before the timer reaches the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the When the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
与现有技术相比,本申请能够响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器,进而在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件终止所述定时器,否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系,从而能够在两个用户之间建立好友关系后过期未发生任何会话交互事件时,自动隐藏该两个用户之间的会话和/或自动解除该两个用户之间的好友关系,能够使得用户的社交应用界面更加清爽,可以大大提高用户的社交效率和社交体验,还能够保障用户之间交往的安全性。Compared with the prior art, the present application can start a timer for the friend relationship in response to a friend relationship establishment event between the first user and the second user, and then reach the timer corresponding to the timer when the timer counts. Before the timer duration, the timer is terminated in response to the session interaction event corresponding to the session between the first user and the second user, otherwise, if the timer reaches the timer duration corresponding to the timer , cancel the presentation of the session, and/or, cancel the friend relationship, so as to be able to automatically hide the session between the two users and/or when no session interaction event occurs after the establishment of the friend relationship between the two users. Or automatically cancel the friend relationship between the two users, which can make the user's social application interface more refreshing, can greatly improve the user's social efficiency and social experience, and can also ensure the safety of communication between users.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1示出根据本申请一个实施例的一种删除好友申请的方法流程图;1 shows a flowchart of a method for deleting a friend application according to an embodiment of the present application;
图2示出根据本申请一个实施例的一种删除好友申请的第一用户设备结构图;2 shows a structural diagram of a first user equipment for deleting a friend application according to an embodiment of the present application;
图3示出可被用于实施本申请中所述的各个实施例的示例性系统。3 illustrates an exemplary system that may be used to implement various embodiments described in this application.
附图中相同或相似的附图标记代表相同或相似的部件。The same or similar reference numbers in the drawings represent the same or similar parts.
具体实施方式Detailed ways
下面结合附图对本申请作进一步详细描述。The present application will be described in further detail below with reference to the accompanying drawings.
在本申请一个典型的配置中,终端、服务网络的设备和可信方均包括一个或多个处理器(例如,中央处理器(Central Processing Unit,CPU))、输入/输出接口、网络接口和内存。In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party all include one or more processors (for example, a central processing unit (CPU)), an input/output interface, a network interface, and Memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(Random Access Memory,RAM)和/或非易失性内存等形式,如只读存储器(Read Only Memory,ROM)或闪存(Flash Memory)。内存是计算机可读介质的示例。Memory may include non-persistent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read only memory (ROM) or flash memory ( Flash Memory). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(Phase-Change Memory,PCM)、可编程随机存取存储器(Programmable Random Access Memory,PRAM)、静态随机存取存储器(Static Random-Access Memory,SRAM)、动态随机存取存储器(Dynamic Random Access Memory,DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能光盘(Digital Versatile Disc,DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory (Static Random-Access Memory, SRAM), Dynamic Random Access Memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically-Erasable Programmable Read -Only Memory, EEPROM), flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD), or other optical storage , magnetic tape cartridges, magnetic tape-disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
本申请所指设备包括但不限于用户设备、网络设备、或用户设备与网络设备通过网络相集成所构成的设备。所述用户设备包括但不限于任何一种可与用户进行人机交互(例如通过触摸板进行人机交互)的移动电子产品,例如智能手机、平板电脑等,所述移动电子产品可以采用任意操作系统,如Android操作系统、iOS操作系统等。其中,所述网络设备包括一种能够按照事先设定或存储的指令,自动进行 数值计算和信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑器件(Programmable Logic Device,PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、数字信号处理器(Digital Signal Processor,DSP)、嵌入式设备等。所述网络设备包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云;在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个虚拟超级计算机。所述网络包括但不限于互联网、广域网、城域网、局域网、VPN网络、无线自组织网络(Ad Hoc网络)等。优选地,所述设备还可以是运行于所述用户设备、网络设备、或用户设备与网络设备、网络设备、触摸终端或网络设备与触摸终端通过网络相集成所构成的设备上的程序。The equipment referred to in this application includes, but is not limited to, user equipment, network equipment, or equipment formed by integrating user equipment and network equipment through a network. The user equipment includes, but is not limited to, any mobile electronic product that can perform human-computer interaction with the user (for example, human-computer interaction through a touchpad), such as a smart phone, a tablet computer, etc., and the mobile electronic product can use any operation. system, such as Android operating system, iOS operating system, etc. Wherein, the network device includes an electronic device that can automatically perform numerical calculation and information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASICs) ), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded devices, etc. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud formed by a plurality of servers; here, the cloud is formed by a large number of computers or network servers based on cloud computing, Among them, cloud computing is a kind of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets. The network includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless ad hoc network (Ad Hoc network), and the like. Preferably, the device may also be a program running on the user equipment, network equipment, or a device formed by user equipment and network equipment, network equipment, touch terminal or network equipment and touch terminal integrated through a network.
当然,本领域技术人员应能理解上述设备仅为举例,其他现有的或今后可能出现的设备如可适用于本申请,也应包含在本申请保护范围以内,并在此以引用方式包含于此。Of course, those skilled in the art should understand that the above-mentioned devices are only examples, and other existing or possible devices that may appear in the future, if applicable to this application, should also be included within the protection scope of this application, and are included in this application by reference. this.
在本申请的描述中,“多个”的含义是两个或者更多,除非另有明确具体的限定。In the description of this application, "plurality" means two or more, unless expressly and specifically defined otherwise.
图1示出根据本申请一个实施例的一种解除好友关系的方法流程图,该方法包括步骤S11和步骤S12。在步骤S11中,第一设备响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器;在步骤S12中,第一设备在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系。FIG. 1 shows a flowchart of a method for canceling a friend relationship according to an embodiment of the present application, and the method includes step S11 and step S12. In step S11, the first device starts a timer for the friend relationship in response to the event of establishing a friend relationship between the first user and the second user; in step S12, the first device starts the timer for the friend relationship when the timer expires. Before the timing corresponding to the timer, the timer is terminated in response to a session interaction event corresponding to the session between the first user and the second user; otherwise, if the timer reaches the According to the time duration corresponding to the timer, the session is canceled, and/or the friend relationship is canceled.
在步骤S11中,第一设备响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器。在一些实施例中,第一设备可以是网络设备(服务器),也可以是第一用户使用的第一用户设备,还可以是第二用户使用的第二用户设备。在一些实施例中,可以是第一用户或第二用户主动发起请求添加对方为好友的好友申请,在对方确认通过后,触发好友关系建立事件。在一些实施例中,还可以是服务器为第一用户或第二用户自动发起请求添加对方为好友的好友申请,在 对方确认通过后,触发好友关系建立事件。在一些实施例中,还可以是第一用户主动发起请求添加第二用户为好友的好友申请,第二用户也主动发起请求添加第二用户为好友的好友申请,在任意一方确认通过后,触发好友关系建立事件。在一些实施例中,还可以是第一用户主动发起请求添加第二用户为好友的好友申请,服务器为第二用户自动发起请求添加第一用户为好友的好友申请,触发好友关系建立事件。在一些实施例中,若第一设备为服务器,则在服务器中启动针对该好友关系的定时器,若第一设备为第一用户设备或第二用户设备,则在第一用户设备本地或第二用户设备本地启动针对该好友关系的定时器,此时,第一用户设备上的定时器可以与第二用户设备上的定时器保持同步,也可以互相独立。在一些实施例中,若第一设备为服务器,则定时器的定时时长由服务器配置,服务器的维护人员或使用人员可以根据需要进行修改,若第一设备为第一用户设备或第二用户设备,则定时器的定时时长可以由第一用户设备本地或第二用户设备本地配置,第一用户或第二用户可以根据自己需要进行修改,或者,定时器的定时时长还可以由服务器配置并提供给第一用户设备或第二用户设备,服务器的维护人员或使用人员可以根据需要进行修改,并将更新后的定时时长提供给第一用户设备或第二用户设备。In step S11, the first device starts a timer for the friend relationship in response to a friend relationship establishment event between the first user and the second user. In some embodiments, the first device may be a network device (server), a first user equipment used by a first user, or a second user equipment used by a second user. In some embodiments, the first user or the second user may actively initiate a request to add a friend application of the other party as a friend, and after the other party confirms and passes, a friend relationship establishment event is triggered. In some embodiments, the server may automatically initiate a request for adding a friend application for the first user or the second user to be a friend, and after the other party confirms and passes, trigger a friend relationship establishment event. In some embodiments, the first user may also actively initiate a request to add a friend application of the second user as a friend, and the second user may also initiate a request to add a friend application of the second user as a friend. Friendship building event. In some embodiments, the first user may actively initiate a request to add a friend application of the second user as a friend, and the server may automatically initiate a request for the second user to add a friend application of the first user as a friend, triggering a friend relationship establishment event. In some embodiments, if the first device is a server, a timer for the friend relationship is started in the server, and if the first device is the first user equipment or the second user equipment, the first user equipment local or second user equipment The second user equipment locally starts a timer for the friend relationship. At this time, the timer on the first user equipment may be synchronized with the timer on the second user equipment, or may be independent of each other. In some embodiments, if the first device is a server, the timing of the timer is configured by the server, and the maintenance personnel or users of the server can modify it as needed. If the first device is the first user equipment or the second user equipment , the timing of the timer can be configured locally by the first user equipment or locally by the second user equipment, and the first user or the second user can modify it according to their own needs, or the timing of the timer can also be configured and provided by the server. For the first user equipment or the second user equipment, the maintenance personnel or users of the server can make modifications as needed, and provide the updated timing duration to the first user equipment or the second user equipment.
在步骤S12中,第一设备在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系。在一些实施例中,在定时器计时达到定时时长前,若第一用户与第二用户之间的会话发生了会话交互事件,则终止并删除该定时器。在一些实施例中,会话交互事件包括但不限于会话中的任意一方在会话中发送了会话消息、发起了语音或视频通话、发送了位置信息、发起了共享实时位置、发送了红包、发起了转账、发送了文件、名片、卡券等其他各种交互信息。在一些实施例中,若该定时器计时达到定时时长,删除该定时器,在会话列表页面或历史会话页面取消呈现第一用户与第二用户之间的会话或解除第一用户或第二用户之间的好友关系,或者,还可以是取消呈现会话并解除好友关系。在一些实施例中,若第一设备为第一用户设备或第二用户设备,直接取消呈现会话即可,解除好友关系需要发送好友解除请求给服务器,由服务器来解除好友关系,若第一设备为服务器,直接解除好友关系即可,取消呈现会话需要发送用于指示取消呈现会话的指示信息给 第一用户设备或第二用户设备,由第一用户设备或第二用户设备来取消呈现会话。在一些实施例中,第一用户或第二用户在会话列表页面或历史会话页面取消呈现第一用户与第二用户之间的会话后,可以通过在联系人页面或通讯录页面查找第一用户或第二用户,来打开第一用户与第二用户之间的会话,进入对应的会话页面。本申请通过在两个用户之间建立好友关系后过期未发生任何会话交互事件时,自动隐藏该两个用户之间的会话和/或解除该两个用户之间的好友关系,能够使得用户的社交应用界面更加清爽,可以大大提高用户的社交效率和社交体验,还能够保障用户之间交往的安全性。In step S12, the first device terminates the session interaction event corresponding to the session between the first user and the second user before the timer reaches the timing corresponding to the timer. the timer; otherwise, if the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled. In some embodiments, if a session interaction event occurs in the session between the first user and the second user before the timer counts up to a predetermined duration, the timer is terminated and deleted. In some embodiments, session interaction events include, but are not limited to, any party in the session sending a session message, initiating a voice or video call, sending location information, initiating a shared real-time location, sending a red envelope, initiating a Transfers, sent documents, business cards, cards and coupons and other interactive information. In some embodiments, if the timer expires, the timer is deleted, and the session between the first user and the second user is cancelled or the first user or the second user is cancelled on the session list page or the history session page. Friendship between them, or, it can also be to cancel the presentation session and unfriend the relationship. In some embodiments, if the first device is the first user equipment or the second user equipment, the presentation session can be cancelled directly. To cancel the friend relationship, a friend unfriend request needs to be sent to the server, and the server will cancel the friend relationship. If the first device For the server, it is enough to directly cancel the friend relationship. To cancel the presence session, you need to send instruction information for indicating cancellation of the presence session to the first user equipment or the second user equipment, and the first user equipment or the second user equipment cancels the presence session. In some embodiments, after the first user or the second user cancels the presentation of the conversation between the first user and the second user on the conversation list page or the historical conversation page, the first user can be searched for the first user on the contact page or the address book page. Or the second user to open the session between the first user and the second user, and enter the corresponding session page. The present application can automatically hide the session between the two users and/or cancel the friend relationship between the two users when no session interaction event occurs after the establishment of a friend relationship between the two users, so that the user's The interface of social applications is more refreshing, which can greatly improve the social efficiency and social experience of users, and can also ensure the safety of communication between users.
在一些实施例中,所述定时时长包括第一定时时长及第二定时时长,所述第一定时时长小于所述第二定时时长;其中,所述步骤S12包括:第一设备在所述定时器计时达到所述第一定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述第一定时时长,取消呈现所述会话并继续计时;在所述定时器计时达到所述第二定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述第二定时时长,解除所述好友关系。在一些实施例中,定时时长包括第一定时时长及第二定时时长,第一定时时长小于第二定时时长,在定时器计时达到第一定时时长前,若第一用户与第二用户之间的会话发生了会话交互事件,则终止并删除该定时器,否则,在该定时器计时达到第一定时时长时,在会话列表页面或历史会话页面取消呈现第一用户与第二用户之间的会话并继续计时,在定时器计时达到第二定时时长前,若第一用户与第二用户之间的会话发生了会话交互事件,则终止并删除该定时器,否则,在该定时器计时达到第一定时时长时,删除该定时器,并解除第一用户与第二用户之间的好友关系。In some embodiments, the timing duration includes a first timing duration and a second timing duration, and the first timing duration is smaller than the second timing duration; wherein, the step S12 includes: the first device is at the timing Before the timer reaches the first timing duration, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timer reaches the predetermined duration the first timing duration, cancel the presentation of the session and continue timing; before the timer reaches the second timing duration, in response to the session corresponding to the session between the first user and the second user If the interaction event occurs, the timer is terminated; otherwise, if the timer reaches the second time period, the friend relationship is cancelled. In some embodiments, the timing duration includes a first timing duration and a second timing duration, the first timing duration is less than the second timing duration, and before the timer reaches the first timing duration, if there is a gap between the first user and the second user If a session interaction event occurs in the session, the timer is terminated and deleted; otherwise, when the timer reaches the first time duration, the session list page or the history session page will cancel the presentation of the interaction between the first user and the second user. Session and continue to count, before the timer reaches the second timing, if a session interaction event occurs in the session between the first user and the second user, the timer is terminated and deleted, otherwise, the timer expires When the first time period is long, the timer is deleted, and the friend relationship between the first user and the second user is cancelled.
在一些实施例中,所述步骤S11包括步骤S111(未示出)。在步骤S111中,第一设备响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器。在一些实施例中,需要检测好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,才会启动针对第一用户与第二用户之间好友关系的定时器,否则,并不会启动定时器。在一些实施例中,好友关系建立事件对应的通道来源类型用于表征第一用户及第二用户是通过什么通道来源建立的好友关系, 通道来源包括但不限于陌生人通道来源及熟人通道来源,陌生人通道是指双方在建立好友关系的时候并不认识,熟人通道是指双方在建立好友福安息的时候已经认识,例如,第一用户是在“附近的人”通道看到的第二用户,然后向第二用户发出了添加好友请求,这里的“附近的人”通道就是陌生人通道,又例如,第一用户是在手机通讯录通道看到的第二用户,然后向第二用户发出了添加好友请求,这里的手机通讯录通道就是熟人通道,由于通过熟人通道建立的好友关系,通常都有具有保留的价值和意义,因此不会对通过熟人通道建立的好友关系启动对应的定时器,只会对通过陌生人通道建立的好友关系启动对应的定时器。In some embodiments, the step S11 includes step S111 (not shown). In step S111, in response to a friend relationship establishment event between the first user and the second user, the first device detects whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, and if so, initiates a response to the friend relationship establishment event. Friendship timer. In some embodiments, it is necessary to detect whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type. If so, the timer for the friend relationship between the first user and the second user will be started; Start the timer. In some embodiments, the channel source type corresponding to the friend relationship establishment event is used to represent the channel source through which the first user and the second user established the friend relationship. The channel source includes but is not limited to the stranger channel source and the acquaintance channel source, The stranger channel means that the two parties did not know each other when they established the friendship, and the acquaintance channel means that the two parties already knew each other when they established the friendship. For example, the first user is the second user seen in the "Nearby People" channel. , and then send a friend request to the second user, where the "Nearby People" channel is the stranger channel. For another example, the first user is the second user seen in the mobile phone address book channel, and then sends a message to the second user. In order to add a friend request, the mobile phone address book channel here is the acquaintance channel. Since the friend relationship established through the acquaintance channel usually has reserved value and significance, the corresponding timer will not be started for the friend relationship established through the acquaintance channel. , will only start the corresponding timer for the friendship established through the stranger channel.
在一些实施例中,所述预定通道来源类型包括但不限于:In some embodiments, the predetermined channel source types include, but are not limited to:
1)由网络设备自动发起两个用户之间的好友关系建立事件1) A friend relationship establishment event between two users is automatically initiated by the network device
在一些实施例中,服务器自动帮第一用户或第二用户发起请求添加第二用户或第一用户为好友的好友申请,在对方确认通过后,第一用户与第二用户之间建立好友关系。例如,服务器自动确定推荐给第二用户的一个或多个用户,该一个或多个用户中包括第一用户,然后自动帮第二用户发起请求添加该一个或多个用户为好友的好友申请。In some embodiments, the server automatically initiates a friend application for the first user or the second user to request to add the second user or the first user as a friend. After the other party confirms and approves, a friend relationship is established between the first user and the second user. . For example, the server automatically determines one or more users recommended to the second user, and the one or more users include the first user, and then automatically initiates a friend application for the second user to request to add the one or more users as friends.
2)由用户通过查找附近的人发起与其他用户之间的好友关系建立事件2) The user initiates a friend relationship establishment event with other users by finding nearby people
在一些实施例中,第一用户通过“附近的人”通道看到第二用户,然后向第二用户发出了添加好友请求,在第二用户确认通过后,第一用户与第二用户之间建立好友关系。In some embodiments, the first user sees the second user through the "Nearby People" channel, and then sends a friend request to the second user. Build friendships.
3)由用户通过陌生人加友通道发起与其他用户之间的好友关系建立事件3) The user initiates a friend relationship establishment event with other users through the stranger adding friend channel
在一些实施例中,第一用户通过除“附近的人”通道以外的其他任何陌生人加友通道(例如,“热聊”通道、“消息树”通道、“看对眼”通道等)看到第二用户,然后向第二用户发出了添加好友请求,在第二用户确认通过后,第一用户与第二用户之间建立好友关系。In some embodiments, the first user views through any stranger adding channel other than the "people nearby" channel (eg, "hot chat" channel, "message tree" channel, "see eye to eye" channel, etc.) to the second user, and then a friend request is sent to the second user, and after the second user's confirmation is passed, a friend relationship is established between the first user and the second user.
在一些实施例中,所述好友关系建立事件对应的通道来源类型包括所述第一用户请求添加所述第二用户为好友所使用的第一通道来源类型及所述第二用户请求添加所述第一用户为好友所使用的第二通道来源类型,所述第一通道来源类型区别于所述第二通道来源类型;其中,若所述第一设备为所述第一用户使用的第一用户设备,所述步骤S111包括:第一设备响应于所述第一用户与所述第二用户之间的 好友关系建立事件,检测所述第一通道来源类型是否为预定通道来源类型,若是,启动所述第一用户对应的针对所述好友关系的第一定时器;若所述第一设备为所述第二用户使用的第二用户设备,所述步骤S111包括:第一设备响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第二通道来源类型是否为预定通道来源类型,若是,启动所述第二用户对应的针对所述好友关系的定时器;若所述第一设备为网络设备,所述步骤S111包括:第一设备响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第一通道来源类型及所述第二通道来源类型是否为预定通道来源类型,若两者均为预定通道来源类型,启动针对所述好友关系的定时器;若两者中仅其中一者为预定通道来源类型,仅启动该其中一者所关联的用户对应的针对所述好友关系的定时器,以当该定时器计时达到其对应的定时时长时仅取消呈现所述会话,或者,不执行任何操作。在一些实施例中,若第一用户请求添加第二用户为好友所使用的第一通道来源类型与第二用户请求添加第一用户为好友所使用的第二通道来源类型不同,则对于第一用户与第二用户之中的每个用户,若第一设备为第一用户设备或第二用户设备,需要单独判断该用户对应的通道来源类型是否为预定通道来源类型,若是,在第一用户设备上或第二用户设备上启动该用户对应的针对第一用户与第二用户之间的好友关系的定时器。例如,第一用户是在“附近的人”通道看到的第二用户,然后向第二用户发出了添加好友请求,“附近的人”通道是陌生人通道,第二用户是在手机通讯录通道看到的第一用户,然后向第一用户发出了添加好友请求,手机通讯录通道是熟人通道,在第一用户及第二用户中的任意一方确认通过对方发出的添加好友请求之后,双方建立好友关系,第一用户对应的通道来源类型与第二用户对应的通道来源类型并不相同,对于第一用户而言,第二用户是其通过陌生人通道添加的好友,而对于第二用户而言,第一用户是其通过熟人通道添加的好友。在一些实施例中,若第一设备为服务器,需要综合判断第一用户对应的通道来源类型及第二用户对应的通道来源类型是否满足预定通道来源类型,若两者均满足,则正常启动针对第一用户与第二用户之间好友关系的定时器,若两者均不满足,则不会启动定时器,后续不执行任何操作,若两者中仅有其中一者满足,可以不启动定时器,后续不执行任何操作,也可以仅启动该其中一者所关联的用户对应的针对该好友关系的定时器,而不会启动两者中的另外一者所关联的用户对应的针对该好友关系的定时器,该启动的定时器 会在计时达到其对应的定时时长时仅触发取消呈现第一用户与第二用户之间的会话,而不会触发解除第一用户与第二用户之间的好友关系。In some embodiments, the channel source type corresponding to the friend relationship establishment event includes a request by the first user to add a first channel source type used by the second user as a friend and a request by the second user to add the channel source type. The source type of the second channel used by the first user as a friend, the source type of the first channel is different from the source type of the second channel; wherein, if the first device is the first user used by the first user device, the step S111 includes: the first device, in response to a friend relationship establishment event between the first user and the second user, detects whether the first channel source type is a predetermined channel source type, and if so, starts the first timer for the friend relationship corresponding to the first user; if the first device is the second user device used by the second user, the step S111 includes: the first device responds to the A friend relationship establishment event between the first user and the second user, to detect whether the source type of the second channel is a predetermined channel source type, and if so, start the timer corresponding to the second user for the friend relationship ; If the first device is a network device, the step S111 includes: the first device, in response to a friend relationship establishment event between the first user and the second user, detects the source type of the first channel and Whether the second channel source type is the predetermined channel source type, if both are the predetermined channel source type, start the timer for the friend relationship; if only one of the two is the predetermined channel source type, only start A timer for the friend relationship corresponding to the user associated with one of them, so as to only cancel the presentation of the session when the timer reaches its corresponding timing period, or perform no operation. In some embodiments, if the first channel source type used by the first user's request to add the second user as a friend is different from the second channel source type used by the second user's request to add the first user as a friend For each user among the user and the second user, if the first device is the first user device or the second user device, it is necessary to independently determine whether the channel source type corresponding to the user is a predetermined channel source type. A timer corresponding to the user for the friend relationship between the first user and the second user is started on the device or on the device of the second user. For example, the first user is the second user seen in the "Nearby People" channel, and then sends a friend request to the second user. The "Nearby People" channel is the stranger channel, and the second user is in the mobile phone address book. The first user the channel sees, and then sends a friend request to the first user. The mobile phone address book channel is an acquaintance channel. After either the first user or the second user confirms the friend request sent by the other party, the two To establish a friend relationship, the channel source type corresponding to the first user is not the same as the channel source type corresponding to the second user. For the first user, the second user is the friend he added through the stranger channel, while for the second user In other words, the first user is his friend added through the acquaintance channel. In some embodiments, if the first device is a server, it is necessary to comprehensively determine whether the channel source type corresponding to the first user and the channel source type corresponding to the second user satisfy the predetermined channel source type. The timer of the friendship between the first user and the second user, if neither of them is satisfied, the timer will not be started, and no subsequent operations will be performed. If only one of the two is satisfied, the timer may not be started. It does not perform any subsequent operations, or only starts the timer for the friend relationship corresponding to the user associated with one of the two, but does not start the timer for the friend corresponding to the user associated with the other of the two. The timer that starts the relationship will only trigger the cancellation of the session between the first user and the second user when the timer reaches its corresponding timing duration, but will not trigger the cancellation of the session between the first user and the second user. friend relationship.
在一些实施例中,所述若是,启动所述第一用户对应的针对所述好友关系的第一定时器,包括:若是,向网络设备发送定时器启动请求,接收所述网络设备针对所述定时器启动请求反馈的指令信息,若所述指令信息指示允许启动定时器,启动所述第一用户对应的针对所述好友关系的第一定时器,其中,网络设备通过检测所述第二通道来源类型是否为预定通道来源类型来确定所述指令信息,若所述第二通道来源类型为预定通道来源类型,所述指令信息指示启动所述第一定时器,否则,所述指令信息指示不启动所述第一定时器。在一些实施例中,第一设备为第一用户设备,若第一用户对应的第一通道来源类型满足预定通道来源类型,第一用户设备会向服务器询问是否在第一用户设备上启动第一用户对应的定时器,服务器会检测第二用户对应的第二通道来源类型是否也同样满足预定通道来源类型,若是,服务器会指示第一用户设备启动该第一定时器,否则,服务器会指示第一用户设备不启动该第一定时器。In some embodiments, if the yes, starting a first timer for the friend relationship corresponding to the first user includes: if yes, sending a timer start request to a network device, and receiving a request from the network device for the friend relationship. The instruction information of the timer start request feedback, if the instruction information indicates that the timer is allowed to be started, the first timer corresponding to the first user for the friend relationship is started, wherein the network device detects the second channel by detecting the second channel. Whether the source type is a predetermined channel source type determines the command information, if the second channel source type is a predetermined channel source type, the command information indicates to start the first timer, otherwise, the command information indicates not to The first timer is started. In some embodiments, the first device is the first user equipment. If the first channel source type corresponding to the first user meets the predetermined channel source type, the first user equipment will ask the server whether to enable the first user equipment on the first user equipment. For the timer corresponding to the user, the server will detect whether the second channel source type corresponding to the second user also satisfies the predetermined channel source type. If so, the server will instruct the first user equipment to start the first timer; otherwise, the server will instruct the A user equipment does not start the first timer.
在一些实施例中,所述若是,启动所述第二用户对应的针对所述好友关系的第二定时器,包括:若是,向网络设备发送定时器启动请求,接收所述网络设备针对所述定时器启动请求反馈的指令信息,若所述指令信息指示允许启动定时器,启动所述第二用户对应的针对所述好友关系的第二定时器,其中,网络设备通过检测所述第一通道来源类型是否为预定通道来源类型来确定所述指令信息,若所述第一通道来源类型为预定通道来源类型,所述指令信息指示启动所述第二定时器,否则,所述指令信息指示不启动所述第二定时器。在一些实施例中,第一设备为第二用户设备,若第二用户对应的第二通道来源类型满足预定通道来源类型,第二用户设备会向服务器询问是否在第二用户设备上启动第二用户对应的定时器,服务器会检测第一用户对应的第一通道来源类型是否也同样满足预定通道来源类型,若是,服务器会指示第二用户设备启动该第二定时器,否则,服务器会指示第二用户设备不启动该第二定时器。In some embodiments, if the yes, starting a second timer for the friend relationship corresponding to the second user includes: if yes, sending a timer start request to a network device, and receiving a request from the network device for the friend relationship. The instruction information of the timer start request feedback, if the instruction information indicates that the timer is allowed to start, start the second timer corresponding to the second user for the friend relationship, wherein the network device detects the first channel by detecting the first channel. Whether the source type is a predetermined channel source type determines the command information, if the first channel source type is a predetermined channel source type, the command information indicates to start the second timer, otherwise, the command information indicates not to The second timer is started. In some embodiments, the first device is a second user equipment. If the second channel source type corresponding to the second user satisfies the predetermined channel source type, the second user equipment will ask the server whether to enable the second user equipment on the second user equipment. For the timer corresponding to the user, the server will detect whether the first channel source type corresponding to the first user also meets the predetermined channel source type. If so, the server will instruct the second user equipment to start the second timer; otherwise, the server will instruct the The second user equipment does not start the second timer.
在一些实施例中,所述步骤S111包括:第一设备响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的好友申请来源类型是否为预定好友申请来源类型,若是,根据所述好友关系对应的好友关系配置信息判 断当前是否已开启过期自动处理功能,若是,启动针对所述好友关系的定时器。在一些实施例中,还需要根据第一用户与第二用户之间的好友关系配置信息来判断当前是否已开启过期自动处理功能,只有在好友关系配置信息当前所指示的状态为开启过期自动处理功能的情况下,才会启动针对该好友关系的定时器。在一些实施例中,好友关系配置信息可以在第一用户设备本地或第二用户设备本地进行维护,第一用户或第二用户可以根据自己的需要更改好友关系配置信息当前所指示的状态。在一些实施例中,好友关系配置信息可以在服务器中进行维护,服务器的维护人员或使用人员可以根据需要更改好友关系配置信息所指示的状态。在一些实施例中,第一用户设备或第二用户设备可以为第一用户或第二用户与其不同好友之间的多个好友关系维护一个共同的好友关系配置信息,也可以为每个好友关系单独维护一个好友关系配置信息。在一些实施例中,服务器可以为第一用户及第二用户维护一个共同的好友关系配置信息,也可以为每个用户单独维护一个好友关系配置信息,该好友关系配置信息适用于第一用户或第二用户与其不同好友之间的多个好友关系。In some embodiments, the step S111 includes: in response to a friend relationship establishment event between the first user and the second user, the first device detects whether the friend application source type corresponding to the friend relationship establishment event is a predetermined friend application Source type, if yes, according to the friend relationship configuration information corresponding to the friend relationship to determine whether the expiration automatic processing function is currently enabled, if so, start the timer for the friend relationship. In some embodiments, it is also necessary to judge whether the automatic expiration processing function is currently enabled according to the friend relationship configuration information between the first user and the second user, and only when the status currently indicated by the friend relationship configuration information is to enable automatic expiration processing Only if the function is enabled, the timer for the friend relationship will be started. In some embodiments, the friend relationship configuration information may be maintained locally on the first user equipment or locally on the second user equipment, and the first user or the second user may change the status currently indicated by the friend relationship configuration information according to their own needs. In some embodiments, the friend relationship configuration information may be maintained in the server, and maintenance personnel or users of the server may change the status indicated by the friend relationship configuration information as required. In some embodiments, the first user equipment or the second user equipment may maintain a common friend relationship configuration information for multiple friend relationships between the first user or the second user and their different friends, or may maintain a common friend relationship configuration information for each friend relationship Maintain a friend relationship configuration information separately. In some embodiments, the server may maintain a common friend relationship configuration information for the first user and the second user, or may maintain a separate friend relationship configuration information for each user, where the friend relationship configuration information is applicable to the first user or the second user. Multiple friend relationships between the second user and his different friends.
在一些实施例中,所述好友关系配置信息包括所述定时时长。在一些实施例中,若第一用户设备或第二用户设备维护该好友关系配置信息,则第一用户或第二用户可以根据自己的需要更改该好友关系配置信息中的定时时长,若服务器维护该好友关系配置信息,服务器的维护人员或使用人员可以根据需要更改该好友关系配置信息中的定时时长。In some embodiments, the friend relationship configuration information includes the timing duration. In some embodiments, if the first user equipment or the second user equipment maintains the friend relationship configuration information, the first user or the second user can change the timing in the friend relationship configuration information according to their own needs. For the friend relationship configuration information, the maintenance personnel or users of the server can change the timing duration in the friend relationship configuration information as required.
在一些实施例中,所述方法还包括:第一设备基于以下至少一项确定所述好友关系配置信息:所述通道来源类型;所述第一用户与所述第二用户的共同好友数量;所述第一用户的历史会话交互频次信息及所述第二用户的历史会话交互频次信息。在一些实施例中,可以根据好友关系建立事件对应的通道来源类型来确定该好友关系适合的好友关系配置信息。在一些实施例中,还可以根据第一用户与第二用户的共同好友数量,来确定该好友关系适合的好友关系配置信息,例如,共同好友数量越多,则好友关系配置信息中的定时时长越长。在一些实施例中,还可以根据第一用户与其他用户的历史会话交互频次信息及第二用户与其他用户的历史会话交互频次信息,来确定该好友关系适合的好友关系配置信息,其中,频次信息包括但不限于频率信息(例如,平均每隔多少时间间隔第一用户或第二用户会进行会话交互 操作)及次数信息(例如,平均每天第一用户或第二用户会进行多少次会话交互操作),例如,第一用户的历史会话交互频次较高,则第一用户对应的好友关系配置信息中的定时时长较短,第二用户的历史会话交互频次较低,则第二用户对应的好友关系配置信息中的定时时长较长。In some embodiments, the method further includes: the first device determines the friend relationship configuration information based on at least one of the following: the channel source type; the number of mutual friends of the first user and the second user; The historical session interaction frequency information of the first user and the historical session interaction frequency information of the second user. In some embodiments, the friend relationship configuration information suitable for the friend relationship may be determined according to the channel source type corresponding to the friend relationship establishment event. In some embodiments, the friend relationship configuration information suitable for the friend relationship can also be determined according to the number of common friends of the first user and the second user. the longer. In some embodiments, the friend relationship configuration information suitable for the friend relationship may also be determined according to the historical session interaction frequency information between the first user and other users and the historical session interaction frequency information between the second user and other users, wherein the frequency Information includes, but is not limited to, frequency information (for example, how many time intervals the first user or the second user performs session interactions on average) and frequency information (for example, how many session interactions the first user or the second user performs on average per day) operation), for example, if the interaction frequency of the historical session of the first user is high, the timing duration in the friend relationship configuration information corresponding to the first user is shorter, and the interaction frequency of the historical session of the second user is low, then the corresponding The timing duration in the friend relationship configuration information is longer.
在一些实施例中,所述方法还包括:第一设备响应于所述好友关系配置信息所指示的状态从开启过期自动处理功能切换为关闭过期自动处理功能的第一切换事件,终止所述定时器。在一些实施例中,若第一设备是第一用户设备或第二用户设备,第一切换事件可以是第一用户或第二用户将好友关系配置所指示的状态从开启过期自动处理功能切换为关闭过期自动处理功能,或者,若第一设备是服务器,第一切换事件还可以是服务器的维护人员或使用人员将好友关系配置所指示的状态从开启过期自动处理功能切换为关闭过期自动处理功能。In some embodiments, the method further includes: the first device, in response to a first switching event in which the state indicated by the friend relationship configuration information is switched from turning on the automatic expiration processing function on to turning off the automatic expiration processing function, terminating the timing device. In some embodiments, if the first device is the first user equipment or the second user equipment, the first switching event may be that the first user or the second user switches the state indicated by the friend relationship configuration from enabling the automatic expired processing function to Disabling the automatic expired processing function, or, if the first device is a server, the first switching event may also be a server maintainer or user switching the status indicated by the friend relationship configuration from enabling the automatic expiration processing function to turning off the automatic expiration processing function. .
在一些实施例中,所述方法还包括:第一设备响应于所述好友关系配置信息所指示的状态从关闭过期自动处理功能切换为开启过期自动处理功能的第二切换事件,若所述会话未产生过任何历史会话交互事件,且所述定时器未计时结束,重新启动所述定时器。在一些实施例中,若第一设备是第一用户设备或第二用户设备,第二切换事件可以是第一用户或第二用户将好友关系配置所指示的状态从关闭过期自动处理功能切换为开启过期自动处理功能,或者,若第一设备是服务器,第二切换事件还可以是服务器的维护人员或使用人员将好友关系配置所指示的状态从关闭过期自动处理功能切换为开启过期自动处理功能。在一些实施例中,重新启动该定时器可以是按照起始时间为当前时间重新启动该定时器,也可以是重置该定时器,并按照起始时间为0重新启动该定时器。In some embodiments, the method further includes: in response to the state indicated by the friend relationship configuration information, the first device switches from disabling the automatic expired processing function to the second switching event of enabling the automatic expired processing function, if the session If no historical session interaction event has been generated and the timer has not expired, the timer is restarted. In some embodiments, if the first device is the first user equipment or the second user equipment, the second switching event may be that the first user or the second user switches the state indicated by the friend relationship configuration from turning off the automatic expired processing function to Turn on the automatic expiration processing function, or, if the first device is a server, the second switching event can also be the server maintainer or user switching the status indicated by the friend relationship configuration from disabling the automatic expiration processing function to turning on the automatic expiration processing function. . In some embodiments, restarting the timer may be restarting the timer according to the start time as the current time, or may be resetting the timer and restarting the timer according to the start time being 0.
在一些实施例中,所述重新启动所述定时器,包括但不限于:重新启动所述定时器,其中,所述定时器的起始时间为当前时间;重置并重新启动所述定时器。在一些实施例中,可以将该定时器的起始时间设置为当前时间,从当前时间开始重新启动该定时器。在一些实施例中,可以重置该定时器,将该定时器的起始时间重置为0,从0开始重新启动该定时器。In some embodiments, the restarting the timer includes but is not limited to: restarting the timer, wherein the start time of the timer is the current time; resetting and restarting the timer . In some embodiments, the start time of the timer may be set to the current time, and the timer may be restarted from the current time. In some embodiments, the timer can be reset, the start time of the timer is reset to 0, and the timer is restarted from 0.
在一些实施例中,所述方法还包括:第一设备响应于所述好友关系配置信息对应的定时时长更改事件,计算所述定时器对应的起始时间距离当前时间的时间间隔绝对值是否小于或等于更改后的定时时长,若是,取消呈现所述会话,和/或,解除 所述好友关系,否则,将所述定时器按照更改后的定时时长继续计时。在一些实施例中,定时时长更改事件可以是第一用户或第二用户更改好友关系配置信息中的定时时长,或者,还可以是服务器的维护人员或使用人员更改好友关系配置信息中的定时时长。在一些实施例中,将该定时器的定时时长设置为更改后的定时时长,该定时器继续计时。In some embodiments, the method further includes: the first device, in response to the timing duration change event corresponding to the friend relationship configuration information, calculates whether the absolute value of the time interval between the start time corresponding to the timer and the current time is less than or equal to the modified timing duration, if so, cancel the presentation of the session, and/or cancel the friend relationship, otherwise, continue to count the timer according to the modified timing duration. In some embodiments, the timing duration change event may be that the first user or the second user changes the timing duration in the friend relationship configuration information, or, it may also be a server maintainer or user changing the timing duration in the friend relationship configuration information . In some embodiments, the timing duration of the timer is set to the changed timing duration, and the timer continues to count.
在一些实施例中,所述方法还包括:第一设备响应于所述好友关系配置信息对应的定时时长更改事件,重置所述定时器并按照更改后的定时时长重新启动所述定时器。在一些实施例中,重置该定时器,将该定时器的起始时间重置为0,将该定时器的定时时长设置为更改后的定时时长,然后从0开始重新启动该定时器。In some embodiments, the method further includes: in response to a timing duration change event corresponding to the friend relationship configuration information, the first device resets the timer and restarts the timer according to the changed timing duration. In some embodiments, the timer is reset, the start time of the timer is reset to 0, the timing duration of the timer is set to the changed timing duration, and then the timer is restarted from 0.
在一些实施例中,若所述第一设备为第一用户使用的第一用户设备或第二用户使用的第二用户设备;其中,所述方法还包括:第一设备响应于从历史版本升级到当前版本的升级完成事件,若所述第一用户与所述第二用户之间的会话未产生过任何历史会话交互事件,检测所述第一用户与所述第二用户之间的好友关系对应的好友关系建立时间距离当前时间的时间间隔绝对值是否大于或等于所述定时时长,若是,取消呈现所述会话,和/或,解除所述好友关系。在一些实施例中,若第一设备是第一用户设备或第二用户设备,响应于从历史版本升级到当前版本的升级完成事件,历史版本不包含过期自动处理功能,当前版本包含过期自动处理功能。在一些实施例中,需要确定第一用户与第二用户之间的会话是否产生过历史会话交互事件,可以在第一用户设备本地或第二用户设备本地获取第一用户或第二用户的历史会话交互记录,也可以向服务器请求获取第一用户或第二用户的历史会话交互记录,然后根据历史会话交互记录可以确定第一用户与第二用户之间的会话是否产生过历史会话交互事件。在一些实施例中,需要获取第一用户与第二用户之间的好友关系对应的好友关系建立时间,可以直接从第一用户设备本地或第二用户设备本地获取,也可以向服务器请求获取。In some embodiments, if the first device is a first user device used by a first user or a second user device used by a second user; wherein the method further includes: the first device responds to an upgrade from a historical version To the upgrade completion event of the current version, if the session between the first user and the second user has not generated any historical session interaction events, detect the friend relationship between the first user and the second user Whether the absolute value of the time interval between the corresponding friend relationship establishment time and the current time is greater than or equal to the timing duration, and if so, cancel the presentation of the session, and/or cancel the friend relationship. In some embodiments, if the first device is the first user equipment or the second user equipment, in response to an upgrade completion event of upgrading from the historical version to the current version, the historical version does not include the automatic expired processing function, and the current version includes the automatic expired processing function Function. In some embodiments, it is necessary to determine whether the session between the first user and the second user has generated a historical session interaction event, and the history of the first user or the second user can be obtained locally on the first user equipment or locally on the second user equipment The session interaction record can also be obtained by requesting the server to obtain the historical session interaction record of the first user or the second user, and then according to the historical session interaction record, it can be determined whether the session between the first user and the second user has generated a historical session interaction event. In some embodiments, the friend relationship establishment time corresponding to the friend relationship between the first user and the second user needs to be obtained, which may be obtained directly from the local device of the first user or the local device of the second user, or may be obtained by requesting the server.
在一些实施例中,所述方法还包括:第一设备若所述会话对应的好友关系建立时间距离当前时间的时间间隔绝对值小于所述定时时长,启动针对所述好友关系的定时器,其中,所述定时器的起始时间为当前时间。在一些实施例中,可以将针对该好友关系的定时器的起始时间设置为当前时间,该定时器的定时时长仍然为好友关系配置信息中的定时时长,然后启动该定时器。在一些实施例中,还可以将该定时 器的定时时长设置为好友关系配置信息中的定时时长与当前时间的差值,该定时器的起始时间为0,然后启动该定时器。In some embodiments, the method further includes: if the absolute value of the time interval between the friend relationship establishment time corresponding to the session and the current time is smaller than the timing duration, the first device starts a timer for the friend relationship, wherein , and the start time of the timer is the current time. In some embodiments, the start time of the timer for the friend relationship may be set as the current time, and the timing duration of the timer is still the timing duration in the friend relationship configuration information, and then the timer is started. In some embodiments, the timing duration of the timer can also be set as the difference between the timing duration in the friend relationship configuration information and the current time, the start time of the timer is 0, and then the timer is started.
在一些实施例中,所述方法还包括:第一设备在所述定时器的计时过程中,通过第一呈现方式呈现所述会话,其中,所述第一呈现方式区别于其他未启动定时器的会话对应的第二呈现方式;响应于所述定时器的计时终止事件,通过所述第二呈现方式更新呈现所述会话。在一些实施例中,在该定时器的计时过程中,在会话列表页面或历史会话页面通过第一呈现方式呈现该会话,其中,该第一呈现方式区别于会话列表页面或历史会话页面呈现其他未启动定时器的会话所使用的第二呈现方式。例如,第一呈现方式可以是高亮显示该会话,或者,还可以是在该会话的显示区域中呈现特定的文本或特定的图标、动画等。在一些实施例中,在计时器计时结束后,会将该会话在会话列表页面或历史会话页面中的呈现方式从第一呈现方式调整为第二呈现方式。In some embodiments, the method further includes: during the timing of the timer, the first device presents the session in a first presentation manner, wherein the first presentation manner is different from other unstarted timers The second presentation mode corresponding to the session of the user interface; in response to the timing termination event of the timer, the session is updated and presented through the second presentation mode. In some embodiments, during the timing of the timer, the conversation is presented on the conversation list page or the historical conversation page by a first presentation manner, wherein the first presentation manner is different from the presentation of other presentations on the conversation list page or the historical conversation page. The second presentation mode used by sessions that do not start a timer. For example, the first presentation manner may be to highlight the session, or, it may also be to present a specific text or a specific icon, animation, etc. in the display area of the session. In some embodiments, after the timer expires, the presentation mode of the session in the session list page or the history session page is adjusted from the first presentation mode to the second presentation mode.
在一些实施例中,所述第一呈现方式包括在所述会话的显示区域中呈现根据当前时间及所述定时时长确定的第一倒计时信息,其中,所述第一倒计时信息基于当前时间实时更新。在一些实施例中,若定时时长是时间点类型(例如,1月30日24时),则根据当前时间及定时时长可以确定第一倒计时信息,第一倒计时信息用于表征当前时间距离该定时器计时结束还有多少时间。在一些实施例中,若定时时长是时间段类型(例如,24小时),则需要根据该定时器的起始时间(即该好友关系对应的好友关系建立时间)、当前时间及定时时长才可以确定第一倒计时信息。在一些实施例中,第一倒计时信息可以只包括文本信息,也可以同时包括文本信息及图标、动画等。In some embodiments, the first presentation manner includes presenting first countdown information determined according to the current time and the timing duration in the display area of the session, wherein the first countdown information is updated in real time based on the current time . In some embodiments, if the timing duration is a time point type (for example, at 24:00 on January 30), the first countdown information can be determined according to the current time and the timing duration, and the first countdown information is used to represent the distance between the current time and the timing. How much time is left until the timer expires. In some embodiments, if the timing duration is a time period type (for example, 24 hours), it needs to be based on the start time of the timer (that is, the friend relationship establishment time corresponding to the friend relationship), the current time, and the timing duration. The first countdown information is determined. In some embodiments, the first countdown information may only include text information, or may include both text information and icons, animations, and the like.
在一些实施例中,所述方法还包括:第一设备在所述定时器的计时过程中,响应于所述第一用户或所述第二用户进入所述会话对应的会话页面的事件,在所述会话页面中呈现根据当前时间及所述定时时长确定的第二倒计时信息,其中,所述第二倒计时信息基于当前时间实时更新;响应于所述定时器的计时终止事件,在所述会话页面中取消呈现所述第二倒计时信息。在一些实施例中,在该定时器的计时过程中,若第一用户或第二用户进入了该会话对应的会话页面,在会在该会话页面中呈现第二倒计时信息,在此,第二倒计时信息与第一倒计时信息类似,在此不再赘述。在一些实施例中,在计时器计时结束后,会在该会话页面中取消呈现第二倒计 时信息。In some embodiments, the method further includes: during the timing of the timer, the first device, in response to an event that the first user or the second user enters a session page corresponding to the session, at The session page presents second countdown information determined according to the current time and the timing duration, wherein the second countdown information is updated in real time based on the current time; in response to a timing termination event of the timer, in the session The second countdown information is canceled from being displayed on the page. In some embodiments, during the timing of the timer, if the first user or the second user enters the session page corresponding to the session, second countdown information will be presented in the session page. Here, the second The countdown information is similar to the first countdown information, and details are not repeated here. In some embodiments, after the timer expires, the second countdown information is de-presented in the session page.
在一些实施例中,所述解除所述好友关系,包括:解除所述好友关系,向所述第一用户和/或所述第二用户呈现关于所述好友关系的解除指示信息。在一些实施例中,解除指示信息会包括第一用户的标识信息或第二用户的标识信息。在一些实施例中,解除指示信息用于提醒第一用户或第二用户,系统已经自动解除了其与对方的好友关系。在一些实施例中,若第一设备是第一用户设备或第二用户设备,直接呈现解除指示信息即可,若第一设备是服务器,服务器需要将解除指示信息发送给第一用户设备或第二用户设备进行显示。In some embodiments, the releasing the friend relationship includes: releasing the friendship relationship, and presenting information about releasing the friendship relationship to the first user and/or the second user. In some embodiments, the release indication information may include identification information of the first user or identification information of the second user. In some embodiments, the release instruction information is used to remind the first user or the second user that the system has automatically released the friend relationship with the other party. In some embodiments, if the first device is the first user equipment or the second user equipment, it suffices to directly present the release instruction information. If the first device is the server, the server needs to send the release instruction information to the first user equipment or the second user equipment. Two user equipment to display.
在一些实施例中,所述解除所述好友关系,向所述第一用户和/或所述第二用户呈现关于所述好友关系的解除指示信息,包括:解除所述好友关系,向所述第一用户和/或所述第二用户呈现关于所述好友关系的解除指示信息,并检测所述第一用户及所述第二用户当前是否呈现所述会话对应的会话页面,若是,自动退出所述会话页面。在一些实施例中,在解除好友关系的时候,若第一用户设备或第二用户设备当前正在呈现该会话对应的会话页面,则第一用户设备或第二用户设备会自动退出该会话。在一些实施例中,若第一设备是第一用户设备或第二用户设备,直接检测当前是否呈现该会话对应的会话页面即可,若第一设备是服务器,服务器会将解除指示信息发送给第一用户设备或第二用户设备进行呈现,第一用户设备或第二用户设备在接收到解除指示信息后,会检测当前是否呈现该会话对应的会话页面。In some embodiments, the releasing the friend relationship, and presenting the information about releasing the friendship relationship to the first user and/or the second user, includes: releasing the friendship relationship, and presenting the information about the disconnection of the friendship relationship to the first user and/or the second user. The first user and/or the second user presents information about the cancellation of the friend relationship, and detects whether the first user and the second user are currently presenting the session page corresponding to the session, and if so, automatically exits the session page. In some embodiments, when unfriending, if the first user equipment or the second user equipment is currently presenting a session page corresponding to the session, the first user equipment or the second user equipment will automatically exit the session. In some embodiments, if the first device is the first user device or the second user device, it is sufficient to directly detect whether the session page corresponding to the session is currently displayed. If the first device is the server, the server will send the release instruction information to The first user equipment or the second user equipment performs presentation, and after receiving the release instruction information, the first user equipment or the second user equipment will detect whether the session page corresponding to the session is currently presented.
在一些实施例中,若所述第一设备为第一用户使用的第一用户设备或第二用户使用的第二用户设备其中,所述方法还包括:在所述定时器的计时过程中,响应于所述第一用户或所述第二用户执行的针对所述会话对应的会话页面的打开操作,执行以下至少一项操作:重置并重新启动所述定时器;更改所述定时器对应的定时时长,其中,更改后的定时时长大于更改前的定时时长。在一些实施例中,在该定时器的计时过程中,若第一用户或第二用户打开进入了该会话对应的会话页面,会重置该定时器,将该定时器的起始时间设置为0,然后从0开始重新启动该定时器,该定时器的定时时长保持不变。在一些实施例中,会更改该定时器的定时时长,更改后的定时时长大于更改前的定时时长。在一些实施例中,更改后的定时时长与该定时器的计时过程中第一用户或第二用户针对该会话对应的会话页面执行的打开次数成正相关,打开次数越多则更改后的定时时长越大。在一些实施例中,定时时 长的更改存在预定阈值,若更改后的定时时长超过该预定阈值,则将更改后的定时时长设置为该预定阈值,之后便不再继续更改定时时长。在一些实施例中,每次按照预定的增长幅度更改定时时长,可以是每次按照相同的增长幅度更改定时时长,还可以是每次按照不同的增长幅度更改定时时长,打开次数越多,增长幅度越小。在一些实施例中,若第一设备是服务器,则第一用户设备或第二用户设备需要将第一用户或第二用户针对该会话对应的会话页面的打开事件发送给服务器。In some embodiments, if the first device is the first user equipment used by the first user or the second user equipment used by the second user, the method further includes: during the timing of the timer, In response to the opening operation of the session page corresponding to the session performed by the first user or the second user, at least one of the following operations is performed: reset and restart the timer; The timing duration of , where the timing duration after the modification is greater than the timing duration before the modification. In some embodiments, during the timing of the timer, if the first user or the second user opens and enters the session page corresponding to the session, the timer will be reset, and the start time of the timer will be set to 0, and then restart the timer from 0, and the timing of the timer remains unchanged. In some embodiments, the timing duration of the timer is changed, and the timing duration after the modification is greater than the timing duration before the modification. In some embodiments, the modified timing duration is positively correlated with the number of times the first user or the second user opens the session page corresponding to the session during the timing of the timer. bigger. In some embodiments, there is a predetermined threshold for the modification of the timing duration. If the modified timing duration exceeds the predetermined threshold, the modified timing duration is set to the predetermined threshold, and then the timing duration is not changed. In some embodiments, the timing duration is changed each time according to a predetermined increase range, which may be each time the timing duration is changed according to the same increase range, or the timing duration may be changed each time according to a different increase range. the smaller the magnitude. In some embodiments, if the first device is a server, the first user device or the second user device needs to send the opening event of the session page corresponding to the session by the first user or the second user to the server.
在一些实施例中,所述取消呈现所述会话,和/或,解除所述好友关系,包括:取消呈现所述会话,和/或,解除所述好友关系,记录所述好友关系对应的过期自动处理信息,其中,所述过期自动处理信息包括所述好友关系的建立时间、所述好友关系对应的自动处理事件类型、所述自动处理事件对应的处理时间、所述第一用户的标识信息、所述第二用户的标识信息、所述会话的标识信息、所述定时器对应的定时时长中的至少一项。在一些实施例中,针对取消呈现会话的事件进行打点,或者,针对解除好友关系的事件进行打点,记录该好友关系对应的过期自动处理信息,该过期自动处理信息包括但不限于该好友关系的建立时间,该好友关系对应的自动处理事件类型(是取消呈现会话事件还是解除好友关系事件)、该自动处理事件对应的处理时间、第一用户的标识信息(例如,用户名称信息、用户ID信息等)、第二用户的标识信息、该会话的标识信息(例如,会话名称信息、会话ID信息等)、该会话所对应的定时器的定时时长等。在一些实施例中,若第一设备为第一用户设备或第二用户设备,则可以在打点完成之后将已记录的该好友关系对应的过期自动处理信息上传至服务器。In some embodiments, the canceling the presentation of the session, and/or canceling the friend relationship includes: canceling the presentation of the session, and/or canceling the friend relationship, and recording the expiration date corresponding to the friend relationship Automatic processing information, wherein the expired automatic processing information includes the establishment time of the friend relationship, the automatic processing event type corresponding to the friend relationship, the processing time corresponding to the automatic processing event, and the identification information of the first user. , at least one of the identification information of the second user, the identification information of the session, and the timing duration corresponding to the timer. In some embodiments, for the event of canceling the presentation session, or for the event of canceling the friend relationship, record the expired automatic processing information corresponding to the friend relationship, and the expired automatic processing information includes but is not limited to the friend relationship. The establishment time, the type of the automatic processing event corresponding to the friend relationship (whether the event of canceling the presentation session or the event of unfriending the relationship), the processing time corresponding to the automatic processing event, the identification information of the first user (for example, user name information, user ID information etc.), the identification information of the second user, the identification information of the session (for example, session name information, session ID information, etc.), the timing duration of the timer corresponding to the session, and the like. In some embodiments, if the first device is the first user device or the second user device, the recorded expired automatic processing information corresponding to the friend relationship may be uploaded to the server after the management is completed.
在一些实施例中,若所述第一设备为所述第一用户使用的第一用户设备或所述第二用户使用的第二用户设备;其中,所述方法还包括:响应于过期自动处理信息上传发起事件,将所述第一设备当前记录的一个或多个好友关系对应的一个或多个过期自动处理信息上传至网络设备。在一些实施例中,若第一设备为第一用户设备或第二用户设备,可以在社交应用每次启动时发起关于过期自动处理信息的上传操作,也可以在当距离前一次上传操作的时间间隔达到或超过预定的时长阈值(例如,1天)时发起关于过期自动处理信息的上传操作,例如,每隔一天发起一次关于过期自动处理信息的上传操作。在一些实施例中,在执行关于过期自动处理信息的上传操作时,会将当前已记录的第一用户或第二用户与其一个或多个历史好友的一个 或多个好友关系对应的一个或多个过期自动处理信息上传至服务器。In some embodiments, if the first device is a first user device used by the first user or a second user device used by the second user; wherein the method further includes: automatically processing in response to expiration The information upload initiates an event, and uploads one or more expired automatic processing information corresponding to one or more friend relationships currently recorded by the first device to the network device. In some embodiments, if the first device is the first user device or the second user device, an upload operation regarding expired automatic processing information may be initiated each time the social application is started, or an upload operation may be initiated at the current distance from the previous upload operation. When the interval reaches or exceeds a predetermined duration threshold (eg, 1 day), an upload operation on expired automatic processing information is initiated, for example, an upload operation on expired automatic processing information is initiated every other day. In some embodiments, when performing an upload operation on expired automatic handling information, one or more of the currently recorded first user or second user corresponding to one or more friend relationships of one or more historical friends of the first user or second user are updated. The expired automatic processing information is uploaded to the server.
图2示出根据本申请一个实施例的一种解除好友关系的第一设备结构图,该设备包括一一模块11和一二模块12。一一模块11,用于响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器;一二模块12,用于在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系。FIG. 2 shows a structural diagram of a first device for canceling a friend relationship according to an embodiment of the present application. The device includes a first module 11 and a second module 12 . 1. Module 11, for starting a timer for the friend relationship in response to a friend relationship establishment event between the first user and the second user; 1. Two modules 12, for reaching the Before the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, terminate the timer; otherwise, if the timer reaches the timer For the corresponding timing period, the session is canceled, and/or the friend relationship is canceled.
一一模块11,用于响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器。在一些实施例中,第一设备可以是网络设备(服务器),也可以是第一用户使用的第一用户设备,还可以是第二用户使用的第二用户设备。在一些实施例中,可以是第一用户或第二用户主动发起请求添加对方为好友的好友申请,在对方确认通过后,触发好友关系建立事件。在一些实施例中,还可以是服务器为第一用户或第二用户自动发起请求添加对方为好友的好友申请,在对方确认通过后,触发好友关系建立事件。在一些实施例中,还可以是第一用户主动发起请求添加第二用户为好友的好友申请,第二用户也主动发起请求添加第二用户为好友的好友申请,在任意一方确认通过后,触发好友关系建立事件。在一些实施例中,还可以是第一用户主动发起请求添加第二用户为好友的好友申请,服务器为第二用户自动发起请求添加第一用户为好友的好友申请,触发好友关系建立事件。在一些实施例中,若第一设备为服务器,则在服务器中启动针对该好友关系的定时器,若第一设备为第一用户设备或第二用户设备,则在第一用户设备本地或第二用户设备本地启动针对该好友关系的定时器,此时,第一用户设备上的定时器可以与第二用户设备上的定时器保持同步,也可以互相独立。在一些实施例中,若第一设备为服务器,则定时器的定时时长由服务器配置,服务器的维护人员或使用人员可以根据需要进行修改,若第一设备为第一用户设备或第二用户设备,则定时器的定时时长可以由第一用户设备本地或第二用户设备本地配置,第一用户或第二用户可以根据自己需要进行修改,或者,定时器的定时时长还可以由服务器配置并提供给第一用户设备或第二用户设备,服务器的维护人员或使用人员可以根据需要进行修改,并将更新后的定时时长提供给第一用户设备或第二用户设备。A module 11, configured to start a timer for the friend relationship in response to a friend relationship establishment event between the first user and the second user. In some embodiments, the first device may be a network device (server), a first user equipment used by a first user, or a second user equipment used by a second user. In some embodiments, the first user or the second user may actively initiate a request to add a friend application of the other party as a friend, and after the other party confirms and passes, a friend relationship establishment event is triggered. In some embodiments, the server may automatically initiate a request for the first user or the second user to add a friend application in which the other party is a friend, and after the other party confirms and passes, a friend relationship establishment event is triggered. In some embodiments, the first user may also actively initiate a request to add a friend application of the second user as a friend, and the second user may also initiate a request to add a friend application of the second user as a friend. Friendship building event. In some embodiments, the first user may actively initiate a request to add a friend application of the second user as a friend, and the server may automatically initiate a request for the second user to add a friend application of the first user as a friend, triggering a friend relationship establishment event. In some embodiments, if the first device is a server, a timer for the friend relationship is started in the server, and if the first device is the first user equipment or the second user equipment, the first user equipment local or second user equipment The second user equipment locally starts a timer for the friend relationship. At this time, the timer on the first user equipment may be synchronized with the timer on the second user equipment, or may be independent of each other. In some embodiments, if the first device is a server, the timing of the timer is configured by the server, and the maintenance personnel or users of the server can modify it as needed. If the first device is the first user equipment or the second user equipment , the timing of the timer can be configured locally by the first user equipment or locally by the second user equipment, and the first user or the second user can modify it according to their own needs, or the timing of the timer can also be configured and provided by the server. For the first user equipment or the second user equipment, the maintenance personnel or users of the server can make modifications as needed, and provide the updated timing duration to the first user equipment or the second user equipment.
一二模块12,用于在所述定时器计时达到所述定时器对应的定时时长前,响应 于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系。在一些实施例中,在定时器计时达到定时时长前,若第一用户与第二用户之间的会话发生了会话交互事件,则终止并删除该定时器。在一些实施例中,会话交互事件包括但不限于会话中的任意一方在会话中发送了会话消息、发起了语音或视频通话、发送了位置信息、发起了共享实时位置、发送了红包、发起了转账、发送了文件、名片、卡券等其他各种交互信息。在一些实施例中,若该定时器计时达到定时时长,删除该定时器,在会话列表页面或历史会话页面取消呈现第一用户与第二用户之间的会话或解除第一用户或第二用户之间的好友关系,或者,还可以是取消呈现会话并解除好友关系。在一些实施例中,若第一设备为第一用户设备或第二用户设备,直接取消呈现会话即可,解除好友关系需要发送好友解除请求给服务器,由服务器来解除好友关系,若第一设备为服务器,直接解除好友关系即可,取消呈现会话需要发送用于指示取消呈现会话的指示信息给第一用户设备或第二用户设备,由第一用户设备或第二用户设备来取消呈现会话。在一些实施例中,第一用户或第二用户在会话列表页面或历史会话页面取消呈现第一用户与第二用户之间的会话后,可以通过在联系人页面或通讯录页面查找第一用户或第二用户,来打开第一用户与第二用户之间的会话,进入对应的会话页面。本申请通过在两个用户之间建立好友关系后过期未发生任何会话交互事件时,自动隐藏该两个用户之间的会话和/或解除该两个用户之间的好友关系,能够使得用户的社交应用界面更加清爽,可以大大提高用户的社交效率和社交体验,还能够保障用户之间交往的安全性。The first and second modules 12 are configured to, in response to a session interaction event corresponding to a session between the first user and the second user, terminate the a timer; otherwise, if the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled. In some embodiments, if a session interaction event occurs in the session between the first user and the second user before the timer counts up to a predetermined duration, the timer is terminated and deleted. In some embodiments, session interaction events include, but are not limited to, any party in the session sending a session message, initiating a voice or video call, sending location information, initiating a shared real-time location, sending a red envelope, initiating a Transfers, sent documents, business cards, cards and coupons and other interactive information. In some embodiments, if the timer expires, the timer is deleted, and the session between the first user and the second user is cancelled or the first user or the second user is cancelled on the session list page or the history session page. Friendship between them, or, it can also be to cancel the presentation session and unfriend the relationship. In some embodiments, if the first device is the first user equipment or the second user equipment, the presentation session can be cancelled directly. To cancel the friend relationship, a friend unfriend request needs to be sent to the server, and the server will cancel the friend relationship. If the first device For the server, it is enough to directly cancel the friend relationship. To cancel the presence session, you need to send instruction information for indicating cancellation of the presence session to the first user equipment or the second user equipment, and the first user equipment or the second user equipment cancels the presence session. In some embodiments, after the first user or the second user cancels the presentation of the conversation between the first user and the second user on the conversation list page or the historical conversation page, the first user can be searched for the first user on the contact page or the address book page. Or the second user to open the session between the first user and the second user, and enter the corresponding session page. The present application can automatically hide the session between the two users and/or cancel the friend relationship between the two users when no session interaction event occurs after the establishment of a friend relationship between the two users, so that the user's The interface of social applications is more refreshing, which can greatly improve the social efficiency and social experience of users, and can also ensure the safety of communication between users.
在一些实施例中,所述定时时长包括第一定时时长及第二定时时长,所述第一定时时长小于所述第二定时时长;其中,所述一二模块12用于:在所述定时器计时达到所述第一定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述第一定时时长,取消呈现所述会话并继续计时;在所述定时器计时达到所述第二定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述第二定时时长,解除所述好友关系。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the timing duration includes a first timing duration and a second timing duration, and the first timing duration is smaller than the second timing duration; wherein the first and second modules 12 are configured to: at the timing Before the timer reaches the first timing duration, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timer reaches the predetermined duration the first timing duration, cancel the presentation of the session and continue timing; before the timer reaches the second timing duration, in response to the session corresponding to the session between the first user and the second user If the interaction event occurs, the timer is terminated; otherwise, if the timer reaches the second time period, the friend relationship is cancelled. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述一一模块11包括一一一模块111(未示出)。一一一模块111,用于响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器。在此,一一一模块111的具体实现方式与图1中有关步骤S111的实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the one-to-one module 11 includes a one-to-one module 111 (not shown). A module 111 is configured to, in response to a friend relationship establishment event between the first user and the second user, detect whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type; Friendship timer. Here, the specific implementation of the one-to-one module 111 is the same as or similar to the embodiment related to step S111 in FIG. 1 , so it is not repeated here, and is incorporated herein by reference.
在一些实施例中,所述预定通道来源类型包括但不限于:In some embodiments, the predetermined channel source types include, but are not limited to:
1)由网络设备自动发起两个用户之间的好友关系建立事件1) A friend relationship establishment event between two users is automatically initiated by the network device
2)由用户通过查找附近的人发起与其他用户之间的好友关系建立事件2) The user initiates a friend relationship establishment event with other users by finding nearby people
3)由用户通过陌生人加友通道发起与其他用户之间的好友关系建立事件3) The user initiates a friend relationship establishment event with other users through the stranger adding friend channel
在此,相关预定通道来源类型与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。Here, the source type of the relevant predetermined channel is the same as or similar to the embodiment shown in FIG. 1 , so it is not repeated here, and is incorporated herein by reference.
在一些实施例中,所述好友关系建立事件对应的通道来源类型包括所述第一用户请求添加所述第二用户为好友所使用的第一通道来源类型及所述第二用户请求添加所述第一用户为好友所使用的第二通道来源类型,所述第一通道来源类型区别于所述第二通道来源类型;其中,若所述第一设备为所述第一用户使用的第一用户设备,所述一一一模块111用于:响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第一通道来源类型是否为预定通道来源类型,若是,启动所述第一用户对应的针对所述好友关系的第一定时器;若所述第一设备为所述第二用户使用的第二用户设备,所述一一一模块111用于:第一设备响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第二通道来源类型是否为预定通道来源类型,若是,启动所述第二用户对应的针对所述好友关系的定时器;若所述第一设备为网络设备,所述一一一模块111用于:响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第一通道来源类型及所述第二通道来源类型是否为预定通道来源类型,若两者均为预定通道来源类型,启动针对所述好友关系的定时器;若两者中仅其中一者为预定通道来源类型,仅启动该其中一者所关联的用户对应的针对所述好友关系的定时器,以当该定时器计时达到其对应的定时时长时仅取消呈现所述会话,或者,不执行任何操作。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the channel source type corresponding to the friend relationship establishment event includes a request by the first user to add a first channel source type used by the second user as a friend and a request by the second user to add the channel source type. The source type of the second channel used by the first user as a friend, the source type of the first channel is different from the source type of the second channel; wherein, if the first device is the first user used by the first user device, the one-to-one module 111 is configured to: in response to a friend relationship establishment event between the first user and the second user, detect whether the first channel source type is a predetermined channel source type, and if so, Start the first timer for the friend relationship corresponding to the first user; if the first device is the second user device used by the second user, the one-to-one module 111 is used for: the first In response to a friend relationship establishment event between the first user and the second user, the device detects whether the source type of the second channel is a predetermined channel source type, and if so, activates a corresponding response to the second user. A timer for a friend relationship; if the first device is a network device, the one-to-one module 111 is configured to: in response to a friend relationship establishment event between the first user and the second user, detect the Whether the first channel source type and the second channel source type are predetermined channel source types, if both are predetermined channel source types, start a timer for the friend relationship; if only one of the two is predetermined Channel source type, only start the timer for the friend relationship corresponding to the user associated with one of them, so as to only cancel the presentation of the session when the timer reaches its corresponding timing, or, do not perform any operate. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述若是,启动所述第一用户对应的针对所述好友关系的第 一定时器,包括:若是,向网络设备发送定时器启动请求,接收所述网络设备针对所述定时器启动请求反馈的指令信息,若所述指令信息指示允许启动定时器,启动所述第一用户对应的针对所述好友关系的第一定时器,其中,网络设备通过检测所述第二通道来源类型是否为预定通道来源类型来确定所述指令信息,若所述第二通道来源类型为预定通道来源类型,所述指令信息指示启动所述第一定时器,否则,所述指令信息指示不启动所述第一定时器。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, if the yes, starting a first timer for the friend relationship corresponding to the first user includes: if yes, sending a timer start request to a network device, and receiving a request from the network device for the friend relationship. The instruction information of the timer start request feedback, if the instruction information indicates that the timer is allowed to be started, the first timer corresponding to the first user for the friend relationship is started, wherein the network device detects the second channel by detecting the second channel. Whether the source type is a predetermined channel source type determines the command information, if the second channel source type is a predetermined channel source type, the command information indicates to start the first timer, otherwise, the command information indicates not to The first timer is started. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述若是,启动所述第二用户对应的针对所述好友关系的第二定时器,包括:若是,向网络设备发送定时器启动请求,接收所述网络设备针对所述定时器启动请求反馈的指令信息,若所述指令信息指示允许启动定时器,启动所述第二用户对应的针对所述好友关系的第二定时器,其中,网络设备通过检测所述第一通道来源类型是否为预定通道来源类型来确定所述指令信息,若所述第一通道来源类型为预定通道来源类型,所述指令信息指示启动所述第二定时器,否则,所述指令信息指示不启动所述第二定时器。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, if the yes, starting a second timer for the friend relationship corresponding to the second user includes: if yes, sending a timer start request to a network device, and receiving a request from the network device for the friend relationship. The instruction information of the timer start request feedback, if the instruction information indicates that the timer is allowed to start, start the second timer corresponding to the second user for the friend relationship, wherein the network device detects the first channel by detecting the first channel. Whether the source type is a predetermined channel source type determines the command information, if the first channel source type is a predetermined channel source type, the command information indicates to start the second timer, otherwise, the command information indicates not to The second timer is started. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述一一一模块111用于:响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的好友申请来源类型是否为预定好友申请来源类型,若是,根据所述好友关系对应的好友关系配置信息判断当前是否已开启过期自动处理功能,若是,启动针对所述好友关系的定时器。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the one-to-one module 111 is configured to: in response to a friend relationship establishment event between the first user and the second user, detect whether the friend application source type corresponding to the friend relationship establishment event is a predetermined friend Application source type, if yes, determine whether the automatic expiration processing function is currently enabled according to the friend relationship configuration information corresponding to the friend relationship, and if so, start a timer for the friend relationship. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述好友关系配置信息包括所述定时时长。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the friend relationship configuration information includes the timing duration. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述设备还用于:基于以下至少一项确定所述好友关系配置信息:所述通道来源类型;所述第一用户与所述第二用户的共同好友数量;所述第一用户的历史会话交互频次信息及所述第二用户的历史会话交互频次信息。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the device is further configured to: determine the friend relationship configuration information based on at least one of the following: the channel source type; the number of mutual friends of the first user and the second user; the The historical session interaction frequency information of the first user and the historical session interaction frequency information of the second user. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述设备还用于:响应于所述好友关系配置信息所指示的状态从开启过期自动处理功能切换为关闭过期自动处理功能的第一切换事件,终止所述定时器。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引 用方式包含于此。In some embodiments, the device is further configured to terminate the timer in response to a first switching event in which the state indicated by the buddy relationship configuration information is switched from turning on the automatic expired processing function on to turning off the automatic expired processing function. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述设备还用于:响应于所述好友关系配置信息所指示的状态从关闭过期自动处理功能切换为开启过期自动处理功能的第二切换事件,若所述会话未产生过任何历史会话交互事件,且所述定时器未计时结束,重新启动所述定时器。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the device is further configured to: in response to the state indicated by the friend relationship configuration information, a second switching event for switching from disabling the automatic expired processing function to enabling the automatic expired processing function, if the session does not occur After any historical session interaction event, and the timer has not expired, restart the timer. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述重新启动所述定时器,包括但不限于:重新启动所述定时器,其中,所述定时器的起始时间为当前时间;重置并重新启动所述定时器。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the restarting the timer includes but is not limited to: restarting the timer, wherein the start time of the timer is the current time; resetting and restarting the timer . Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述设备还用于:响应于所述好友关系配置信息对应的定时时长更改事件,计算所述定时器对应的起始时间距离当前时间的时间间隔绝对值是否小于或等于更改后的定时时长,若是,取消呈现所述会话,和/或,解除所述好友关系,否则,将所述定时器按照更改后的定时时长继续计时。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the device is further configured to: in response to the timing duration change event corresponding to the friend relationship configuration information, calculate whether the absolute value of the time interval between the start time corresponding to the timer and the current time is less than or equal to For the changed timing duration, if yes, cancel the presentation of the session, and/or cancel the friend relationship, otherwise, continue to count the timer according to the changed timing duration. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述设备还用于:响应于所述好友关系配置信息对应的定时时长更改事件,重置所述定时器并按照更改后的定时时长重新启动所述定时器。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the device is further configured to: in response to a timing duration change event corresponding to the friend relationship configuration information, reset the timer and restart the timer according to the changed timing duration. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,若所述第一设备为第一用户使用的第一用户设备或第二用户使用的第二用户设备;其中,所述设备还用于:响应于从历史版本升级到当前版本的升级完成事件,若所述第一用户与所述第二用户之间的会话未产生过任何历史会话交互事件,检测所述第一用户与所述第二用户之间的好友关系对应的好友关系建立时间距离当前时间的时间间隔绝对值是否大于或等于所述定时时长,若是,取消呈现所述会话,和/或,解除所述好友关系。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, if the first device is a first user device used by a first user or a second user device used by a second user; wherein the device is further configured to: in response to upgrading from a historical version to a current version The version upgrade completion event, if the session between the first user and the second user has not generated any historical session interaction events, detect the friend relationship between the first user and the second user. Whether the absolute value of the time interval between the friend relationship establishment time and the current time is greater than or equal to the timing duration, and if so, cancel the presentation of the session, and/or cancel the friend relationship. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述设备还用于:若所述会话对应的好友关系建立时间距离当前时间的时间间隔绝对值小于所述定时时长,启动针对所述好友关系的定时器,其中,所述定时器的起始时间为当前时间。在此,相关操作与图1所示实施例相同 或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the device is further configured to: if the absolute value of the time interval between the friend relationship establishment time corresponding to the session and the current time is less than the timing duration, start a timer for the friend relationship, wherein the The start time of the timer is the current time. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they will not be repeated, but are incorporated herein by reference.
在一些实施例中,所述设备还用于:在所述定时器的计时过程中,通过第一呈现方式呈现所述会话,其中,所述第一呈现方式区别于其他未启动定时器的会话对应的第二呈现方式;响应于所述定时器的计时终止事件,通过所述第二呈现方式更新呈现所述会话。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the device is further configured to: in the timing process of the timer, present the session by using a first presentation mode, wherein the first presentation mode is different from other sessions without a timer started A corresponding second presentation manner; in response to a time-out event of the timer, updating and presenting the session through the second presentation manner. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not described again, but are incorporated herein by reference.
在一些实施例中,所述第一呈现方式包括在所述会话的显示区域中呈现根据当前时间及所述定时时长确定的第一倒计时信息,其中,所述第一倒计时信息基于当前时间实时更新。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the first presentation manner includes presenting first countdown information determined according to the current time and the timing duration in the display area of the session, wherein the first countdown information is updated in real time based on the current time . Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述设备还用于:在所述定时器的计时过程中,响应于所述第一用户或所述第二用户进入所述会话对应的会话页面的事件,在所述会话页面中呈现根据当前时间及所述定时时长确定的第二倒计时信息,其中,所述第二倒计时信息基于当前时间实时更新;响应于所述定时器的计时终止事件,在所述会话页面中取消呈现所述第二倒计时信息。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the device is further configured to: in the timing process of the timer, in response to an event that the first user or the second user enters a session page corresponding to the session, at the The session page presents second countdown information determined according to the current time and the timing duration, wherein the second countdown information is updated in real time based on the current time; in response to a timing termination event of the timer, in the session page Canceling presentation of the second countdown information. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述解除所述好友关系,包括:解除所述好友关系,向所述第一用户和/或所述第二用户呈现关于所述好友关系的解除指示信息。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the releasing the friend relationship includes: releasing the friendship relationship, and presenting information about releasing the friendship relationship to the first user and/or the second user. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述解除所述好友关系,向所述第一用户和/或所述第二用户呈现关于所述好友关系的解除指示信息,包括:解除所述好友关系,向所述第一用户和/或所述第二用户呈现关于所述好友关系的解除指示信息,并检测所述第一用户及所述第二用户当前是否呈现所述会话对应的会话页面,若是,自动退出所述会话页面。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the releasing the friend relationship, and presenting the information about releasing the friendship relationship to the first user and/or the second user, includes: releasing the friendship relationship, and presenting the information about the disconnection of the friendship relationship to the first user and/or the second user. The first user and/or the second user presents information about the cancellation of the friend relationship, and detects whether the first user and the second user are currently presenting the session page corresponding to the session, and if so, automatically exits the session page. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not described again, but are incorporated herein by reference.
在一些实施例中,若所述第一设备为第一用户使用的第一用户设备或第二用户使用的第二用户设备其中,所述设备还用于:在所述定时器的计时过程中,响应于所述第一用户或所述第二用户执行的针对所述会话对应的会话页面的打开操作,执行以下至少一项操作:重置并重新启动所述定时器;更改所述定时器对应的定时时 长,其中,更改后的定时时长大于更改前的定时时长。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, if the first device is a first user equipment used by a first user or a second user equipment used by a second user, the device is further configured to: in the timing process of the timer , in response to the opening operation performed by the first user or the second user on the session page corresponding to the session, perform at least one of the following operations: reset and restart the timer; change the timer The corresponding timing duration, wherein the timing duration after modification is greater than the timing duration before modification. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,所述取消呈现所述会话,和/或,解除所述好友关系,包括:取消呈现所述会话,和/或,解除所述好友关系,记录所述好友关系对应的过期自动处理信息,其中,所述过期自动处理信息包括所述好友关系的建立时间、所述好友关系对应的自动处理事件类型、所述自动处理事件对应的处理时间、所述第一用户的标识信息、所述第二用户的标识信息、所述会话的标识信息、所述定时器对应的定时时长中的至少一项。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, the canceling the presentation of the session, and/or canceling the friend relationship includes: canceling the presentation of the session, and/or canceling the friend relationship, and recording the expiration date corresponding to the friend relationship Automatic processing information, wherein the expired automatic processing information includes the establishment time of the friend relationship, the automatic processing event type corresponding to the friend relationship, the processing time corresponding to the automatic processing event, and the identification information of the first user. , at least one of the identification information of the second user, the identification information of the session, and the timing duration corresponding to the timer. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
在一些实施例中,若所述第一设备为所述第一用户使用的第一用户设备或所述第二用户使用的第二用户设备;其中,所述设备还用于:响应于过期自动处理信息上传发起事件,将所述第一设备当前记录的一个或多个好友关系对应的一个或多个过期自动处理信息上传至网络设备。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。In some embodiments, if the first device is the first user device used by the first user or the second user device used by the second user; wherein the device is further configured to: automatically respond to expiration Processing an information upload initiation event, and uploading one or more expired automatic processing information corresponding to one or more friend relationships currently recorded by the first device to the network device. Here, the related operations are the same as or similar to the embodiment shown in FIG. 1 , so they are not repeated here, but are incorporated herein by reference.
图3示出了可被用于实施本申请中所述的各个实施例的示例性系统。3 illustrates an exemplary system that may be used to implement various embodiments described in this application.
如图3所示在一些实施例中,系统300能够作为各所述实施例中的任意一个设备。在一些实施例中,系统300可包括具有指令的一个或多个计算机可读介质(例如,系统存储器或NVM/存储设备320)以及与该一个或多个计算机可读介质耦合并被配置为执行指令以实现模块从而执行本申请中所述的动作的一个或多个处理器(例如,(一个或多个)处理器305)。In some embodiments, as shown in FIG. 3, system 300 can function as any of the devices in each of the described embodiments. In some embodiments, system 300 may include one or more computer-readable media (eg, system memory or NVM/storage device 320 ) having instructions and be coupled to the one or more computer-readable media and configured to execute Instructions to implement a module to perform one or more processors (eg, processor(s) 305 ) to perform the actions described herein.
对于一个实施例,系统控制模块310可包括任意适当的接口控制器,以向(一个或多个)处理器305中的至少一个和/或与系统控制模块310通信的任意适当的设备或组件提供任意适当的接口。For one embodiment, the system control module 310 may include any suitable interface controller to provide at least one of the processor(s) 305 and/or any suitable device or component in communication with the system control module 310 any appropriate interface.
系统控制模块310可包括存储器控制器模块330,以向系统存储器315提供接口。存储器控制器模块330可以是硬件模块、软件模块和/或固件模块。The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315 . The memory controller module 330 may be a hardware module, a software module, and/or a firmware module.
系统存储器315可被用于例如为系统300加载和存储数据和/或指令。对于一个实施例,系统存储器315可包括任意适当的易失性存储器,例如,适当的DRAM。在一些实施例中,系统存储器315可包括双倍数据速率类型四同步动态随机存取存储器(DDR4SDRAM)。 System memory 315 may be used, for example, to load and store data and/or instructions for system 300 . For one embodiment, system memory 315 may include any suitable volatile memory, eg, suitable DRAM. In some embodiments, system memory 315 may include double data rate type quad synchronous dynamic random access memory (DDR4 SDRAM).
对于一个实施例,系统控制模块310可包括一个或多个输入/输出(I/O)控制器,以向NVM/存储设备320及(一个或多个)通信接口325提供接口。For one embodiment, system control module 310 may include one or more input/output (I/O) controllers to provide interfaces to NVM/storage device 320 and communication interface(s) 325 .
例如,NVM/存储设备320可被用于存储数据和/或指令。NVM/存储设备320可包括任意适当的非易失性存储器(例如,闪存)和/或可包括任意适当的(一个或多个)非易失性存储设备(例如,一个或多个硬盘驱动器(HDD)、一个或多个光盘(CD)驱动器和/或一个或多个数字通用光盘(DVD)驱动器)。For example, NVM/storage device 320 may be used to store data and/or instructions. NVM/storage device 320 may include any suitable non-volatile memory (eg, flash memory) and/or may include any suitable non-volatile storage device(s) (eg, one or more hard drives ( HDD), one or more compact disc (CD) drives and/or one or more digital versatile disc (DVD) drives).
NVM/存储设备320可包括在物理上作为系统300被安装在其上的设备的一部分的存储资源,或者其可被该设备访问而不必作为该设备的一部分。例如,NVM/存储设备320可通过网络经由(一个或多个)通信接口325进行访问。NVM/storage device 320 may include storage resources that are physically part of the device on which system 300 is installed, or it may be accessed by the device without necessarily being part of the device. For example, the NVM/storage device 320 is accessible via the communication interface(s) 325 over a network.
(一个或多个)通信接口325可为系统300提供接口以通过一个或多个网络和/或与任意其他适当的设备通信。系统300可根据一个或多个无线网络标准和/或协议中的任意标准和/或协议来与无线网络的一个或多个组件进行无线通信。Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and/or with any other suitable device. System 300 may wirelessly communicate with one or more components of a wireless network in accordance with any of one or more wireless network standards and/or protocols.
对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器(例你如,存储器控制器模块330)的逻辑封装在一起。对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器的逻辑封装在一起以形成系统级封装(SiP)。对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器的逻辑集成在同一模具上。对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器的逻辑集成在同一模具上以形成片上系统(SoC)。For one embodiment, at least one of the processor(s) 305 may be packaged with the logic of one or more controllers of the system control module 310 (eg, memory controller module 330). For one embodiment, at least one of the processor(s) 305 may be packaged with logic of one or more controllers of the system control module 310 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with the logic of one or more controllers of the system control module 310 . For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic of one or more controllers of the system control module 310 to form a system on a chip (SoC).
在各个实施例中,系统300可以但不限于是:服务器、工作站、台式计算设备或移动计算设备(例如,膝上型计算设备、持有计算设备、平板电脑、上网本等)。在各个实施例中,系统300可具有更多或更少的组件和/或不同的架构。例如,在一些实施例中,系统300包括一个或多个摄像机、键盘、液晶显示器(LCD)屏幕(包括触屏显示器)、非易失性存储器端口、多个天线、图形芯片、专用集成电路(ASIC)和扬声器。In various embodiments, system 300 may be, but is not limited to, a server, workstation, desktop computing device, or mobile computing device (eg, laptop computing device, handheld computing device, tablet computer, netbook, etc.). In various embodiments, system 300 may have more or fewer components and/or different architectures. For example, in some embodiments, system 300 includes one or more cameras, keyboards, liquid crystal display (LCD) screens (including touchscreen displays), non-volatile memory ports, multiple antennas, graphics chips, application specific integrated circuits ( ASIC) and speakers.
本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机代码,当所述计算机代码被执行时,如前任一项所述的方法被执行。The present application also provides a computer-readable storage medium, where the computer-readable storage medium stores computer code, and when the computer code is executed, the method described in any preceding item is executed.
本申请还提供了一种计算机程序产品,当所述计算机程序产品被计算机设备执行时,如前任一项所述的方法被执行。The present application also provides a computer program product, when the computer program product is executed by a computer device, the method according to any one of the preceding items is executed.
本申请还提供了一种计算机设备,所述计算机设备包括:The present application also provides a computer device, the computer device comprising:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个计算机程序;memory for storing one or more computer programs;
当所述一个或多个计算机程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如前任一项所述的方法。The one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the method of any preceding item.
需要注意的是,本申请可在软件和/或软件与硬件的组合体中被实施,例如,可采用专用集成电路(ASIC)、通用目的计算机或任何其他类似硬件设备来实现。在一个实施例中,本申请的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本申请的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本申请的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。It should be noted that the present application may be implemented in software and/or a combination of software and hardware, eg, an application specific integrated circuit (ASIC), a general purpose computer, or any other similar hardware device. In one embodiment, the software program of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs of the present application (including associated data structures) may be stored on a computer-readable recording medium, such as RAM memory, magnetic or optical drives or floppy disks, and the like. In addition, some steps or functions of the present application may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
另外,本申请的一部分可被应用为计算机程序产品,例如计算机程序指令,当其被计算机执行时,通过该计算机的操作,可以调用或提供根据本申请的方法和/或技术方案。本领域技术人员应能理解,计算机程序指令在计算机可读介质中的存在形式包括但不限于源文件、可执行文件、安装包文件等,相应地,计算机程序指令被计算机执行的方式包括但不限于:该计算机直接执行该指令,或者该计算机编译该指令后再执行对应的编译后程序,或者该计算机读取并执行该指令,或者该计算机读取并安装该指令后再执行对应的安装后程序。在此,计算机可读介质可以是可供计算机访问的任意可用的计算机可读存储介质或通信介质。In addition, a part of the present application can be applied as a computer program product, such as computer program instructions, which when executed by a computer, through the operation of the computer, can invoke or provide methods and/or technical solutions according to the present application. Those skilled in the art should understand that the existing forms of computer program instructions in computer-readable media include but are not limited to source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include but are not limited to Limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding post-installation program. program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium that can be accessed by a computer.
通信介质包括藉此包含例如计算机可读指令、数据结构、程序模块或其他数据的通信信号被从一个系统传送到另一系统的介质。通信介质可包括有导的传输介质(诸如电缆和线(例如,光纤、同轴等))和能传播能量波的无线(未有导的传输)介质,诸如声音、电磁、RF、微波和红外。计算机可读指令、数据结构、程序模块或其他数据可被体现为例如无线介质(诸如载波或诸如被体现为扩展频谱技术的一部分的类似机制)中的已调制数据信号。术语“已调制数据信号”指的是其一个或多个特征以在信号中编码信息的方式被更改或设定的信号。调制可以是模拟的、数字的或混合调制技术。Communication media includes media by which communication signals containing, for example, computer readable instructions, data structures, program modules or other data are transmitted from one system to another. Communication media may include conducted transmission media such as cables and wires (eg, fiber optic, coaxial, etc.) and wireless (unconducted transmission) media capable of propagating energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared . Computer readable instructions, data structures, program modules or other data may be embodied, for example, as a modulated data signal in a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology. The term "modulated data signal" refers to a signal whose one or more characteristics are altered or set in a manner that encodes information in the signal. Modulation can be analog, digital or hybrid modulation techniques.
作为示例而非限制,计算机可读存储介质可包括以用于存储诸如计算机可读指 令、数据结构、程序模块或其它数据的信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动的介质。例如,计算机可读存储介质包括,但不限于,易失性存储器,诸如随机存储器(RAM,DRAM,SRAM);以及非易失性存储器,诸如闪存、各种只读存储器(ROM,PROM,EPROM,EEPROM)、磁性和铁磁/铁电存储器(MRAM,FeRAM);以及磁性和光学存储设备(硬盘、磁带、CD、DVD);或其它现在已知的介质或今后开发的能够存储供计算机系统使用的计算机可读信息/数据。By way of example and not limitation, computer-readable storage media may include volatile and non-volatile, readable storage media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Removable and non-removable media. For example, computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM) , EEPROM), magnetic and ferromagnetic/ferroelectric memory (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, tapes, CDs, DVDs); or other media now known or later developed capable of storing data for computer systems Computer readable information/data used.
在此,根据本申请的一个实施例包括一个装置,该装置包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于前述根据本申请的多个实施例的方法和/或技术方案。Here, an embodiment according to the present application includes an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, a trigger is The apparatus operates based on the aforementioned methods and/or technical solutions according to various embodiments of the present application.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。装置权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。It will be apparent to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, but that the present application may be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Accordingly, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the application is to be defined by the appended claims rather than the foregoing description, which is therefore intended to fall within the scope of the claims. All changes within the meaning and scope of the equivalents of , are included in this application. Any reference signs in the claims shall not be construed as limiting the involved claim. Furthermore, it is clear that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. Several units or means recited in the device claims can also be realized by one unit or means by means of software or hardware. The terms first, second, etc. are used to denote names and do not denote any particular order.
在权利要求书中规定了各个实施例的各个方面。在下列编号条款中规定了各个实施例的这些和其他方面:Various aspects of the various embodiments are specified in the claims. These and other aspects of the various embodiments are specified in the following numbered clauses:
1.一种解除好友关系的方法,应用于第一设备端,其中,所述方法包括:1. A method for canceling a friend relationship, applied to a first device, wherein the method comprises:
响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器;In response to a friend relationship establishment event between the first user and the second user, starting a timer for the friend relationship;
在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系。Before the timer reaches the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the When the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
2.根据条款1所述的方法,其中,所述定时时长包括第一定时时长及第二定时 时长,所述第一定时时长小于所述第二定时时长;2. The method of clause 1, wherein the timing duration includes a first timing duration and a second timing duration, the first timing duration being less than the second timing duration;
其中,所述在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系,包括:Wherein, the timer is terminated in response to a session interaction event corresponding to the session between the first user and the second user before the timer reaches the timing corresponding to the timer; Otherwise, if the timer reaches the timing corresponding to the timer, cancel the presentation of the session, and/or cancel the friend relationship, including:
在所述定时器计时达到所述第一定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述第一定时时长,取消呈现所述会话并继续计时;Before the timer reaches the first timing duration, in response to a session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timing When the timer reaches the first timing duration, the session is cancelled and the timing is continued;
在所述定时器计时达到所述第二定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述第二定时时长,解除所述好友关系。Before the timer reaches the second timing duration, in response to a session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timing When the timer reaches the second time period, the friend relationship is released.
3.根据条款1所述的方法,其中,所述响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器,包括:3. The method of clause 1, wherein the starting a timer for the friend relationship in response to a friend relationship establishment event between the first user and the second user comprises:
响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器。In response to a friend relationship establishment event between the first user and the second user, it is detected whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, and if so, a timer for the friend relationship is started.
4.根据条款3所述的方法,其中,所述预定通道来源类型包括以下至少一项:4. The method of clause 3, wherein the predetermined channel source type comprises at least one of the following:
由网络设备自动发起两个用户之间的好友关系建立事件;A friend relationship establishment event between two users is automatically initiated by the network device;
由用户通过查找附近的人发起与其他用户之间的好友关系建立事件;The user initiates a friend relationship establishment event with other users by finding nearby people;
由用户通过陌生人加友通道发起与其他用户之间的好友关系建立事件。A friend relationship establishment event with other users is initiated by the user through the stranger adding friend channel.
5.根据条款3或4所述的方法,其中,所述好友关系建立事件对应的通道来源类型包括所述第一用户请求添加所述第二用户为好友所使用的第一通道来源类型及所述第二用户请求添加所述第一用户为好友所使用的第二通道来源类型,所述第一通道来源类型区别于所述第二通道来源类型;5. The method according to clause 3 or 4, wherein the channel source type corresponding to the friend relationship establishment event includes the first channel source type and the first channel source type that the first user requests to add the second user as a friend. The second user requests to add a second channel source type used by the first user as a friend, and the first channel source type is different from the second channel source type;
其中,若所述第一设备为所述第一用户使用的第一用户设备,所述响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器,包括:Wherein, if the first device is the first user device used by the first user, the channel corresponding to the friend relationship establishment event is detected in response to the friend relationship establishment event between the first user and the second user Whether the source type is the predetermined channel source type, if so, start the timer for the friend relationship, including:
响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第一通道来源类型是否为预定通道来源类型,若是,启动所述第一用户对应的针对所述 好友关系的第一定时器;In response to a friend relationship establishment event between the first user and the second user, detect whether the source type of the first channel is a predetermined channel source type, and if so, start a corresponding connection to the friend for the first user. the first timer of the relationship;
若所述第一设备为所述第二用户使用的第二用户设备,所述响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器,包括:If the first device is a second user device used by the second user, in response to a friend relationship establishment event between the first user and the second user, detect the channel source type corresponding to the friend relationship establishment event Whether it is a predetermined channel source type, if so, start a timer for the friend relationship, including:
响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第二通道来源类型是否为预定通道来源类型,若是,启动所述第二用户对应的针对所述好友关系的定时器;In response to a friend relationship establishment event between the first user and the second user, detect whether the source type of the second channel is a predetermined channel source type, and if so, start a corresponding connection to the friend for the second user. relationship timer;
若所述第一设备为网络设备,所述响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器,包括:If the first device is a network device, in response to a friend relationship establishment event between the first user and the second user, detect whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, and if so, Starting a timer for the friend relationship, including:
响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第一通道来源类型及所述第二通道来源类型是否为预定通道来源类型,若两者均为预定通道来源类型,启动针对所述好友关系的定时器;若两者中仅其中一者为预定通道来源类型,仅启动该其中一者所关联的用户对应的针对所述好友关系的定时器,以当该定时器计时达到其对应的定时时长时仅取消呈现所述会话,或者,不执行任何操作。In response to a friend relationship establishment event between the first user and the second user, detecting whether the first channel source type and the second channel source type are predetermined channel source types, if both are predetermined Channel source type, start the timer for the friend relationship; if only one of the two is a predetermined channel source type, only start the timer for the friend relationship corresponding to the user associated with the one, to When the timer reaches its corresponding timing period, the session is simply cancelled, or no operation is performed.
6.根据条款5所述的方法,其中,所述若是,启动所述第一用户对应的针对所述好友关系的第一定时器,包括:6. The method according to clause 5, wherein, if the yes, starting a first timer for the friend relationship corresponding to the first user, comprising:
若是,向网络设备发送定时器启动请求,接收所述网络设备针对所述定时器启动请求反馈的指令信息,若所述指令信息指示允许启动定时器,启动所述第一用户对应的针对所述好友关系的第一定时器,其中,网络设备通过检测所述第二通道来源类型是否为预定通道来源类型来确定所述指令信息,若所述第二通道来源类型为预定通道来源类型,所述指令信息指示启动所述第一定时器,否则,所述指令信息指示不启动所述第一定时器。If yes, send a timer start request to the network device, receive the command information fed back by the network device for the timer start request, and if the command information indicates that the timer is allowed to start, start the first user corresponding to the timer start request. The first timer of the friendship relationship, wherein the network device determines the instruction information by detecting whether the second channel source type is a predetermined channel source type, if the second channel source type is a predetermined channel source type, the The instruction information indicates to start the first timer, otherwise, the instruction information indicates not to start the first timer.
7.根据条款5所述的方法,其中,所述若是,启动所述第二用户对应的针对所述好友关系的第二定时器,包括:7. The method according to clause 5, wherein, if the yes, starting a second timer for the friend relationship corresponding to the second user, comprising:
若是,向网络设备发送定时器启动请求,接收所述网络设备针对所述定时器启动请求反馈的指令信息,若所述指令信息指示允许启动定时器,启动所述第二用户对应的针对所述好友关系的第二定时器,其中,网络设备通过检测所述第一通道来 源类型是否为预定通道来源类型来确定所述指令信息,若所述第一通道来源类型为预定通道来源类型,所述指令信息指示启动所述第二定时器,否则,所述指令信息指示不启动所述第二定时器。If yes, send a timer start request to the network device, receive the command information fed back by the network device for the timer start request, and if the command information indicates that the timer is allowed to start, start the second user corresponding to the timer start request. A second timer for friendship, wherein the network device determines the instruction information by detecting whether the first channel source type is a predetermined channel source type, and if the first channel source type is a predetermined channel source type, the The instruction information indicates to start the second timer, otherwise, the instruction information indicates not to start the second timer.
8.根据条款3所述的方法,其中,所述响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器,包括:8. The method according to clause 3, wherein, in response to a friend relationship establishment event between the first user and the second user, detecting whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, If so, start a timer for the friend relationship, including:
响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的好友申请来源类型是否为预定好友申请来源类型,若是,根据所述好友关系对应的好友关系配置信息判断当前是否已开启过期自动处理功能,若是,启动针对所述好友关系的定时器。In response to a friend relationship establishment event between the first user and the second user, detecting whether the friend application source type corresponding to the friend relationship establishment event is a predetermined friend application source type, and if so, according to the friend relationship configuration corresponding to the friend relationship The information determines whether the automatic expiration processing function is currently enabled, and if so, starts a timer for the friend relationship.
9.根据条款8所述的方法,其中,所述好友关系配置信息包括所述定时时长。9. The method of clause 8, wherein the friend relationship configuration information includes the timing duration.
10.根据条款8所述的方法,其中,所述方法还包括:10. The method of clause 8, wherein the method further comprises:
基于以下至少一项确定所述好友关系配置信息:The friend relationship configuration information is determined based on at least one of the following:
所述通道来源类型;the channel source type;
所述第一用户与所述第二用户的共同好友数量;the number of mutual friends of the first user and the second user;
所述第一用户的历史会话交互频次信息及所述第二用户的历史会话交互频次信息。The historical session interaction frequency information of the first user and the historical session interaction frequency information of the second user.
11.根据条款8所述的方法,其中,所述方法还包括:11. The method of clause 8, wherein the method further comprises:
响应于所述好友关系配置信息所指示的状态从开启过期自动处理功能切换为关闭过期自动处理功能的第一切换事件,终止所述定时器。The timer is terminated in response to a first switching event in which the state indicated by the buddy relationship configuration information is switched from turning on the automatic overdue processing function on to turning off the automatic overdue processing function.
12.根据条款8或11所述的方法,其中,所述方法还包括:12. The method of clause 8 or 11, wherein the method further comprises:
响应于所述好友关系配置信息所指示的状态从关闭过期自动处理功能切换为开启过期自动处理功能的第二切换事件,若所述会话未产生过任何历史会话交互事件,且所述定时器未计时结束,重新启动所述定时器。In response to the second switching event of switching from disabling the automatic expiration processing function to opening the automatic expiration processing function in response to the state indicated by the friend relationship configuration information, if the session has not generated any historical session interaction events, and the timer has not When the timer expires, the timer is restarted.
13.根据条款12所述的方法,其中,所述重新启动所述定时器,包括以下至少一项:13. The method of clause 12, wherein the restarting the timer comprises at least one of:
重新启动所述定时器,其中,所述定时器的起始时间为当前时间;Restarting the timer, wherein the start time of the timer is the current time;
重置并重新启动所述定时器。Reset and restart the timer.
14.根据条款8所述的方法,其中,所述方法还包括:14. The method of clause 8, wherein the method further comprises:
响应于所述好友关系配置信息对应的定时时长更改事件,计算所述定时器对应的起始时间距离当前时间的时间间隔绝对值是否小于或等于更改后的定时时长,若是,取消呈现所述会话,和/或,解除所述好友关系,否则,将所述定时器按照更改后的定时时长继续计时。In response to the timing duration change event corresponding to the friend relationship configuration information, calculate whether the absolute value of the time interval between the start time corresponding to the timer and the current time is less than or equal to the changed timing duration, and if so, cancel the presentation of the session , and/or cancel the friend relationship, otherwise, continue to count the timer according to the modified timing duration.
15.根据条款5所述的方法,其中,所述方法还包括:15. The method of clause 5, wherein the method further comprises:
响应于所述好友关系配置信息对应的定时时长更改事件,重置所述定时器并按照更改后的定时时长重新启动所述定时器。In response to a timing duration change event corresponding to the friend relationship configuration information, the timer is reset and restarted according to the changed timing duration.
16.根据条款1所述的方法,其中,若所述第一设备为第一用户使用的第一用户设备或第二用户使用的第二用户设备;16. The method of clause 1, wherein if the first device is a first user equipment used by a first user or a second user equipment used by a second user;
其中,所述方法还包括:Wherein, the method also includes:
响应于从历史版本升级到当前版本的升级完成事件,若所述第一用户与所述第二用户之间的会话未产生过任何历史会话交互事件,检测所述第一用户与所述第二用户之间的好友关系对应的好友关系建立时间距离当前时间的时间间隔绝对值是否大于或等于所述定时时长,若是,取消呈现所述会话,和/或,解除所述好友关系。In response to the upgrade completion event of upgrading from the historical version to the current version, if the session between the first user and the second user has not generated any historical session interaction event, detect the first user and the second user. Whether the absolute value of the time interval between the friend relationship establishment time and the current time corresponding to the friend relationship between users is greater than or equal to the timing duration, if so, cancel the presentation of the session, and/or cancel the friend relationship.
17.根据条款16所述的方法,其中,所述方法还包括:17. The method of clause 16, wherein the method further comprises:
若所述会话对应的好友关系建立时间距离当前时间的时间间隔绝对值小于所述定时时长,启动针对所述好友关系的定时器,其中,所述定时器的起始时间为当前时间。If the absolute value of the time interval between the friend relationship establishment time corresponding to the session and the current time is less than the timing duration, a timer for the friend relationship is started, wherein the start time of the timer is the current time.
18.根据条款1所述的方法,其中,所述方法还包括:18. The method of clause 1, wherein the method further comprises:
在所述定时器的计时过程中,通过第一呈现方式呈现所述会话,其中,所述第一呈现方式区别于其他未启动定时器的会话对应的第二呈现方式;In the timing process of the timer, the session is presented by a first presentation mode, wherein the first presentation mode is different from the second presentation mode corresponding to other sessions whose timers have not been started;
响应于所述定时器的计时终止事件,通过所述第二呈现方式更新呈现所述会话。The session is updated and presented by the second presentation manner in response to the expiration event of the timer.
19.根据条款18所述的方法,其中,所述第一呈现方式包括在所述会话的显示区域中呈现根据当前时间及所述定时时长确定的第一倒计时信息,其中,所述第一倒计时信息基于当前时间实时更新。19. The method of clause 18, wherein the first presentation manner comprises presenting, in a display area of the session, first countdown information determined according to the current time and the timing duration, wherein the first countdown Information is updated in real time based on the current time.
20.根据条款1所述的方法,其中,所述方法还包括:20. The method of clause 1, wherein the method further comprises:
在所述定时器的计时过程中,响应于所述第一用户或所述第二用户进入所述会话对应的会话页面的事件,在所述会话页面中呈现根据当前时间及所述定时时长确 定的第二倒计时信息,其中,所述第二倒计时信息基于当前时间实时更新;In the timing process of the timer, in response to the event that the first user or the second user enters the session page corresponding to the session, the session page is displayed in the session page determined according to the current time and the timing duration. The second countdown information, wherein the second countdown information is updated in real time based on the current time;
响应于所述定时器的计时终止事件,在所述会话页面中取消呈现所述第二倒计时信息。The second countdown information is de-presented in the session page in response to a countdown event of the timer.
21.根据条款1所述的方法,其中,所述解除所述好友关系,包括:21. The method of clause 1, wherein the unfriending comprises:
解除所述好友关系,向所述第一用户和/或所述第二用户呈现关于所述好友关系的解除指示信息。Releasing the friend relationship, and presenting information about the termination of the friend relationship to the first user and/or the second user.
22.根据条款21所述的方法,其中,所述解除所述好友关系,向所述第一用户和/或所述第二用户呈现关于所述好友关系的解除指示信息,包括:22. The method according to clause 21, wherein said releasing the friendship, presenting to the first user and/or the second user information about releasing the friendship, comprising:
解除所述好友关系,向所述第一用户和/或所述第二用户呈现关于所述好友关系的解除指示信息,并检测所述第一用户及所述第二用户当前是否呈现所述会话对应的会话页面,若是,自动退出所述会话页面。Release the friend relationship, present to the first user and/or the second user information about the release of the friendship relationship, and detect whether the first user and the second user are currently presenting the conversation The corresponding session page, if so, automatically exits the session page.
23.根据条款1所述的方法,其中,若所述第一设备为第一用户使用的第一用户设备或第二用户使用的第二用户设备;23. The method of clause 1, wherein if the first device is a first user equipment used by a first user or a second user equipment used by a second user;
其中,所述方法还包括:Wherein, the method also includes:
在所述定时器的计时过程中,响应于所述第一用户或所述第二用户执行的针对所述会话对应的会话页面的打开操作,执行以下至少一项操作:In the timing process of the timer, in response to the opening operation of the session page corresponding to the session performed by the first user or the second user, at least one of the following operations is performed:
重置并重新启动所述定时器;reset and restart the timer;
更改所述定时器对应的定时时长,其中,更改后的定时时长大于更改前的定时时长。The timing duration corresponding to the timer is changed, wherein the timing duration after the modification is greater than the timing duration before the modification.
24.根据条款1所述的方法,其中,所述取消呈现所述会话,和/或,解除所述好友关系,包括:24. The method of clause 1, wherein the de-presenting the session, and/or the unfriending, comprises:
取消呈现所述会话,和/或,解除所述好友关系,记录所述好友关系对应的过期自动处理信息,其中,所述过期自动处理信息包括所述好友关系的建立时间、所述好友关系对应的自动处理事件类型、所述自动处理事件对应的处理时间、所述第一用户的标识信息、所述第二用户的标识信息、所述会话的标识信息、所述定时器对应的定时时长中的至少一项。cancel the presentation of the session, and/or cancel the friend relationship, and record the expired automatic processing information corresponding to the friend relationship, wherein the expired automatic processing information includes the establishment time of the friend relationship and the corresponding The type of automatic processing event, the processing time corresponding to the automatic processing event, the identification information of the first user, the identification information of the second user, the identification information of the session, and the timing duration corresponding to the timer. at least one of.
25.根据条款24所述的方法,其中,若所述第一设备为所述第一用户使用的第一用户设备或所述第二用户使用的第二用户设备;25. The method of clause 24, wherein if the first device is a first user equipment used by the first user or a second user equipment used by the second user;
其中,所述方法还包括:Wherein, the method also includes:
响应于过期自动处理信息上传发起事件,将所述第一设备当前记录的一个或多个好友关系对应的一个或多个过期自动处理信息上传至网络设备。One or more expired automatic processing information corresponding to one or more friend relationships currently recorded by the first device is uploaded to the network device in response to the event of uploading the expired automatic processing information.
26.一种解除好友关系的设备,其特征在于,所述设备包括:26. A device for canceling a friendship, characterized in that the device comprises:
处理器;以及processor; and
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如条款1至25中任一项所述的方法。a memory arranged to store computer-executable instructions which, when executed, cause the processor to perform a method as described in any of clauses 1 to 25.
27.一种存储指令的计算机可读介质,所述指令在被计算机执行时使得所述计算机进行如条款1至25中任一项所述方法的操作。27. A computer-readable medium storing instructions that, when executed by a computer, cause the computer to operate the method of any of clauses 1 to 25.
28.一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现如条款1至25中任一项所述方法的步骤。28. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method according to any one of clauses 1 to 25.

Claims (20)

  1. 一种解除好友关系的方法,应用于第一设备端,其中,所述方法包括:A method for canceling a friend relationship, applied to a first device, wherein the method includes:
    响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器;In response to a friend relationship establishment event between the first user and the second user, starting a timer for the friend relationship;
    在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系。Before the timer reaches the timing corresponding to the timer, in response to the session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the When the timer reaches the timing corresponding to the timer, the session is cancelled, and/or the friend relationship is cancelled.
  2. 根据权利要求1所述的方法,其中,所述定时时长包括第一定时时长及第二定时时长,所述第一定时时长小于所述第二定时时长;The method according to claim 1, wherein the timing duration includes a first timing duration and a second timing duration, and the first timing duration is smaller than the second timing duration;
    其中,所述在所述定时器计时达到所述定时器对应的定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述定时器对应的定时时长,取消呈现所述会话,和/或,解除所述好友关系,包括:Wherein, the timer is terminated in response to a session interaction event corresponding to the session between the first user and the second user before the timer reaches the timing corresponding to the timer; Otherwise, if the timer reaches the timing corresponding to the timer, cancel the presentation of the session, and/or cancel the friend relationship, including:
    在所述定时器计时达到所述第一定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述第一定时时长,取消呈现所述会话并继续计时;Before the timer reaches the first timing duration, in response to a session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timing When the timer reaches the first timing duration, the session is cancelled and the timing is continued;
    在所述定时器计时达到所述第二定时时长前,响应于所述第一用户与所述第二用户之间的会话对应的会话交互事件,终止所述定时器;否则,若所述定时器计时达到所述第二定时时长,解除所述好友关系。Before the timer reaches the second timing duration, in response to a session interaction event corresponding to the session between the first user and the second user, the timer is terminated; otherwise, if the timing When the timer reaches the second time period, the friend relationship is released.
  3. 根据权利要求1所述的方法,其中,所述响应于第一用户与第二用户之间的好友关系建立事件,启动针对所述好友关系的定时器,包括:The method according to claim 1, wherein, in response to a friend relationship establishment event between the first user and the second user, starting a timer for the friend relationship comprises:
    响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器;In response to a friend relationship establishment event between the first user and the second user, detect whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, and if so, start a timer for the friend relationship;
    其中,所述预定通道来源类型包括以下至少一项:Wherein, the predetermined channel source type includes at least one of the following:
    由网络设备自动发起两个用户之间的好友关系建立事件;A friend relationship establishment event between two users is automatically initiated by the network device;
    由用户通过查找附近的人发起与其他用户之间的好友关系建立事件;The user initiates a friend relationship establishment event with other users by finding nearby people;
    由用户通过陌生人加友通道发起与其他用户之间的好友关系建立事件。A friend relationship establishment event with other users is initiated by the user through the stranger adding friend channel.
  4. 根据权利要求3所述的方法,其中,所述好友关系建立事件对应的通道来源类型 包括所述第一用户请求添加所述第二用户为好友所使用的第一通道来源类型及所述第二用户请求添加所述第一用户为好友所使用的第二通道来源类型,所述第一通道来源类型区别于所述第二通道来源类型;The method according to claim 3, wherein the channel source type corresponding to the friend relationship establishment event comprises the first channel source type and the second channel source type used by the first user requesting to add the second user as a friend The user requests to add a second channel source type used by the first user as a friend, and the first channel source type is different from the second channel source type;
    其中,若所述第一设备为所述第一用户使用的第一用户设备,所述响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器,包括:Wherein, if the first device is the first user device used by the first user, the channel corresponding to the friend relationship establishment event is detected in response to the friend relationship establishment event between the first user and the second user Whether the source type is the predetermined channel source type, if so, start the timer for the friend relationship, including:
    响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第一通道来源类型是否为预定通道来源类型,若是,启动所述第一用户对应的针对所述好友关系的第一定时器;In response to a friend relationship establishment event between the first user and the second user, detect whether the source type of the first channel is a predetermined channel source type, and if so, start a corresponding connection to the friend for the first user. the first timer of the relationship;
    若所述第一设备为所述第二用户使用的第二用户设备,所述响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器,包括:If the first device is a second user device used by the second user, in response to a friend relationship establishment event between the first user and the second user, detect the channel source type corresponding to the friend relationship establishment event Whether it is a predetermined channel source type, if so, start a timer for the friend relationship, including:
    响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第二通道来源类型是否为预定通道来源类型,若是,启动所述第二用户对应的针对所述好友关系的定时器;In response to a friend relationship establishment event between the first user and the second user, detect whether the source type of the second channel is a predetermined channel source type, and if so, start a corresponding connection to the friend for the second user. relationship timer;
    若所述第一设备为网络设备,所述响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器,包括:If the first device is a network device, in response to a friend relationship establishment event between the first user and the second user, detect whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, and if so, Starting a timer for the friend relationship, including:
    响应于所述第一用户与所述第二用户之间的好友关系建立事件,检测所述第一通道来源类型及所述第二通道来源类型是否为预定通道来源类型,若两者均为预定通道来源类型,启动针对所述好友关系的定时器;若两者中仅其中一者为预定通道来源类型,仅启动该其中一者所关联的用户对应的针对所述好友关系的定时器,以当该定时器计时达到其对应的定时时长时仅取消呈现所述会话,或者,不执行任何操作。In response to a friend relationship establishment event between the first user and the second user, detecting whether the first channel source type and the second channel source type are predetermined channel source types, if both are predetermined Channel source type, start the timer for the friend relationship; if only one of the two is a predetermined channel source type, only start the timer for the friend relationship corresponding to the user associated with the one, to When the timer reaches its corresponding timing period, the session is simply cancelled, or no operation is performed.
  5. 根据权利要求4所述的方法,其中,所述若是,启动所述第一用户对应的针对所述好友关系的第一定时器,包括:The method according to claim 4, wherein, if the yes, starting a first timer for the friend relationship corresponding to the first user comprises:
    若是,向网络设备发送定时器启动请求,接收所述网络设备针对所述定时器启动请求反馈的指令信息,若所述指令信息指示允许启动定时器,启动所述第一用户对应的针对所述好友关系的第一定时器,其中,网络设备通过检测所述第二通道来源类型是否为预定通道来源类型来确定所述指令信息,若所述第二通道来源类型为预定通道来源类 型,所述指令信息指示启动所述第一定时器,否则,所述指令信息指示不启动所述第一定时器。If yes, send a timer start request to the network device, receive the command information fed back by the network device for the timer start request, and if the command information indicates that the timer is allowed to start, start the first user corresponding to the timer start request. The first timer of the friendship relationship, wherein the network device determines the instruction information by detecting whether the second channel source type is a predetermined channel source type, if the second channel source type is a predetermined channel source type, the The instruction information indicates to start the first timer, otherwise, the instruction information indicates not to start the first timer.
  6. 根据权利要求4所述的方法,其中,所述若是,启动所述第二用户对应的针对所述好友关系的第二定时器,包括:The method according to claim 4, wherein, if the yes, starting a second timer for the friend relationship corresponding to the second user comprises:
    若是,向网络设备发送定时器启动请求,接收所述网络设备针对所述定时器启动请求反馈的指令信息,若所述指令信息指示允许启动定时器,启动所述第二用户对应的针对所述好友关系的第二定时器,其中,网络设备通过检测所述第一通道来源类型是否为预定通道来源类型来确定所述指令信息,若所述第一通道来源类型为预定通道来源类型,所述指令信息指示启动所述第二定时器,否则,所述指令信息指示不启动所述第二定时器。If yes, send a timer start request to the network device, receive the command information fed back by the network device for the timer start request, and if the command information indicates that the timer is allowed to start, start the second user corresponding to the timer start request. A second timer for friendship, wherein the network device determines the instruction information by detecting whether the first channel source type is a predetermined channel source type, and if the first channel source type is a predetermined channel source type, the The instruction information indicates to start the second timer, otherwise, the instruction information indicates not to start the second timer.
  7. 根据权利要求3所述的方法,其中,所述响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的通道来源类型是否为预定通道来源类型,若是,启动针对所述好友关系的定时器,包括:The method according to claim 3, wherein in response to a friend relationship establishment event between the first user and the second user, it is detected whether the channel source type corresponding to the friend relationship establishment event is a predetermined channel source type, and if so , start the timer for the friend relationship, including:
    响应于第一用户与第二用户之间的好友关系建立事件,检测所述好友关系建立事件对应的好友申请来源类型是否为预定好友申请来源类型,若是,根据所述好友关系对应的好友关系配置信息判断当前是否已开启过期自动处理功能,若是,启动针对所述好友关系的定时器。In response to a friend relationship establishment event between the first user and the second user, detecting whether the friend application source type corresponding to the friend relationship establishment event is a predetermined friend application source type, and if so, according to the friend relationship configuration corresponding to the friend relationship The information determines whether the automatic expiration processing function is currently enabled, and if so, starts a timer for the friend relationship.
  8. 根据权利要求7所述的方法,其中,所述好友关系配置信息包括所述定时时长。The method of claim 7, wherein the friend relationship configuration information includes the timing duration.
  9. 根据权利要求7所述的方法,其中,所述方法还包括:The method of claim 7, wherein the method further comprises:
    基于以下至少一项确定所述好友关系配置信息:The friend relationship configuration information is determined based on at least one of the following:
    所述通道来源类型;the channel source type;
    所述第一用户与所述第二用户的共同好友数量;the number of mutual friends of the first user and the second user;
    所述第一用户的历史会话交互频次信息及所述第二用户的历史会话交互频次信息。The historical session interaction frequency information of the first user and the historical session interaction frequency information of the second user.
  10. 根据权利要求7所述的方法,其中,所述方法还包括以下至少一项:The method of claim 7, wherein the method further comprises at least one of the following:
    响应于所述好友关系配置信息所指示的状态从开启过期自动处理功能切换为关闭过期自动处理功能的第一切换事件,终止所述定时器;Terminating the timer in response to a first switching event in which the state indicated by the friend relationship configuration information is switched from turning on the automatic expired processing function on to turning off the automatic expired processing function;
    响应于所述好友关系配置信息所指示的状态从关闭过期自动处理功能切换为开启过期自动处理功能的第二切换事件,若所述会话未产生过任何历史会话交互事件,且所述定时器未计时结束,重新启动所述定时器;In response to the second switching event of switching from disabling the automatic expiration processing function to opening the automatic expiration processing function in response to the state indicated by the friend relationship configuration information, if the session has not generated any historical session interaction events, and the timer has not When the timing is over, restart the timer;
    其中,所述重新启动所述定时器,包括以下至少一项:Wherein, the restarting the timer includes at least one of the following:
    重新启动所述定时器,其中,所述定时器的起始时间为当前时间;Restarting the timer, wherein the start time of the timer is the current time;
    重置并重新启动所述定时器。Reset and restart the timer.
  11. 根据权利要求7所述的方法,其中,所述方法还包括:The method of claim 7, wherein the method further comprises:
    响应于所述好友关系配置信息对应的定时时长更改事件,执行以下至少一项操作:In response to the timing duration change event corresponding to the friend relationship configuration information, perform at least one of the following operations:
    计算所述定时器对应的起始时间距离当前时间的时间间隔绝对值是否小于或等于更改后的定时时长,若是,取消呈现所述会话,和/或,解除所述好友关系,否则,将所述定时器按照更改后的定时时长继续计时;Calculate whether the absolute value of the time interval between the start time corresponding to the timer and the current time is less than or equal to the changed timing duration. If so, cancel the presentation of the session, and/or cancel the friend relationship, otherwise, the The timer continues to count according to the changed timing;
    重置所述定时器并按照更改后的定时时长重新启动所述定时器。The timer is reset and restarted according to the changed timing duration.
  12. 根据权利要求1所述的方法,其中,若所述第一设备为第一用户使用的第一用户设备或第二用户使用的第二用户设备;The method according to claim 1, wherein, if the first device is a first user equipment used by a first user or a second user equipment used by a second user;
    其中,所述方法还包括:Wherein, the method also includes:
    响应于从历史版本升级到当前版本的升级完成事件,若所述第一用户与所述第二用户之间的会话未产生过任何历史会话交互事件,检测所述第一用户与所述第二用户之间的好友关系对应的好友关系建立时间距离当前时间的时间间隔绝对值是否大于或等于所述定时时长,若是,取消呈现所述会话,和/或,解除所述好友关系。In response to the upgrade completion event of upgrading from the historical version to the current version, if the session between the first user and the second user has not generated any historical session interaction event, detect the first user and the second user. Whether the absolute value of the time interval between the friend relationship establishment time and the current time corresponding to the friend relationship between users is greater than or equal to the timing duration, if so, cancel the presentation of the session, and/or cancel the friend relationship.
  13. 根据权利要求12所述的方法,其中,所述方法还包括:The method of claim 12, wherein the method further comprises:
    若所述会话对应的好友关系建立时间距离当前时间的时间间隔绝对值小于所述定时时长,启动针对所述好友关系的定时器,其中,所述定时器的起始时间为当前时间。If the absolute value of the time interval between the friend relationship establishment time corresponding to the session and the current time is less than the timing duration, a timer for the friend relationship is started, wherein the start time of the timer is the current time.
  14. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    在所述定时器的计时过程中,通过第一呈现方式呈现所述会话,其中,所述第一呈现方式区别于其他未启动定时器的会话对应的第二呈现方式;In the timing process of the timer, the session is presented by a first presentation mode, wherein the first presentation mode is different from the second presentation mode corresponding to other sessions whose timers have not been started;
    响应于所述定时器的计时终止事件,通过所述第二呈现方式更新呈现所述会话。The session is updated and presented by the second presentation manner in response to the expiration event of the timer.
  15. 根据权利要求14所述的方法,其中,所述第一呈现方式包括在所述会话的显示区域中呈现根据当前时间及所述定时时长确定的第一倒计时信息,其中,所述第一倒计时信息基于当前时间实时更新。The method according to claim 14, wherein the first presentation manner comprises presenting first countdown information determined according to the current time and the timing duration in a display area of the session, wherein the first countdown information Real-time updates based on the current time.
  16. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    在所述定时器的计时过程中,响应于所述第一用户或所述第二用户进入所述会话对应的会话页面的事件,在所述会话页面中呈现根据当前时间及所述定时时长确定的第二 倒计时信息,其中,所述第二倒计时信息基于当前时间实时更新;In the timing process of the timer, in response to the event that the first user or the second user enters the session page corresponding to the session, the session page is displayed in the session page determined according to the current time and the timing duration. The second countdown information, wherein the second countdown information is updated in real time based on the current time;
    响应于所述定时器的计时终止事件,在所述会话页面中取消呈现所述第二倒计时信息。The second countdown information is de-presented in the session page in response to a countdown event of the timer.
  17. 根据权利要求1所述的方法,其中,若所述第一设备为第一用户使用的第一用户设备或第二用户使用的第二用户设备;The method according to claim 1, wherein, if the first device is a first user equipment used by a first user or a second user equipment used by a second user;
    其中,所述方法还包括:Wherein, the method also includes:
    在所述定时器的计时过程中,响应于所述第一用户或所述第二用户执行的针对所述会话对应的会话页面的打开操作,执行以下至少一项操作:In the timing process of the timer, in response to the opening operation of the session page corresponding to the session performed by the first user or the second user, at least one of the following operations is performed:
    重置并重新启动所述定时器;reset and restart the timer;
    更改所述定时器对应的定时时长,其中,更改后的定时时长大于更改前的定时时长。The timing duration corresponding to the timer is changed, wherein the timing duration after the modification is greater than the timing duration before the modification.
  18. 一种解除好友关系的设备,其特征在于,所述设备包括:A device for canceling a friend relationship, characterized in that the device includes:
    处理器;以及processor; and
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如权利要求1至17中任一项所述的方法。a memory arranged to store computer-executable instructions which, when executed, cause the processor to perform a method as claimed in any one of claims 1 to 17.
  19. 一种存储指令的计算机可读介质,所述指令在被计算机执行时使得所述计算机进行如权利要求1至17中任一项所述方法的操作。A computer-readable medium storing instructions that, when executed by a computer, cause the computer to perform the operation of the method of any one of claims 1 to 17.
  20. 一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现如权利要求1至17中任一项所述方法的步骤。A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 17 are implemented.
PCT/CN2021/125289 2020-12-11 2021-10-21 Method and device for removing friend relationship WO2022121524A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011441498.7 2020-12-11
CN202011441498.7A CN112688856B (en) 2020-12-11 2020-12-11 Method and device for releasing friend relationship

Publications (1)

Publication Number Publication Date
WO2022121524A1 true WO2022121524A1 (en) 2022-06-16

Family

ID=75448163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/125289 WO2022121524A1 (en) 2020-12-11 2021-10-21 Method and device for removing friend relationship

Country Status (2)

Country Link
CN (1) CN112688856B (en)
WO (1) WO2022121524A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112688856B (en) * 2020-12-11 2023-04-07 上海掌门科技有限公司 Method and device for releasing friend relationship

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030220976A1 (en) * 2002-05-21 2003-11-27 Bellsouth Intellectual Property Corporation Temporary contact alias system
US20040059781A1 (en) * 2002-09-19 2004-03-25 Nortel Networks Limited Dynamic presence indicators
CN101193073A (en) * 2007-03-29 2008-06-04 腾讯科技(深圳)有限公司 Friend management method and system in instant communication platform
CN101283567A (en) * 2005-09-21 2008-10-08 西门子企业通讯有限责任两合公司 System and method for providing presence age information in a unified communication system
CN112688856A (en) * 2020-12-11 2021-04-20 上海掌门科技有限公司 Method and device for releasing friend relationship

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5124682B1 (en) * 2011-12-28 2013-01-23 株式会社コナミデジタルエンタテインメント GAME MANAGEMENT DEVICE, GAME MANAGEMENT METHOD, AND PROGRAM
JP5124044B1 (en) * 2011-12-28 2013-01-23 株式会社コナミデジタルエンタテインメント GAME MANAGEMENT DEVICE, GAME MANAGEMENT METHOD, AND PROGRAM
US20150032670A1 (en) * 2013-07-26 2015-01-29 Robert Brazell Avatar Having Optimizing Artificial Intelligence for Identifying and Providing Relationship and Wellbeing Recommendations
JP2015207136A (en) * 2014-04-21 2015-11-19 株式会社IT’z Friend management system for sns and friend management method using the same system
CN105049322A (en) * 2015-06-03 2015-11-11 深圳市华海技术有限公司 Control method for social network tool
EP3541098B1 (en) * 2016-11-30 2023-01-18 Huawei Technologies Co., Ltd. Processing method for communication identifier binding and terminal
CN109799938B (en) * 2017-11-16 2021-06-15 腾讯科技(深圳)有限公司 Control display management method, terminal device and computer readable storage medium
CN109039861A (en) * 2018-07-27 2018-12-18 福建兑信科技有限公司 Social interaction server device and social intercourse system equipped with interaction in limited time
CN111193654B (en) * 2019-06-24 2021-12-17 腾讯科技(深圳)有限公司 Social session processing method, device, terminal and medium
CN110535755B (en) * 2019-08-30 2021-10-22 上海掌门科技有限公司 Method and equipment for deleting session message
CN112035202B (en) * 2020-08-25 2021-11-23 北京字节跳动网络技术有限公司 Method and device for displaying friend activity information, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030220976A1 (en) * 2002-05-21 2003-11-27 Bellsouth Intellectual Property Corporation Temporary contact alias system
US20040059781A1 (en) * 2002-09-19 2004-03-25 Nortel Networks Limited Dynamic presence indicators
CN101283567A (en) * 2005-09-21 2008-10-08 西门子企业通讯有限责任两合公司 System and method for providing presence age information in a unified communication system
CN101193073A (en) * 2007-03-29 2008-06-04 腾讯科技(深圳)有限公司 Friend management method and system in instant communication platform
CN112688856A (en) * 2020-12-11 2021-04-20 上海掌门科技有限公司 Method and device for releasing friend relationship

Also Published As

Publication number Publication date
CN112688856B (en) 2023-04-07
CN112688856A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
US10484347B2 (en) Method and apparatus for supporting secure chat
CN110336735B (en) Method and equipment for sending reminding message
US10165002B2 (en) Identifying an imposter account in a social network
JP2017528809A (en) Secure data access after memory failure
US9569607B2 (en) Security verification method and apparatus
WO2022142619A1 (en) Method and device for private audio or video call
WO2022121524A1 (en) Method and device for removing friend relationship
WO2020156524A1 (en) Method and device for determining rescue team information
TW201911021A (en) Interface message displaying and processing method and apparatus, and electronic device
CN112685121A (en) Method and equipment for presenting session entrance
WO2022142504A1 (en) Meeting group merging method and device
CN110535755B (en) Method and equipment for deleting session message
WO2022142620A1 (en) Method and device for recognizing qr code
CN109660579B (en) Data processing method and system and electronic equipment
WO2020228510A1 (en) Schedule reminding method and device
WO2020164450A1 (en) Method and device for presenting rescue resource information
CN111932230A (en) Method and equipment for modifying red envelope
WO2023109040A1 (en) Alliance chain block generation method and apparatus, electronic device, and medium
CN112702257B (en) Method and device for deleting friend application
WO2022142618A1 (en) Method and device for executing instruction by means of virtual conference robot
WO2022142617A1 (en) Method and device for splitting conference group
WO2021036561A1 (en) Method and apparatus for transferring information during video call
CN113157162B (en) Method, apparatus, medium and program product for revoking session messages
AU2015226364A1 (en) Threat detection information distribution system and method
CN111934981A (en) Method and equipment for withdrawing red packet

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21902231

Country of ref document: EP

Kind code of ref document: A1